]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
Do not call fputc from _bfd_doprnt
authorTom Tromey <tom@tromey.com>
Mon, 12 Feb 2024 21:25:03 +0000 (14:25 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 12 Feb 2024 23:25:37 +0000 (16:25 -0700)
commit91095bcf2820f3d77ea1e16a338e686ba6a70e9f
tree41ee18a16ef5c433c58f63d686a8006b86aed6c9
parente25a613437218e60854241e95e8028343a983d92
Do not call fputc from _bfd_doprnt

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.c (_bfd_doprnt): Do not call fputc.
bfd/bfd.c