Fix off-by-one in simple-object-elf.c (PR lto/91228).
authorMartin Liska <mliska@suse.cz>
Wed, 24 Jul 2019 07:00:48 +0000 (09:00 +0200)
committerMartin Liska <marxin@gcc.gnu.org>
Wed, 24 Jul 2019 07:00:48 +0000 (07:00 +0000)
commit70121844349587b23c3950e844021a22ab51638c
tree9e74e8d6e3ed32151539211c7b46d7403026e008
parentfe1a06fc57cf535f8c4f7410944a993eeae81d4c
Fix off-by-one in simple-object-elf.c (PR lto/91228).

2019-07-24  Martin Liska  <mliska@suse.cz>

PR lto/91228
* simple-object-elf.c (simple_object_elf_copy_lto_debug_sections):
Find first '\0' starting from gnu_lto + 1.

From-SVN: r273757
libiberty/ChangeLog
libiberty/simple-object-elf.c