NULL dereference read in som_write_object_contents
authorAlan Modra <amodra@gmail.com>
Sat, 29 Oct 2022 00:01:01 +0000 (10:31 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 29 Oct 2022 04:53:47 +0000 (15:23 +1030)
commit13de66dd346c4a4eddf62c3b97747d707c5ed78e
treec21e5dbdabb78e4d1a027cf28b78a0d1a3ac7d6c
parent0ce50fc900a53f32ed09c49ddc8cf26b517b33d1
NULL dereference read in som_write_object_contents

objcopy copy_object may omit the call to bfd_copy_private_bfd_data for
various conditions deemed non-fatal, in which case obj_som_exec_data
will be NULL for the output file.

* som.c (som_finish_writing): Don't dereference NULL
obj_som_exec_data.
bfd/som.c