Commit Graph

386 Commits

Author SHA1 Message Date
Lazula
ea630ca19f Kill HAVE_EPRINTF, replace with ifndef eprintf 2021-12-25 09:16:49 +01:00
pancake
e6f2cd0b2a
Remove trailing spaces (#19460)
$ git grep ' $' | grep -v ^test/ | cut -d : -f 1 | sort -u > /tmp/trailing
$ for a in `cat /tmp/trailing` ; do sed -i -e 's/ *$//' $a ; done
2021-12-02 17:39:59 +01:00
pancake
31ec16fc60
Use more join_paths in shlr and sdb 2021-11-14 23:30:46 +01:00
pancake
93f6b4cd3b
Initial work towards supporting mingw32/64 again ##build 2021-10-18 23:58:16 +02:00
pancake
c546b71ab1 Update sdb dependency to fix a gcc10 warning in sdb_itoa 2021-09-20 06:29:11 +02:00
pancake
581cceb0ef
Update to the latest sdb (#19073) 2021-09-13 00:33:48 +02:00
pancake
3c416c54cc
Fix meson build and proper use of cgen ##build (#18920) 2021-07-21 17:22:39 +02:00
pancake
469818b616 Fix last covs (minor memleaks) 2021-06-29 10:44:27 +02:00
pancake
6c6d0b9337
Update to the latest SDB (#18863) 2021-06-28 09:42:52 +02:00
pancake
87b39b0952 Update to the latest sdb (better error handling in sdb-text and wasi support) 2021-06-21 01:24:36 +02:00
pancake
7c14bac05b
Add initial support for building r2 on WASI ##build 2021-06-20 17:14:43 +02:00
pancake
b545c72017
Better handling of HAVE_SYSTEM, PTY, FORK, DYLINK and THREADS ##build 2021-06-10 13:52:29 +02:00
pancake
83f590bee3
Fix the last issues spotted by coverity (#18787) 2021-05-31 22:04:51 +02:00
pancake
dac25ce8de
Update SDB with latest cleanups in sync with r2 2021-05-30 23:04:09 +02:00
pancake
6a96020d5f
memleaks are morally superior to double frees 2021-05-30 10:28:27 +02:00
pancake
b57950daf9 Update SDB 2021-05-30 09:16:23 +02:00
pancake
5b277867e1 Update sdb one more time 2021-05-29 03:02:07 +02:00
pancake
212f2345ba Update SDB again to fix the remaining 80 bytes leaked 2021-05-28 16:55:25 +02:00
pancake
be3ab791d0
Fix the infamous 160 byte memory leak in sdb (#18772) 2021-05-28 16:38:23 +02:00
pancake
46ec83c5a0
Add use_cgen meson option ##build (#18766) 2021-05-27 23:56:28 +02:00
pancake
f0cea42855
Update sdb again to fix the missing gperf warning (#18761) 2021-05-27 18:31:29 +02:00
pancake
d80476b698
Update SDB: Use the thin cgen instead of gperf (#18752) 2021-05-25 16:14:35 +02:00
pancake
a4b80d0b25 commandline -> command-line 2021-05-25 10:51:18 +02:00
pancake
ab9ef5a3d0 Update sdb 2021-05-21 11:46:04 +02:00
pancake
c3953d64d6
Use gperf on anal/d and improve build and checks ##anal
* Add --without-gperf configure flag
* Update sdb to support gperf.foreach and faster ls.sort()
* Support cc and types sdb gperfs
* add r_str_newvf
* Honor HAVE_GPERF in more places
* Add CI job to build and test cmds with gperf
2021-05-20 00:22:20 +02:00
pancake
08a8ab6eee
Use gperf in util/charset (#18672)
Co-authored-by: pancake <pancake@nopcode.org>
2021-05-11 11:21:02 +02:00
pancake
7546f34e57
Update sdb and use of SdbGperf in asm.d ##asm 2021-04-25 02:31:46 +02:00
murphy
60290f8629 Fix 1446544 Argument cannot be negative 2021-04-13 20:09:33 +02:00
murphy
4bef13edc3 Fix 1446545 Resource leak 2021-04-13 20:09:33 +02:00
pancake
87fe959e26 Update sdb 2021-04-04 17:38:25 +02:00
pancake
bd02bfd5c5
Update to sdb-1.7.0 (#18337) 2021-02-08 22:21:56 +01:00
Kamil Rytarowski
9d761f6a88
Avoid array subscript type issues (#18295)
Cast char to unsigned char for standard reasons and security purposes.

Fixes build issues on NetBSD.
2021-01-26 13:08:58 +01:00
pancake
298888dfec Fix issues spotted with gcc -Werror 2021-01-13 01:28:10 +01:00
pancake
1184610971
Fix the CI badge and fully rewrite all the workflows to make sense ##build
* Windows, Linux, Static, macOS, Android, iOS builds published for every commit
* Kept coverage, coverity, fuzzing tests, lgtm and -Werror jobs
* Kill the continuos, the over-engineered matrix and other empty or unnecessary tasks (250 vs 900LOC)
* Jobs TODO: fatmac, termux and rpm (centos) packages
2021-01-12 13:41:21 +01:00
pancake
85cce84722 Update SDB to get some more boolified APIs 2020-12-28 22:02:48 +01:00
pancake
46a658c9f2
Update for sdb-1.6.0 (#18114) 2020-12-27 12:09:20 +01:00
pancake
40c8825820 Update capstone and SDB 2020-12-14 16:10:35 +01:00
Lazula
243bc871c3 Multiple refactors in io and util ##io ##util ##refactor
* Add r_io_map macros throughout code base
* Update string NULL-checking with renamed functions r_str_get() and r_str_getf()
* Change string NULL-checks throughout code base to use functions
* Add r_str_get_fail() to specify a custom string to return if NULL-check fails
* Mark JSON to be updated with PJ with "TODO PJ"
* Incidental style updates such as missing spaces
2020-12-13 05:09:13 +01:00
Paul I
b17a7e6eb0 Update sdb to 2faeca6dfe516b3ab5f1fcd3655d878fdcbdad0f 2020-11-12 15:14:42 +08:00
Florian Märkl
ed00e85e65
Use sdb == for generating dbs in meson (#17676) 2020-09-21 15:11:46 +02:00
Anisse Astier
a4c76ff641
Bring merge sort and insertion sort cmp function semantics together (#17473) ##util
Merge sort uses cmp (a, b) < 0 for its first test branch, and insertion
sort cmp (a, b) > 0 ; which means the 0 boundary goes in one case in one
branch, and in the other sort function in the other branch.

It makes it possible to support compare function that return true/false
instead of -1/0/1; although this isn't an acceptable use of
RListComparator, this prevents future bugs from appearing, because this
works with insertion sort, but not merge sort.

The main advantage of this patch is that both sort functions should sort
equal elements the same way. This stability is important for zignatures
for example.
2020-09-09 15:45:34 +02:00
Zi Fan
3c88900134
Implement save and load functions for debug session ##debug (#17430)
* Add `dtst` and `dtsf` commands
* Change `RDebugSession` to store its data in their own sdb namespace
* Add `r_debug_session_serialize()` and `r_debug_session_deserialize()` API
* Add unit tests for `RDebugSession `save and load functions
2020-08-20 12:25:47 +08:00
pancake
e22b3e9bcc
Fix race condition and remove unnecessary SDB build targets ##build (#17476)
* Simplify sdb build
* This was wrong
* updadte sdb
Co-authored-by: pancake <pancake@nopcode.org>
2020-08-19 10:31:20 +02:00
pancake
75ee57bfb0
Update SDB with boolified SdbForeachCallback (#17040) 2020-06-11 11:25:23 +02:00
GustavoLCR
04edfa82c1
Fix command injection on PDB download (#16966)
* Fix r_sys_mkdirp with absolute path on Windows
* Fix build with --with-openssl
* Use RBuffer in r_socket_http_answer()
* r_socket_http_answer: Fix read for big responses
* Implement r_str_escape_sh()
* Cleanup r_socket_connect() on Windows
* Fix socket being created without a protocol
* Fix socket connect with SSL ##socket
* Use select() in r_socket_ready()
* Fix read failing if received only protocol answer
* Fix double-free
* r_socket_http_get: Fail if req. SSL with no support
* Follow redirects in r_socket_http_answer()
* Fix r_socket_http_get result length with R2_CURL=1
* Also follow redirects
* Avoid using curl for downloading PDBs
* Use r_socket_http_get() on UNIXs
* Use WinINet API on Windows for r_socket_http_get()
* Fix command injection
* Fix r_sys_cmd_str_full output for binary data
* Validate GUID on PDB download
* Pass depth to socket_http_get_recursive()
* Remove 'r_' and '__' from static function names
* Fix is_valid_guid
* Fix for comments
2020-06-10 18:00:00 +02:00
Florian Märkl
fdb17b6329
Sync SDB (#16491)
SDB Commit: 9cbdd20d8da21fb58486e6207dc486c6cc5b402f
2020-04-09 18:14:29 +08:00
radare
72093ac706
Fix #16138 - Do not preincrement when it's not necessary (#16151) 2020-03-05 19:06:59 +01:00
Khairulmizam Samsudin
e0e27b8c51
sdb header file dependency for external plugin i.e. pyc (#16004) 2020-02-19 19:39:43 +01:00
Florian Märkl
281dd5b794
Update SDB URLs (#15357) 2019-10-25 15:58:29 +02:00
Florian Märkl
03ef6b4e06 Update SDB for sdb_copy() (#15356) 2019-10-25 15:30:43 +02:00