Fix memory allocation and release problems in the bfd documentation processor.
authorTim R?hsen <tim.ruehsen@gmx.de>
Tue, 5 Nov 2019 16:03:07 +0000 (16:03 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 5 Nov 2019 16:03:07 +0000 (16:03 +0000)
commit3a70f7e8e3e480d1debf40b8d71d5444e32d69df
treeb1a3eb49c897ead5d98a072426b4c0a15ffdb54a
parent7abb8d81115a2a748443f041e37cc13a70b34faa
Fix memory allocation and release problems in the bfd documentation processor.

* doc/chew.c (add_to_definition): Use correct type when
calculating size of array reallocation.
(nextword): Always initialise the word return parameter.
(compile): Check return value of nextword().
bfd/ChangeLog
bfd/doc/chew.c