This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]