bson: Introduce 'safe' variants of bson_init* functions.
authorŁukasz Stelmach <l.stelmach@samsung.com>
Mon, 5 Jun 2017 09:51:58 +0000 (11:51 +0200)
committerŁukasz Stelmach <l.stelmach@samsung.com>
Mon, 5 Jun 2017 09:53:54 +0000 (11:53 +0200)
commita2a6f0ca14553edd1ffeb66f4a036a31900369da
treef079ebb57899dbfc344a4db646121d08b46ab4cb
parent3aad03032d2e1f1dc8200e982aae890d9d240f8c
bson: Introduce 'safe' variants of bson_init* functions.

Modify _bson_init_size to report memory allocation problems.

Introduce bson_safe_init* functions which report problems with memory
allocation.

Signed-off-by: Łukasz Stelmach <l.stelmach@samsung.com>
src/bson/bson.c
src/bson/bson.h