An issue was discovered in the Binary File Descriptor (BFD) library (aka libbfd), as distributed in GNU Binutils through 2.31. There is an integer overflow and infinite loop caused by the IS_CONTAINED_BY_LMA macro in elf.c. Upstream issue: https://sourceware.org/bugzilla/show_bug.cgi?id=23932 Upstream patch: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=beab453223769279cc1cef68a1622ab8978641f7
Reproduces quite easily -- infinite loop printing an assertion in all versions of RHEL packages post rhel-5. binutils 220 in rhel-5 does not appear to package strip, hence is notaffected. ``` mingw-strip: BFD (GNU Binutils) 2.30 assertion fail ../../bfd/elf.c:7089 mingw-strip: BFD (GNU Binutils) 2.30 assertion fail ../../bfd/elf.c:7089 mingw-strip: BFD (GNU Binutils) 2.30 assertion fail ../../bfd/elf.c:7089 mingw-strip: BFD (GNU Binutils) 2.30 assertion fail ../../bfd/elf.c:7089 mingw-strip: BFD (GNU Binutils) 2.30 assertion fail ../../bfd/elf.c:7089 ```