]> granicus.if.org Git - json-c/commit
Handle allocation failure in json_tokener_new_ex
authorTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 22 Aug 2020 11:18:10 +0000 (13:18 +0200)
committerTobias Stoeckmann <tobias@stoeckmann.org>
Sat, 22 Aug 2020 11:18:10 +0000 (13:18 +0200)
commitbcb6d7d3474b687718cbaee7bf203db4456fb6b3
tree00afc5c0a972046276085e352c3a79586eb3089d
parent2b439ea59857747067e8272011ad67303e0d4cf1
Handle allocation failure in json_tokener_new_ex

The allocation of printbuf_new might fail. Return NULL to indicate tis
error to the caller. Otherwise later usage of the returned tokener would
lead to null pointer dereference.
json_tokener.c