[PATCH] opcodes/nfp: skip those non-code sections

Alan Modra amodra@gmail.com
Wed Aug 25 00:39:03 GMT 2021


On Tue, Aug 24, 2021 at 09:14:03AM -0400, Yinjun Zhang wrote:
> AddressSanitizer detects heap-buffer-overflow when running
> "objdump -D" for nfp .nffw files.
> 
> Currently nfp disassemblers can only support code section, and
> we don't require to disassmeble other sections for now. So skip
> the non-code sections.

This patch does not fix the real problem in pr27854.  A small binary
edit to the testcase in that PR (change byte 0x150 from 0x03 to 0x07)
will result in objdump -d giving the same out of bounds access to
mecfgs[].

Not OK.

-- 
Alan Modra
Australia Development Lab, IBM


More information about the Binutils mailing list