summaryrefslogtreecommitdiffstats
path: root/include/exec
diff options
context:
space:
mode:
authorAlex Bennée2020-04-03 21:11:39 +0200
committerAlex Bennée2020-04-07 17:19:49 +0200
commit040425f849b959ed903610cc028e0996d921f9ca (patch)
treeabcb701fda090377cdbec99860ff077e81e0596e /include/exec
parent.github: Enable repo-lockdown bot to refuse GitHub pull requests (diff)
downloadqemu-040425f849b959ed903610cc028e0996d921f9ca.tar.gz
qemu-040425f849b959ed903610cc028e0996d921f9ca.tar.xz
qemu-040425f849b959ed903610cc028e0996d921f9ca.zip
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 'include/exec')
0 files changed, 0 insertions, 0 deletions