aboutsummaryrefslogtreecommitdiff
path: root/gdbsupport/run-time-clock.cc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-11-29 10:18:36 +1030
committerAlan Modra <amodra@gmail.com>2024-11-29 15:43:44 +1030
commit1e3b2da08eb21042f01a9f6862b487ca77484c92 (patch)
treed62570282bb9bd01922bb121e90985fa04c7a467 /gdbsupport/run-time-clock.cc
parentb270c84810e3c89548fead11ec9dee3e2395becb (diff)
downloadbinutils-1e3b2da08eb21042f01a9f6862b487ca77484c92.zip
binutils-1e3b2da08eb21042f01a9f6862b487ca77484c92.tar.gz
binutils-1e3b2da08eb21042f01a9f6862b487ca77484c92.tar.bz2
PR32399, buffer overflow printing core_file_failing_command
Assorted targets do not check, as the ELF targets do, that the program name in a core file is NUL terminated. Fix some of them. I haven't attempted to fix all targets because editing host specific code can easily result in build bugs, which aren't discovered until someone build binutils for that host. (Of the files edited here, I can't easily compile hpux-core.c and osf-core.c on a linux system.) PR 32399 * hppabsd-core.c (hppabsd_core_core_file_p): Ensure core_command string is terminated. * hpux-core.c (hpux_core_core_file_p): Likewise. * irix-core.c (irix_core_core_file_p): Likewise. * lynx-core.c (lynx_core_file_p): Likewise. * osf-core.c (osf_core_core_file_p): Likewise. * mach-o.c (bfd_mach_o_core_file_failing_command): Likewise.
Diffstat (limited to 'gdbsupport/run-time-clock.cc')
0 files changed, 0 insertions, 0 deletions