aboutsummaryrefslogtreecommitdiff
path: root/job-qmp.c
diff options
context:
space:
mode:
authorAlex Bennée <alex.bennee@linaro.org>2020-04-03 20:11:39 +0100
committerAlex Bennée <alex.bennee@linaro.org>2020-04-07 16:19:49 +0100
commit040425f849b959ed903610cc028e0996d921f9ca (patch)
treeabcb701fda090377cdbec99860ff077e81e0596e /job-qmp.c
parent20a4f14f6e6f543100bfdd93705cbdebb549d250 (diff)
elf-ops: bail out if we have no function symbols
It's perfectly possible to have no function symbols in your elf file and if we do the undefined behaviour sanitizer rightly complains about us passing NULL to qsort. Check nsyms before we go ahead. While we are at it lets drop the unchecked return value and cleanup the fail leg by use of g_autoptr. Another fix was proposed 101 weeks ago in: Message-Id: 20180421232120.22208-1-f4bug@amsat.org Signed-off-by: Alex Bennée <alex.bennee@linaro.org> Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com> Reviewed-by: Richard Henderson <richard.henderson@linaro.org> Message-Id: <20200403191150.863-2-alex.bennee@linaro.org>
Diffstat (limited to 'job-qmp.c')
0 files changed, 0 insertions, 0 deletions