flat assembler
Message board for the users of flat assembler.
Index
> Linux > [SOLVED] BUG: glibc detected *** listing: double free |
Author |
|
Tomasz Grysztar 17 Mar 2009, 15:16
You're right, it's an memory allocation bug, just a little too short buffer is being allocated there.
For a quick fix, find this piece of code in LISTING.INC: Code: mov eax,[code_bytes_per_line] imul eax,3 add eax,[maximum_address_length] add eax,10 call alloc jc not_enough_memory mov [output_buffer],eax And replace "add eax,10" with "add eax,12". And, as you can see, this bug isn't specific just to Linux. Thanks for the report. |
|||
17 Mar 2009, 15:16 |
|
buzzkill 17 Mar 2009, 15:26
Wow, that has to be the quickest bug-fix I've ever seen (As opposed to some other projects where bugs sit in a bugzilla for years...) And -ofcourse- your fix works like a charm, I just tested it. Thanks man, great work!
|
|||
17 Mar 2009, 15:26 |
|
vid 17 Mar 2009, 23:40
Quote: And replace "add eax,10" with "add eax,12". Needless to say, but that's the result of using notebook instead of symbolic names for structures |
|||
17 Mar 2009, 23:40 |
|
Tomasz Grysztar 18 Mar 2009, 09:20
vid wrote: Needless to say, but that's the result of using notebook instead of symbolic names for structures That's just the result of not couting all the spaces correctly in the fully-qualified listing line. In fact, I just realized that I still didn't take all of them into consideration, because with other count of byte columns you might still get more additional spaces for 8 columns alignment. It safer to put "add eax,18" there. |
|||
18 Mar 2009, 09:20 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.