createELFObj() may call error(...), for example when file is too short.
In that case header is not set and following line lead to crash:
EMachine = ELFObj.getHeader()->e_machine;
Patch fixes the issue.
Differential D25233
[ELF] - Do not crash when unable to parse ELF object file. grimar on Oct 4 2016, 5:30 AM. Authored by
Details createELFObj() may call error(...), for example when file is too short. EMachine = ELFObj.getHeader()->e_machine; Patch fixes the issue.
Diff Detail Event Timeline
|
I wonder may be we can just make this fatal() ?
It is not called when file not found, but only when there is something wrong with it.