When gas/read.c calls mbstowcs with a NULL destination, it should set size to 0
authorNick Clifton <nickc@redhat.com>
Fri, 5 Aug 2022 09:29:48 +0000 (10:29 +0100)
committerNick Clifton <nickc@redhat.com>
Fri, 5 Aug 2022 09:29:48 +0000 (10:29 +0100)
commit5858ac626e548772407c038b09b7837550b127dd
tree24adcf531466743408c6d156fd712f421070e972
parent731d2cc1d5106c077584bd83e96dbba4f7e11118
When gas/read.c calls mbstowcs with a NULL destination, it should set size to 0

PR 29447
* read.c (read_symbol_name): Pass 0 as the length parameter when
invoking mbstowc in order to check the validity of a wide string.
gas/ChangeLog
gas/read.c