356 Commits

Author SHA1 Message Date
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
Florian Märkl
a30c1f62a0 Update SDB after diff update (#15334) 2019-10-23 12:05:34 +02:00
pancake
011ebf7e03 Update sdb 2019-09-30 11:51:50 +02:00
Paul I
374eb3b95c Update shlr/sdb (#15095) 2019-09-22 10:43:23 +02:00
pancake
631db86543 Fix minor warnings and update sdb from git 2019-09-11 00:18:07 +02:00
karliss
5379c70e89 Fix memory leaks and other problems found by ASAN. (#14980) 2019-09-08 01:24:14 +08:00
radare
0c386b4121
Introduce anal.in=code (2x faster aar in some big binaries) ##anal (#14923) 2019-08-28 19:39:04 +02:00
radare
dc0892a1a0
Towards emscripten build fix (update sdb) ##build 2019-07-07 16:52:41 +02:00
radare
4c87ee714e
Upgrade to use sdb 1.4.0 (#14045) 2019-05-13 11:10:33 +02:00
wangcong
b22d03613e Improve Makefile on macOS (#13431)
`OS` can have already be set to other values on user machines, `OS=` fits better here.
2019-03-19 11:43:13 +01:00
pancake
08aec4a431 Update sdb from git 2019-03-18 10:38:00 +01:00
radare
9740af7270
Update sdb (#13373) 2019-03-14 01:04:26 +01:00
radare
5c7eb0bb7c
Address comments in #13094 related to maxbbsize and maxfcnsize ##anal (#13102) 2019-02-16 12:11:13 +01:00
pancake
936efa6344 Upgrade sdb 2019-02-16 11:42:18 +01:00
GustavoLCR
d3d0d6db24 Implement sdb_js0n() without GNUC weirdness (#12829) 2019-01-18 11:28:56 +01:00
Riccardo Schirone
adab5e4302 Update SDB code and use ht_update_key API in RFlag (#12804) 2019-01-16 16:57:19 +01:00
dav1901
37ea17d1a2 Minor code cleanups/fixes (#12714) 2019-01-09 22:06:12 +01:00
GustavoLCR
7530895d0a Fix a few clang scan-build bugs (#12562)
* Removed unnecessary variable from libr/core/disasm.c
* Removed not necessary assignment in libr/core/casm.c
* Removed not used assignment in libr/bin/dwarf.c
* Rem. duplicate declaration and not used values
* Fixed potential memory leak in java/class.c
* Fixed potential memory leak in ragg2
* Removed unnecessary variable in visual.c
* Another potential memory leak in class.c
* Removed not used value assignment
* Fixed memory leak in dwarf.c
* Removed not needed assignments
* Remove more not used assignments
* Refactored where bin_sections gets arch & bits for clarity
* Removed more assignments that are not used
* Rem. more unused assignments
* Surround assignment with paranthesis
2018-12-26 12:54:12 +01:00
dav1901
f24556c189 Fix few clang-analyzer warnings (#12548) 2018-12-24 01:18:12 +01:00
Florian Märkl
71e921b50f Sync SDB (#12547) 2018-12-23 18:44:56 +01:00
Riccardo Schirone
f4bf35cc16
sync sdb to a3463734c6d656ab174b32ba0b64e77475edae29 (#12244) 2018-11-20 16:50:28 +01:00
Riccardo Schirone
f77ecfb357 Upgrade SDB and use the new HtPP, HtUP, HtUU ##refactoring
* sdb-sync: update to commit ea05ca8808605daa683a2b35f143e24c3a70f0c9
2018-11-14 10:47:28 +01:00
dav1901
8b83d03c99 Minor code cleanups free/R_FREE (#12145) 2018-11-13 23:41:28 +01:00
dav1901
9b0fbf1ee4 Minor code cleanups - free/R_FREE/etc 2018-11-13 00:23:49 +01:00
radare
71053f17e9
Move trie, mixed, slist into Sdb's Attic, and DES from util to crypto ##refactor 2018-11-07 17:18:14 +01:00
pancake
cc643a2ab8 Update SDB from git 2018-10-29 22:15:47 +01:00
Riccardo Schirone
c09ba158fe
sync sdb and adapt r2 codebase (#11953)
add improvements of SdbHt from sdb
2018-10-26 15:54:32 +02:00
radare
c50357fbe6
Fix the build of the iOS SDK ##build (#11884) 2018-10-21 14:56:56 +02:00
pancake
c4795fc766 Update SDB to fix last covs 2018-10-13 13:25:36 +02:00
Riccardo Schirone
8b020619c8 sync sdb
sdb sync: add sdb_foreach_list_filter API
2018-10-11 09:53:22 +02:00
Riccardo Schirone
e2278cc50f
sync sdb: some refactoring on how to access base SdbKv fields (#11741) 2018-10-05 15:21:46 +02:00