]> git.ipfire.org Git - thirdparty/valgrind.git/commit
helgrind: If hg_cli__realloc fails, return NULL.
authorMark Wielaard <mark@klomp.org>
Mon, 8 Jun 2020 11:24:47 +0000 (13:24 +0200)
committerMark Wielaard <mark@klomp.org>
Mon, 8 Jun 2020 11:24:54 +0000 (13:24 +0200)
commit79818bf9a59c44576f99cfe32991eeed896bd51d
treed4653adc7f20088df99ca3d58ba3651a11136e06
parent4a889e881b82d6a20d00f01656563b48bd9bbbcb
helgrind: If hg_cli__realloc fails, return NULL.

helgrind would not handle a failing realloc correctly and assume
cli_malloc would always succeed. If cli_malloc fails in hg_cli__realloc
do like dh and massif and fail the realloc call by returning NULL.
helgrind/hg_main.c