projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b929ccd
)
[RTL]
author
Pierre Schweitzer
<pierre@reactos.org>
Sat, 5 Apr 2014 12:44:27 +0000
(12:44 +0000)
committer
Pierre 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
patch
|
blob
|
history
diff --git
a/reactos/lib/rtl/rangelist.c
b/reactos/lib/rtl/rangelist.c
index
1b8c794
..
ab2de3e
100644
(file)
--- a/
reactos/lib/rtl/rangelist.c
+++ b/
reactos/lib/rtl/rangelist.c
@@
-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);