From 01bcaf636ad0b1d5fe44a21917ec900af86072a8 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sun, 15 Jul 2018 18:07:40 -0600 Subject: Avoid ubsan complaint in BFD I built gdb with ubsan and ran the test suite. One complaint was due to bfd_get_elf_phdrs passing NULL to memcpy. This patch avoids the complaint. bfd/ChangeLog 2018-07-23 Tom Tromey * elf.c (bfd_get_elf_phdrs): Don't call memcpy with size 0. --- bfd/ChangeLog | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'bfd/ChangeLog') diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 5b79a25..19fd9df 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2018-07-23 Tom Tromey + + * elf.c (bfd_get_elf_phdrs): Don't call memcpy with size 0. + 2018-07-21 Eric Botcazou * elf32-arm.c (elf32_arm_final_link_relocate) : Small -- cgit v1.1