Author: pschweitzer
Date: Sat Apr 5 12:44:27 2014
New Revision: 62616
URL:
http://svn.reactos.org/svn/reactos?rev=62616&view=rev
Log:
[RTL]
Prevent buffer overflow on copy: provide the correct copy size
CID #731655
Modified:
trunk/reactos/lib/rtl/rangelist.c
Modified: trunk/reactos/lib/rtl/rangelist.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/rangelist.c?rev=62…
==============================================================================
--- trunk/reactos/lib/rtl/rangelist.c [iso-8859-1] (original)
+++ trunk/reactos/lib/rtl/rangelist.c [iso-8859-1] Sat Apr 5 12:44:27 2014
@@ -165,7 +165,7 @@
RtlCopyMemory(&NewEntry->Range,
&Current->Range,
- sizeof(RTL_RANGE_ENTRY));
+ sizeof(RTL_RANGE));
InsertTailList(&CopyRangeList->ListHead,
&NewEntry->Entry);