Re: [Tinycc-devel] Stack Exhaustion on TinyC "mob" Branch

2021-02-12 Thread Michael Matz
Hello, On Sun, 7 Feb 2021, Zhuo Zhang wrote: Hi, I am writing to report a stack exhaustion on current TinyC ‘mob’ Branch, which is triggered when compiling a crafted program (named pop_stack.c and attacked). + How to trigger the bug: simple run “./tcc poc_stack.c" + Detailed informat

Re: [Tinycc-devel] [PATCH v2] arm-asm: Add vcvt

2021-02-12 Thread Michael Matz
Hello Danny, On Sat, 13 Feb 2021, Danny Milosavljevic wrote: as of commit 24c94fff09ea21f2e70b575256824e4648124aad on tinycc mob, arm-asm is finished. I've added all that one could reasonably want in lowest-common-denominator ARM assembly. That's quite cool! (For one-ARM-cpu-model-in-the-w

Re: [Tinycc-devel] Assembly instructions like "foo.bar"

2021-02-12 Thread Danny Milosavljevic
Hi, On Fri, 22 Jan 2021 18:30:25 +0100 grischka wrote: > Looks very good btw, the arm-asm ... Thank you! pgp9_lKXMWJ6d.pgp Description: OpenPGP digital signature ___ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/

Re: [Tinycc-devel] [PATCH v2] arm-asm: Add vcvt

2021-02-12 Thread Danny Milosavljevic
Hi, as of commit 24c94fff09ea21f2e70b575256824e4648124aad on tinycc mob, arm-asm is finished. I've added all that one could reasonably want in lowest-common-denominator ARM assembly. (For one-ARM-cpu-model-in-the-world-can-do-it speciality stuff one can always use '#define SPECIALINSTRUCTION ".i

Re: [Tinycc-devel] AddressSanitizer: heap-buffer-overflow

2021-02-12 Thread Michael Matz
Hello, On Thu, 11 Feb 2021, Zhuo Zhang wrote: A heap-buffer overflow occurs in commit fbef90a7039b994907db34fde50f6fa5e46ab535 (ASAN on). System info: ubuntu 18.04, x86-64 $ cat poc.c a() {   int b;   asm("" : : ""(b == 0), ""(b)); } Thanks for the report, it showed a real bug. Fixed in m

Re: [Tinycc-devel] Assertion Failed

2021-02-12 Thread Michael Matz
Hello, On Thu, 11 Feb 2021, Zhuo Zhang wrote: I find there is an assertion failure in current tcc code. $ cat poc.c int a = b(c() * 1e678); $ ./tcc -c poc.c test.c:1: warning: implicit declaration of function 'b' test.c:1: warning: implicit declaration of function 'c' tcc: x86_64-gen.c:530:

Re: [Tinycc-devel] AddressSanitizer: global-buffer-overflow

2021-02-12 Thread Michael Matz
Hello, On Thu, 11 Feb 2021, Zhuo Zhang wrote: A global-buffer overflow occurs in commit fbef90a7039b994907db34fde50f6fa5e46ab535 (ASAN on). System info: ubuntu 18.04, x86-64 Without ASAN, tcc will encounter a segment fault due to this overflow. Actually you won't get a segfault but an abor

Re: [Tinycc-devel] Regarding Long double Constant

2021-02-12 Thread Michael Matz
Hello, On Thu, 11 Feb 2021, Ayush Varshney wrote: [1] https://www.researchgate.net/publication/245578769_Fully_Countering_Tru sting_Trust_through_Diverse_Double-Compiling On Thu, Feb 11, 2021 at 9:27 AM Ayush Varshney wrote: Hi everyone, Hope you all are doing well!! I am new to the tin