flat assembler
Message board for the users of flat assembler.
![]() |
Author |
|
Tomasz Grysztar
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. |
|||
![]() |
|
buzzkill
Wow, that has to be the quickest bug-fix I've ever seen
![]() |
|||
![]() |
|
vid
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 ![]() |
|||
![]() |
|
Tomasz Grysztar
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. |
|||
![]() |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2020, Tomasz Grysztar. Also on GitHub, YouTube, Twitter.
Website powered by rwasa.