We do not verify the p_offset of the PT_INTERP header and tool may
crash when a program interpreter name string goes past the end of the file.
Depends on D78805.
Differential D79013
[llvm-readelf] - Do not crash when the PT_INTERP has an invalid offset. grimar on Apr 28 2020, 8:35 AM. Authored by
Details We do not verify the p_offset of the PT_INTERP header and tool may Depends on D78805.
Diff Detail Event Timeline
Comment Actions LGTM, with one remaining request.
Comment Actions
(It still depends on D78805.) I am leaving on vacation until 12 of May.
Comment Actions LGTM, with the two error message fixes. I'd appreciate @thopre's input on the numeric variable usage too, but that shouldn't block this landing.
Comment Actions Changes Planned -> Accepted, since it was accepted. Will commit shortly with requested changes. Comment Actions %x and %X deliberately don't match the 0x0* prefix to allow:
It might be useful to introduce a precision syntax a la printf to specify how many leading zeros are allowed, as well as a --canonicalize-numvar-leading-zero or better named option which would allow matching as many leading zeros. Leading zeros are allowed in immediates though since that has no impact on what is matched, hence why #FOO+0x00018 is allowed. Let me know if you need further clarification. Comment Actions Was committed as 0d54612164519c874eecf5a1be68597b96410628, phab did not close it for some reason. And does not allow me to close it normally. |
Isn't the test covered by ERROR-INTERP2?