3241 Commits

Author SHA1 Message Date
pancake
38f9bd6f8b Fix x64 test and lock regression 2022-05-19 23:03:30 +02:00
pancake
a1df3493b5 Expose the r_atomic_* apis as public 2022-05-19 23:03:30 +02:00
pancake
fcaea55397 Dont assert on --disable-threads builds 2022-05-19 15:50:11 +02:00
pancake
f46c4e793f
Move more local static into the thread-local-storage (#20134) 2022-05-19 12:41:26 +02:00
pancake
af90a3870d Move RArch into RUtil 2022-05-17 11:37:08 +02:00
pancake
9be08a6c9d RStr.isTrue/isFalse accept NULL argument now ##api 2022-05-12 10:36:33 +02:00
pancake
40e7e74b4c Fix one needed cast 2022-05-10 18:33:18 +02:00
pancake
d815975921 Remove unnecessary casts that make gcc12 sad 2022-05-10 16:44:51 +02:00
pancake
043fa1734a Fix last covs 2022-05-10 11:36:50 +02:00
freddy
f5ed3092bc Add pcg to print array in Golang format 2022-05-10 09:11:11 +02:00
pancake
318b45ba6b Fix too large shifting in uleb128 2022-05-09 16:48:13 +02:00
pancake
42b8ad8fbc Fix uninitialized warning 2022-05-09 11:26:21 +02:00
pancake
ac19624e21
Initial import of the RThreadChannel API with the ::x command ##core 2022-05-08 04:04:50 +02:00
pancake
7e1b0c675f boolify and r_returnify the thread apis 2022-05-07 20:31:55 +02:00
pancake
26bc48806e Fix last cov: minor memleak fix 2022-05-06 12:29:14 +02:00
pancake
5b7c970f2b eprintf requires newline
* git grep eprintf | grep -v '\\n'| grep '('
2022-05-05 13:11:52 +02:00
pancake
90143a716f
Fix #20040 - invalid char bug in afl* when function names contain ';' ##projects
* Rename r_name_filter2() to r_name_filter_dup()
* Abi break as now `r_name_validate_char` is no longer an static inline
* Fixes some project save/load inconsistencies
2022-05-05 02:08:54 +02:00
pancake
f598b68e41 Better error handling in pushd/popd ##shell 2022-05-03 13:21:31 +02:00
pancake
86e7fd1a14 Fix #19830 - implement pushd/popd commands ##shell 2022-05-03 11:53:52 +02:00
pancake
bc5cea046e Fix last covs 2022-05-03 09:11:28 +02:00
pancake
cf888f19fd Improve binary input handling in rasm2 with 0b and Bx ##tools
* Skip _ separator `0100_0101` so its good for the eyes
2022-05-02 23:33:13 +02:00
pancake
a9d672774a Implement 'mktemp' syscmd command ##shell
* Initial implementation, needs testing, use with caution
2022-05-02 23:32:13 +02:00
pancake
af055ce732 Fix the build conflict between xtensa and loongarch on Windows 2022-05-02 20:29:07 +02:00
pancake
5ba038807c
Fix last covs 2022-04-28 23:35:51 +02:00
pancake
c54ce884d8
More cleanups related to the r_arch commit 2022-04-28 12:53:49 +02:00
pancake
eecb3813fe
Initial import of the WIP sh interpreter ##shell
* Aims to cover the basic posix shell syntax for r2pm
* This way we can use r2pm on windows without changing the syntax
* That said, r2pm packages are a compatible subset of the posix shell
2022-04-28 12:39:43 +02:00
pancake
560f7fb424 Introduce r_arch.h. Use RArchConfig in RAnal and improve RRef api ##api
* Fix unaligned issue in hex asan test
2022-04-24 23:11:26 +02:00
condret
1418971085 Redo minor cleanup in new_rbtree 2022-04-23 03:17:34 +02:00
condret
ead0cee826 Revert "Prefer memleak over usaf in io.bank's rbtree bug ##crash"
This reverts commit b5cb90b28ec71fda3504da04e3cc94a362807f5e.
2022-04-23 03:17:34 +02:00
condret
daee7dd79e Fix bug and optimize deletion in new rbtree api ##util 2022-04-23 03:17:34 +02:00
pancake
4823451497 Fix build and tests
* Fix one x86-64-specific test to pass everywhere
2022-04-22 05:46:34 +02:00
pancake
9b7cbc9cf7 Use more RLog, and add log.origin ##shell 2022-04-22 05:46:34 +02:00
pancake
664e8800d6 Remove all the deprecated abi apis 2022-04-19 15:40:29 +02:00
pancake
cef87fbc7c RLog cleanup, dont use log is a libc function 2022-04-19 11:14:57 +02:00
pancake
e7816e4d67 Improve RLog API and usage, document R2_LOG_ vars in r2 -hh ##core 2022-04-19 11:14:57 +02:00
pancake
81c9013454 Expose R_WEAK attribute and minor cleanups
* Fix memleak in cbin.relocs
2022-04-19 11:14:57 +02:00
pancake
9598fe5592
Use wx+ instead of wx;s+16 in pc* command ##print 2022-04-19 01:50:37 +02:00
pancake
576e81d71d Add sandbox checks for the debugger io plugins ##security 2022-04-19 00:50:42 +02:00
pancake
31cd732a00
Honor escaping semicolons in macro definitions ##shell
* WIP (disabled by default) make RStr.trimArgs() work on ALL commands
* Honor escaping special chars in command calls
* Add test for echo and macro definitions
2022-04-11 16:54:26 +02:00
pancake
6d5628cd96
Add psa command to print any kind of string ##print 2022-04-08 20:36:10 +02:00
Fernando Domínguez
8317a34b7e
Fix glob matching in several cases ##shell 2022-04-02 20:34:56 +02:00
Sergi Àlvarez i Capilla
6e90379057 Fix swift metadata string allocation and filtering bug 2022-03-31 12:25:50 +02:00
pancake
1b43677bff Implement pfP for relative pointer format memory formatting ##print 2022-03-27 12:24:10 +02:00
Sergi Àlvarez i Capilla
7a310d863f Add pfW for signed short format ##print 2022-03-26 12:26:40 +01:00
pancake
3760bfcd8d
Add tests for the code tokenizer and fix <<= assignments ##util 2022-03-26 10:35:13 +01:00
Sergi Àlvarez i Capilla
3c9bef2f29 Allow rahash2 -a to be passed multiple times ##tools 2022-03-25 22:14:18 +01:00
pancake
c8ae21f68f
Only build library archives when -Dblob is provided ##build
* Lowers the amount of objects from 2400 to 1500
2022-03-22 11:59:13 +01:00
pancake
ad2df6a14c Fix undefined behaviour in RVector, RPVector, RInterval and container_of ##fix
* All those basic primites were based on wrong assumptions
* Added more return_if preconditions on several anal functions
2022-03-21 12:04:14 +01:00
pancake
245babbf9e
Lots of cleanups to reduce the regressions in TCC ##refactor
* Cleanup crypto.aes and anal.arm_cs to make the latest tcc happy
* Dont pick latest tcc. as its broken (-30 commits for now)
* Dont pass multi-dimensional arrays as argument
* Don't assume TCC supports threads, because it doesnt
* Many intrinsics are missing still for tcc on darwin-arm64
* lz4 code crashes when compiled with latest tcc and needs a full rewrit
* Add more null checks here and there
* Remove unused code in the tcc parser
2022-03-17 18:40:58 +01:00
pancake
7d534a29be uaf 2022-03-15 23:25:12 +01:00