Re: asan: buffer overflow in peXXigen.c
authorAlan Modra <amodra@gmail.com>
Thu, 17 Mar 2022 03:37:16 +0000 (14:07 +1030)
committerAlan Modra <amodra@gmail.com>
Thu, 17 Mar 2022 11:02:44 +0000 (21:32 +1030)
commitc55f2b9c61d7dad73a45474194a0f2752738e59c
treecfe2bc1dc89ac6a95b115c2c536f335dac30a91b
parent0d1064face9956be43774b81e9cdad5daea28c92
Re: asan: buffer overflow in peXXigen.c

In the process of fixing a buffer overflow in commit fe69d4fcf0194a,
I managed to introduce a fairly obvious NULL pointer dereference..

* peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Don't
segfault on not finding section.  Wrap overlong lines.
bfd/peXXigen.c