[RTL]
authorPierre Schweitzer <pierre@reactos.org>
Sat, 5 Apr 2014 12:44:27 +0000 (12:44 +0000)
committerPierre Schweitzer <pierre@reactos.org>
Sat, 5 Apr 2014 12:44:27 +0000 (12:44 +0000)
Prevent buffer overflow on copy: provide the correct copy size

CID #731655

svn path=/trunk/; revision=62616

reactos/lib/rtl/rangelist.c

index 1b8c794..ab2de3e 100644 (file)
@@ -165,7 +165,7 @@ RtlCopyRangeList(OUT PRTL_RANGE_LIST CopyRangeList,
 
         RtlCopyMemory(&NewEntry->Range,
                       &Current->Range,
 
         RtlCopyMemory(&NewEntry->Range,
                       &Current->Range,
-                      sizeof(RTL_RANGE_ENTRY));
+                      sizeof(RTL_RANGE));
 
         InsertTailList(&CopyRangeList->ListHead,
                        &NewEntry->Entry);
 
         InsertTailList(&CopyRangeList->ListHead,
                        &NewEntry->Entry);