commit | f7a559d5e11c5c023554b48b661aabbcc2c87cb8 | [log] [tgz] |
---|---|---|
author | Alan Modra <amodra@gmail.com> | Sat Aug 06 17:05:44 2022 +0930 |
committer | Alan Modra <amodra@gmail.com> | Sat Aug 06 18:43:24 2022 +0930 |
tree | 8a686db06b8a0c9b1faaf59b3cfae7f2e8cab89b | |
parent | 578a7392c33c7c7cde5559278e519c75047318c9 [diff] |
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.