Hi all,
Here is another bug trigger by poc_crash.c. I try to find out why but I am not so familiar with the codebase of TinyC. I suspect it is an integer overflow or struct misuse, but not so sure. For more information,
I additionally compile tcc with address sanitizer on, but it does not report any basic heap or stack overflow.
+ poc_crash.c:
n(){((_()));asm(""::""(0||d()),""(0));
+ How to trigger the bug:
simple run “./tcc poc_crash.c"
+ Detailed information:
system: Ubuntu 18.04.5 LTS, x86-64
compiler (to compile tcc): gcc (Ubuntu 7.5.0-3ubuntu1~18.04) 7.5.0
commit: fbef90a7039b994907db34fde50f6fa5e46ab535
md5 of poc_crash.c: d41a05b9f5c49d7b548c5c5d4ad02989
Please let me known if there is anything I can help with. Thanks!