elinks icon indicating copy to clipboard operation
elinks copied to clipboard

Abort: malloc(): invalid size (unsorted)

Open etoddallen opened this issue 2 years ago • 4 comments

The tool aborts with a malloc error on the attached HTML. The HTML originally was an actual email I received, but it contained some confidential information, so I had to edit it down to what I've attached. It originally was the result of many replies and replies-to-replies, etc., so it is heavily idented. Which I think is part of what's driving elinks crazy.

The original failure was with the RHEL9 elinks-0.16.0-3.el9.x86_64 package, but I confirmed that it also fails when built from git commit d9d5633c0b8f8f300d3844980c08372bafad71e1.

Anyway, he actual failure is:

$ src/elinks -dump elinks-boom.html.txt malloc(): invalid size (unsorted) Abort(coredump)

elinks-boom.html.txt

etoddallen avatar Apr 04 '23 23:04 etoddallen

Thanks for the report. Please check above commit.

rkd77 avatar Apr 05 '23 14:04 rkd77

Thanks. It fixes the memory fault, so much better! Now I can see the recent replies in the email chain, including in the original.

I will point out that the problematic very-indented table is displayed strangely, with the table boundaries being out-dented, and many characters overwritten with > characters:

+-->>>>>>>>>>>>> --------------------------------------------------------------- | >>>|>>>>>>>>> s, | >>>|>>>>>>>>> ...

etoddallen avatar Apr 05 '23 15:04 etoddallen

Sorry, I have no idea yet how to resolve it.

rkd77 avatar Apr 06 '23 08:04 rkd77

OK. The malloc failure definitely was the Big Bad, and that's fixed.

etoddallen avatar Apr 06 '23 11:04 etoddallen