xcoff slurp_armap bounds checking
[deliverable/binutils-gdb.git] / bfd / ChangeLog
index 302ee5ec8554e23efcca4d0ae31fdf34a8d5c152..dc264de3cc360cd741a32c6d3de1b7350e9bed00 100644 (file)
@@ -1,3 +1,10 @@
+2019-12-18  Alan Modra  <amodra@gmail.com>
+
+       * coff-rs6000.c (_bfd_xcoff_slurp_armap): Don't overflow when
+       checking symbol count against section size.  Guard against strlen
+       running off end of buffer by allocating one more byte and zeroing.
+       * coff64-rs6000.c (xcoff64_slurp_armap): Likewise.
+
 2019-12-18  Alan Modra  <amodra@gmail.com>
 
        * elf32-ppc.c (ppc_elf_get_synthetic_symtab): Use size_t for vars.
This page took 0.022445 seconds and 4 git commands to generate.