diff options
author | Alan Modra <amodra@gmail.com> | 2021-10-28 13:16:04 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2021-10-28 13:25:57 +1030 |
commit | 0a0ff9d931ea7b2f0bc3c7c9ef6029f3d08e5a90 (patch) | |
tree | dea3af14c54f3e21c2087cbdf27335f2aaab5157 /gdb/testsuite/gdb.fortran/mixed-lang-stack.cpp | |
parent | 42eec46f230cb05873fdc7561057a6ae63d17ce4 (diff) | |
download | binutils-0a0ff9d931ea7b2f0bc3c7c9ef6029f3d08e5a90.zip binutils-0a0ff9d931ea7b2f0bc3c7c9ef6029f3d08e5a90.tar.gz binutils-0a0ff9d931ea7b2f0bc3c7c9ef6029f3d08e5a90.tar.bz2 |
asan: mmo: NULL dereferenc in mmo_xore_32
mmo_get_loc can return NULL. It's commented even, and that the caller
then must handle a split field. mmo_xore_* don't handle split fields,
instead just segfault. Stop that happening, and refuse to recognise
fuzzed mmo files that trigger this problem.
* mmo.c (mmo_get_loc): Don't declare inline.
(mmo_xore_64, mmo_xore_32, mmo_xore_16): Remove forward decls.
Return pointer, don't dereference NULL.
(mmo_scan): Return error on mmo_get_loc returning NULL.
Diffstat (limited to 'gdb/testsuite/gdb.fortran/mixed-lang-stack.cpp')
0 files changed, 0 insertions, 0 deletions