Don't crash when we have an invalid count number.
PR: bin/32686 Submitted by: Jaakko Heinonen <jh saunalahti.fi> MFC after: 1 week
This commit is contained in:
parent
0e875ecafe
commit
ab85842c90
@ -216,6 +216,8 @@ fastfind
|
||||
count += c - OFFSET;
|
||||
}
|
||||
|
||||
if (count < 0 || count > MAXPATHLEN)
|
||||
errx(1, "corrupted database: %s", database);
|
||||
/* overlay old path */
|
||||
p = path + count;
|
||||
foundchar = p - 1;
|
||||
|
Loading…
Reference in New Issue
Block a user