Details
-
Bug
-
Resolution: Done
-
Critical - P2
-
legacy-1.0.2
Description
The class mongo::GridFileBuilder, drops data from the stream, corrupting the data stored.
Using mongo::GridFileBuilder:appendChunk to append data of arbitrary block sizes drops part of the blocks. The function call _appendChunk( data + size, length - size,false) is used without checking if there is any further data to add to the pending buffer.
Attached is a patch to fix the issue.