diff options
author | Alan Modra <amodra@gmail.com> | 2022-08-06 17:05:44 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-08-06 18:43:24 +0930 |
commit | f7a559d5e11c5c023554b48b661aabbcc2c87cb8 (patch) | |
tree | 8a686db06b8a0c9b1faaf59b3cfae7f2e8cab89b /multilib.am | |
parent | 578a7392c33c7c7cde5559278e519c75047318c9 (diff) | |
download | gdb-f7a559d5e11c5c023554b48b661aabbcc2c87cb8.zip gdb-f7a559d5e11c5c023554b48b661aabbcc2c87cb8.tar.gz gdb-f7a559d5e11c5c023554b48b661aabbcc2c87cb8.tar.bz2 |
msan: bfd_mach_o_layout_commands use of uninitialised value
Catches fuzzed input with unterminated strings that later run off the
end of their buffers when calling strlen.
* mach-o.c: Use size_t vars where approprite.
(bfd_mach_o_alloc_and_read): Add "extra" param. Allocate that
much extra and clear. Update all callers, those that set up
strings with one extra byte.
Diffstat (limited to 'multilib.am')
0 files changed, 0 insertions, 0 deletions