Closed GoogleCodeExporter closed 9 years ago
ORIGINAL COMMENT FROM nieklinnenbank
I've discovered that similar behavior occurs when outputting the
contents of a file using cat in Shell:
(localhost) # cat /img/VERSIONZ
0.0.2
Original comment by coenbijlsma
on 7 Aug 2009 at 10:13
ORIGINAL COMMENT FROM nieklinnenbank
The problem was in the Ext2Directory::getEntry() function. It compared too few
bytes
using the strncmp() function: only dent->nameLength at maximum, while the input
may be strlen(name) bytes long. Simple solution was to use dent->nameLength as
the
count parameter to strncmp() only when it was larger than strlen(name).
Original comment by coenbijlsma
on 7 Aug 2009 at 10:14
Original issue reported on code.google.com by
coenbijlsma
on 7 Aug 2009 at 10:12