xerces-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dean O'Connor" <Dean.OCon...@ite.com.au>
Subject WindowsFileMgr bug in trunk
Date Thu, 03 Aug 2006 07:56:27 GMT
Attached it a patch for a bug in WindowsFileMgr.cpp
I discovered it when serialising XML to a file using DOMLSSerializer. 
If you serialise twice to the same file. But the 2nd time use larger XML
data, you will find that the new data is written to file ok, but the
file size is still set to the previous larger size.
So you will get artifact data from your old file still there.
Basically the file data integrity is corrupted.
It boiled down to a OPEN_ALWAYS being used instead of a CREATE_ALWAYS
for open with write.

View raw message