125 Commits

Author SHA1 Message Date
pancake
7ff2673dd9
Random uninitialized variable uses fixups (#18453) 2021-03-15 02:23:39 +01:00
Alexis Ehret
f48729acd5 Random null deref and more size_t fixes 2021-03-15 01:48:59 +01:00
Liumeo
38a13c94bb
Fix MSVC warning LNK4006 (#17885) 2020-11-02 12:27:02 +08:00
pancake
aa7de006e6 Fix TinyCC build ##build 2020-09-27 13:33:26 +08:00
Riccardo Schirone
2d160f2509
Avoid sdb double headers (#17249) ##build
* Avoid duplication of SDB headers in libr/include

SDB is an external project and as such it should live in shlr. However,
for simplicity in dealing with the include flags, the SDB headers were
copied in libr/include as well. This patch just keeps the SDB files
confined in shlr/sdb and make sure various r_* libs use the headers from
there.

* Fix pkgconfig file generation
2020-07-21 10:28:43 +02:00
pancake
160fc95e66
Use (void) instead of () in function signatures (#17026) ##refactoring
* Use (void) instead of () in function signatures
* Add test to avoid further contributions to commit the same mistake
2020-06-14 16:08:32 +02:00
Riccardo Schirone
70e3d3bc56
Fix compiler warnings (#17046) 2020-06-12 10:26:55 +02:00
Óscar Carrasco
990a6dfa23
Fix #16343 - Do not generate numeric structs from unnamed typedefs in "ts" ##types (#16485) 2020-05-05 15:51:17 +02:00
Alexis Ehret
88d8357767
Fix empty struct and add test (#16408) ##types 2020-04-03 13:07:00 +02:00
pancake
090450401f Implement tc* and fix tc glitch ##types 2020-03-30 15:31:36 +02:00
pancake
77bd3eb05e Add NSString and size_t types in tcc+r2 ##types 2020-03-30 15:31:36 +02:00
Óscar Carrasco
aa8c7de595
Implement function names with dots in signatures ##anal (#15993)
* Allow function names containing dots in tcc
2020-02-26 14:23:47 +01:00
Anton Kochkov
e11b2a9145
Some Coverity defect fixes (#15626) 2019-12-13 11:25:19 -06:00
Paul I
2556919857 Add clang-cl support (#14814) 2019-08-16 12:10:00 +08:00
GustavoLCR
04121a2ad8 Fix stack-use-after-scope (#14811) 2019-08-15 13:41:41 +08:00
GustavoLCR
87079ea21c Fix #14804 - Make sure anon structs have unique names (#14806)
* Also skip "union" to get type
2019-08-15 12:00:20 +08:00
Anton Kochkov
5b9215bff5
Fix #13633 - support nested unions (#14712) 2019-07-31 18:40:40 +08:00
Óscar Carrasco
31e7cf517a Fix includes from to ignoring dir.types ##types 2019-05-15 08:46:43 +02:00
radare
3c41cb7d7e
Another tcc crash fixed (#13599) 2019-04-01 03:37:39 +02:00
radare
7ffa72aaed
Fix #13552 - Crashes in tcc parser (#13566) 2019-03-31 00:32:14 +01:00
Anton Kochkov
bd9eb0138b
Add ut*/st* type shortcuts (#13550) 2019-03-29 08:22:55 -05:00
Anton Kochkov
bb67b54f74
Remove CYGWIN & MINGW remnants (#13377) 2019-03-15 12:55:08 +08:00
Anton Kochkov
54f841a4d3 Small TCC bitfields parsing fix 2019-02-08 15:05:18 +08:00
Khairul Kasmiran
808c512325 Remove commented anon_sym init in tcc_compile() 2019-02-07 20:16:45 +08:00
Khairul Azhar Kasmiran
0f9e3beb9b Support typedef to anonymous struct in more than 1 header ##types 2019-02-07 12:40:05 +01:00
Khairul Azhar Kasmiran
b4178702c8 Support typedef'd (anonymous) structs ##types 2019-02-06 22:08:50 +01:00
dav1901
f24556c189 Fix few clang-analyzer warnings (#12548) 2018-12-24 01:18:12 +01:00
dav1901
0a65d76eb8 Minor cleanups/fixes 2018-12-18 16:26:17 +01:00
dav1901
024d65e288 Fix few more clang warnings (#12429) 2018-12-11 10:28:01 +01:00
dav1901
cdaa507e15 Fix more clangs (#12399) 2018-12-04 16:09:18 +01:00
pancake
d7a7e9e57c Define __R2TINYC__ in our tcc fork 2018-11-26 01:36:17 +01:00
radare
d05292e485
Fix 80 warnings coming from gcc8.2 (#12280) 2018-11-22 22:11:43 +01:00
dav1901
c1f30de193 Minor code cleanups free/R_FREE (#12157) 2018-11-14 21:23:20 +01:00
radare
d3d6fc8494 Fix UBSAN unaligned struct issue in the tcc parser (#11846) 2018-10-18 11:51:29 +08:00
Riccardo Schirone
d6aab51c2b WIP: gcc8 warnings (#11795)
* arch/ebc: fix style and remove gcc8 warnings
* parse/parse_ppc_pseudo: fix gcc8 warnings
* parse/parse_mips_pseudo: fix gcc8 warnings
* anal/esil: fix strncat usage
* shlr/tcc: fix snprintf usage
* parse/parse_dalvik_pseudo: fix sprintf -> snprintf
* lang/vala: fix gcc8 warnings
* core/vmenus: fix snprintf usage
2018-10-12 12:17:29 +02:00
MK
b1b3b5e150 Fix #11777 C header file loaded using 'to' cmd causes Segfault (#11778) 2018-10-09 19:55:29 +08:00
pancake
305be74a8c Implement tej to print enums in json 2018-10-07 02:11:13 +02:00
Paul I
620affc89e Fix some warnings (#11152) 2018-08-20 14:52:02 +08:00
Rafael Rivera
3f0d377123 Ensure we use correct platform path sep (fixes #11063) (#11064) 2018-08-13 11:45:40 +02:00
Andry
6601ccb583 Fix #10895 - tcc infinite loop 2018-08-04 13:17:29 +02:00
sivaramaaa
97de3ff035 Manage types enum more properly (#10139) 2018-05-21 01:54:50 +02:00
pancake
5cde546971 Fix aae on x86-64, improve Vx, add sys/rebuild.sh tcc, .. 2018-04-11 02:32:27 +02:00
FXTi
c3f1a5d853 Fix tt command, now support synthetic built-in type (#9777) 2018-03-29 13:22:20 +02:00
FXTi
45f1372568 Add tt command (#4400) (#9765) 2018-03-26 00:59:52 +02:00
Oscar Salvador
58369b86f5 Some fixups for #9682 (#9688) 2018-03-14 13:08:01 +01:00
Lowly Worm
188cc99d42 fix crash in unmatched braces in tccgen
fixes #9577
2018-03-04 09:27:10 -08:00
Ziyaddin Sadigov
d4dd6fd5e6 Fix typo regarding byte size (#9067) 2017-12-27 18:33:58 +01:00
Anton Kochkov
45dd7e13e9 Fix indentation for shlr/tcc 2017-11-07 16:16:01 +08:00
Anton Kochkov
53c8eeeb99 Add intN_t types 2017-11-07 16:16:01 +08:00
Anton Kochkov
a3c9088c79 TCC cleanup 2017-11-07 16:16:01 +08:00