-
Type: Bug
-
Resolution: Done
-
Priority: Major - P3
-
Affects Version/s: 0.6
-
Component/s: None
-
None
-
Environment:CentOS 6.3, Fedora 17
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.