- create a normal gridfs file in server side
- corrupt the server side data by updating the binary data with data length larger than chunk size
e.g. by issuing the following update script on gridfs .chunks collection
note: the binary data length has to be larger than the defined gridfs file chunk size
- in client side, issue the following call
- it will cause an BSON_ASSERT (len <= chunk_size); since the len of this page is larger than the chunk_size
Client side library should check for this corrupted case, instead of asserting the execution?
At the moment, there is no way to do a precaution checking without inspecting the low level raw .chunks collection
The libmongoc should be fixed, since server side data corruption should not assert client side execution.