Details
-
Bug
-
Resolution: Cannot Reproduce
-
Critical - P2
-
None
-
None
-
None
-
Ubuntu 15.10 AMD64bit
Description
The following code creates the segfault when a sufficiently sized json file is used:
...
bwrit = bson_writer_new (&bbuf, &bblen, 0, bson_realloc_ctx, NULL);
bson_writer_begin(bwrit, &udt);
udt=bson_new_from_json((uint8_t*) jdat, -1, NULL);
bson_writer_end(bwrit);
The backtrace is as follows:
memset (__len=5, __ch=0, __dest=0x1) at /usr/include/x86_64-linux-gnu/bits/string3.h:90
bson_writer_begin (writer=writer@entry=0xe4b6b0, bson=bson@entry=0x7fffffffd480) at src/bson/bson-writer.c:205