Fixed possible overflows in reading the user mapping file
parent
a2dab6b2ff
commit
4a94021038
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue