[ARM] Avoid dereferencing null pointers

Christophe Lyon christophe.lyon@linaro.org
Thu Nov 21 10:12:00 GMT 2019


On Thu, 21 Nov 2019 at 09:16, Alan Modra <amodra@gmail.com> wrote:
>
> On Thu, Nov 21, 2019 at 08:44:26AM +0100, Christophe Lyon wrote:
> > I'm not sure I understand your comment about an object without any
> > global symbols: whatever the reason, if sym_hashes is NULL, cmse_scan
> > will crash, won't it?
>
> No, because cmse_scan only uses sym_hashes for global syms.  If there
> are no globals it should be fine with sym_hashes NULL.
>
I see, thanks for the explanation.

Can you push your fix?

Thanks,

Christophe



More information about the Binutils mailing list