projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2713291
)
[APPHELP] Fix a possible out of bounds write.
author
Mark Jansen
<mark.jansen@reactos.org>
Wed, 1 Jun 2016 19:37:25 +0000
(19:37 +0000)
committer
Mark Jansen
<mark.jansen@reactos.org>
Wed, 1 Jun 2016 19:37:25 +0000
(19:37 +0000)
svn path=/trunk/; revision=71489
reactos/dll/appcompat/apphelp/sdbwrite.c
patch
|
blob
|
history
diff --git
a/reactos/dll/appcompat/apphelp/sdbwrite.c
b/reactos/dll/appcompat/apphelp/sdbwrite.c
index
127e50f
..
b4e70f5
100644
(file)
--- a/
reactos/dll/appcompat/apphelp/sdbwrite.c
+++ b/
reactos/dll/appcompat/apphelp/sdbwrite.c
@@
-272,13
+272,14
@@
BOOL WINAPI SdbWriteBinaryTagFromFile(PDB db, TAG tag, LPCWSTR path)
TAGID WINAPI SdbBeginWriteListTag(PDB db, TAG tag)
{
TAGID list_id;
+ DWORD dum = 0;
if (!SdbpCheckTagType(tag, TAG_TYPE_LIST))
return TAGID_NULL;
list_id = db->write_iter;
SdbpWrite(db, &tag, sizeof(TAG));
-
db->write_iter += sizeof(DWORD
); /* reserve some memory for storing list size */
+
SdbpWrite(db, &dum, sizeof(dum)
); /* reserve some memory for storing list size */
return list_id;
}