Prevent buffer overflow on copy: provide the correct copy size

CID #731655

svn path=/trunk/; revision=62616
This commit is contained in:
Pierre Schweitzer 2014-04-05 12:44:27 +00:00
parent b929ccd22f
commit f71529c32e

View file

@ -165,7 +165,7 @@ RtlCopyRangeList(OUT PRTL_RANGE_LIST CopyRangeList,
RtlCopyMemory(&NewEntry->Range,
&Current->Range,
sizeof(RTL_RANGE_ENTRY));
sizeof(RTL_RANGE));
InsertTailList(&CopyRangeList->ListHead,
&NewEntry->Entry);