summaryrefslogtreecommitdiff
path: root/src/pugixml.cpp
diff options
context:
space:
mode:
authorarseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640>2013-03-20 02:44:05 +0000
committerarseny.kapoulkine@gmail.com <arseny.kapoulkine@gmail.com@99668b35-9821-0410-8761-19e4c4f06640>2013-03-20 02:44:05 +0000
commit4e1add1a462980cd6d12eae9adf53986db8df0b8 (patch)
treec232e59e070d90e2a8b31d408c38ebdc2ebbd881 /src/pugixml.cpp
parent28def6fbcaa5c9eb92f23d70ce2b74339cfdeee7 (diff)
Fix invalid assertion in XPath: reallocation can result in allocating buffer of the same size due to pointer-sized alignment
git-svn-id: http://pugixml.googlecode.com/svn/trunk@946 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.cpp')
-rw-r--r--src/pugixml.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pugixml.cpp b/src/pugixml.cpp
index 66493ab..a0b3241 100644
--- a/src/pugixml.cpp
+++ b/src/pugixml.cpp
@@ -5825,7 +5825,7 @@ PUGI__NS_BEGIN
if (result != ptr && ptr)
{
// copy old data
- assert(new_size > old_size);
+ assert(new_size >= old_size);
memcpy(result, ptr, old_size);
// free the previous page if it had no other objects