From 4a94021038357d36c4d4716147bca5b868b3fb51 Mon Sep 17 00:00:00 2001 From: jpandre Date: Sat, 16 Aug 2008 12:50:11 +0000 Subject: [PATCH] Fixed possible overflows in reading the user mapping file --- libntfs-3g/security.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libntfs-3g/security.c b/libntfs-3g/security.c index 9e5aa832..8ea50126 100644 --- a/libntfs-3g/security.c +++ b/libntfs-3g/security.c @@ -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,