-
Type: Bug
-
Resolution: Done
-
Priority: Critical - P2
-
Affects Version/s: legacy-1.0.2
-
Component/s: API
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.