flat assembler
Message board for the users of flat assembler.
Index
> Compiler Internals > sigsegv in fasmg g.hnvit |
Author |
|
Jerry 18 Jan 2017, 18:13
Not entirely sure if this post should go here or belongs to the macro section, i guessed this one as it is a segmentation fault.
I'm compiling some program and using the (adapted) listing macro as posted in this thread : https://board.flatassembler.net/topic.php?t=19190 Sorry the example is a bit big, as i was not able to reproduce it in a smaller example, as i'm not exactly sure what happens (other than SIGSEGV). The problem description on the other hand is just one line. At line 40 in listing.inc i initially, mistakenly, typed in "lengthof line" instead of "lengthof `line" This example of works as "`" is present (and runs when sqlite3.dll is present, i left that one out) If you remove the "`" at line 40 you'll see (hopefully). I'm running on Ubuntu 16.04 64 bit my INCLUDE variable is pointed to the "examples/x86/include" directory. Thanks for build this tool and example macro's by the way, really having a great time with it. Hope it helps.
|
|||||||||||
18 Jan 2017, 18:13 |
|
Tomasz Grysztar 18 Jan 2017, 18:37
Thank you, it is fixed now (version g.hoh12). I should have run some fuzzing on the recent releases, since this bug would most probably have been easily detected in the process. At the time of the first public releases of fasmg I had used afl to detect some bugs of this kind, but LENGHTOF was a relatively recent addition and it has not been fuzzed yet.
|
|||
18 Jan 2017, 18:37 |
|
< Last Thread | Next Thread > |
Forum Rules:
|
Copyright © 1999-2024, Tomasz Grysztar. Also on GitHub, YouTube.
Website powered by rwasa.