[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Tinycc-devel] bounds checking
From: |
Herman ten Brugge |
Subject: |
[Tinycc-devel] bounds checking |
Date: |
Tue, 10 Dec 2019 08:26:16 +0100 |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.2.2 |
I just committed a large patch that fix a lot of bounds checking problems.
I tested the bounds checking code now works on x86_64 and i386 on linux
and windows.
The test/tests2 directory can now be tested with -b enabled.
There are a lot of changes (not complete):
- split up bcheck.c from libtcc1.a because I now use dl_sym to redirect
malloc and friends.
This was needed because the malloc_hooks are not thread safe.
When compiling with -b now the pthread and dl library are also included.
- Rewrote bcheck.c library to fix a lot of small problems.
- Add mmap/munmap support on linux.
- Updated tcc.1
- Added bound_main_arg to record argv on startup.
- Added support for x86_64 on windows.
- Moved tcc_add_bcheck from tccelf to i386/x86_64 code.
- Added 2 new testcases.
- Fixed a lot of bugs:
- conversion problem code with double/long long.
- in gen_bounded_ptr_add move save_regs to top.
- alloca/vla fixes.
- VT_LLOCAL problems when using bounds checking.
- ...
Regards,
Herman
- [Tinycc-devel] bounds checking,
Herman ten Brugge <=
- Re: [Tinycc-devel] bounds checking, Christian Jullien, 2019/12/10
- Re: [Tinycc-devel] bounds checking, Herman ten Brugge, 2019/12/10
- Re: [Tinycc-devel] bounds checking, Herman ten Brugge, 2019/12/10
- Re: [Tinycc-devel] bounds checking, Christian Jullien, 2019/12/10
- Re: [Tinycc-devel] bounds checking, Edmund Grimley Evans, 2019/12/10
- Re: [Tinycc-devel] bounds checking, Christian Jullien, 2019/12/11
Re: [Tinycc-devel] bounds checking, grischka, 2019/12/10