Details
-
Bug
-
Resolution: Done
-
Major - P3
-
0.6
-
None
-
None
-
CentOS 6.3, Fedora 17
Description
When using bson_append_string(), if the string you're appending is null the function segfaults. Example code:
bson_append_string(obj, "Field", fields[x]);
If "fields[x]" evaluates to a null pointer, the function will segfault. It's an easy workaround (check values before passing to the function), but it was a bit of a surprise when it happened.