This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: [ARM] Avoid dereferencing null pointers
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