Steffen Nurpmeso wrote:
Yes it is, there is a double free in conjunction with the
preprocessor end_macro() (imagine a smile here). end_macro()
frees the macro and then that free_inline_functions or so tries to
frees it again, which causes a crash.
I think this was possible when you get a compile error within
the inline function.
In this case because of the longjmp in tcc_compile, the TokenString
was not removed from the macro_stack first, then it was freed in
free_inline_functions, and then again in tccpp_delete:end_macro.
Fixed here:
http://repo.or.cz/tinycc.git/commitdiff/7c28c9b13f7c924c18920b51f42b1119c3b1e2ee
--gr
_______________________________________________
Tinycc-devel mailing list
[email protected]
https://lists.nongnu.org/mailman/listinfo/tinycc-devel