[PATCH 2/3] Do not call fputc from _bfd_doprnt

Nick Clifton nickc@redhat.com
Mon Feb 12 15:04:01 GMT 2024


Hi Tom,

> I noticed that _bfd_doprnt can unconditionally call fputc.  However,
> when called from error_handler_sprintf, this will likely result in a
> crash, as the stream argument does not actually point to a FILE.
> 
> bfd/ChangeLog
> 2024-01-29  Tom Tromey  <tom@tromey.com>
> 
> 	* bfd.c (_bfd_doprnt): Do not call fputc.

Approved - please apply.

Cheers
   Nick



More information about the Binutils mailing list