On 07-03-19 08:12, Tom de Vries wrote: > Hi, > > When invoking dwz with a file containing an invalid locexpr length, we can run > into this assertion: > ... > dwz: dwz.c:1722: read_loclist: Assertion `ptr + len <= endsec' failed. > Aborted (core dumped) > ... > > Change the assert into an error: > ... > dwz: a.out: locexpr length 0x4ef exceeds .debug_loc section > ... > > OK for trunk? > > Thanks, > - Tom > Added: - test-case - 'unlikely' around error condition. Committed as below. [ Including trivial follow-up patch to fix buildbot failures. ] Thanks, - Tom