Fixed possible overflows in reading the user mapping file

N2009_11_14_FIXES
jpandre 2008-08-16 12:50:11 +00:00
parent a2dab6b2ff
commit 4a94021038
1 changed files with 1 additions and 1 deletions

View File

@ -4236,7 +4236,7 @@ static struct MAPLIST *getmappingitem(
item->maptext[dst++] = buf[src];
src++;
}
if ((src >= *psize) && (buf[src] != '\n')) {
if (src >= *psize) {
*poffs += *psize;
if (ni)
*psize = ntfs_local_read(ni,