191 Commits

Author SHA1 Message Date
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
Dennis Goodlett
a0a5428154
Update byte signature flag name ##signatures 2022-04-12 11:31:27 +02:00
condret
d1ebd1588a Fix bug in z/, that creates misplaced functions ##zign 2022-03-29 14:34:41 +02:00
Sergi Àlvarez i Capilla
f50678328b Address dead code in widechar search spotted by coverity 2021-12-13 23:43:29 +01:00
Dennis Goodlett
9921f8c1d5
Add JSON output to zb commands ##signatures 2021-12-12 11:46:58 +01:00
Dennis Goodlett
93f4ec40de
Add help message for zac ##signatures 2021-11-12 10:45:53 +01:00
Dennis Goodlett
7c27574b5c
Simplify deserialization of byte ##signatures
* New API to get fist hex bytes in str ##util
2021-11-05 10:13:56 +01:00
Dennis Goodlett
b00d8c6e0f
Add more information to var ##signatures 2021-11-03 12:59:06 +01:00
pancake
19588146de
Fix some of the last covs 2021-10-22 10:57:58 +02:00
Dennis Goodlett
e7df8ad3c7
Simplify types storage in r_sign ##signatures (#19245) 2021-10-18 20:42:05 +02:00
Dennis Goodlett
d0055f5284
Prevent merging zigns on load ##signatures
* Prevent merging ##signatures of same name on load
* Rasign2 respect -m on -S
* Optimizations
2021-10-11 22:49:21 +02:00
Dennis Goodlett
8665744819
Auto-rename name collisions in ##signatures 2021-10-07 08:21:25 +02:00
Dennis Goodlett
c4622b6603
Implement "next" signature type ##signatures
* Update tests for added signature
2021-09-01 01:27:52 +02:00
Dennis Goodlett
5e90f5efbd
Add r_sign_metric_search to r_sign.h ##signatures (#18984) 2021-08-16 10:00:09 +02:00
pancake
9a2636b32b
Remove other useless and incomplete treesitter leftovers and get +400 new commands in the recursive help ##shell 2021-08-14 18:28:20 +02:00
Dennis Goodlett
197c9d5316 Fix bug in zaf creating zignspace ##signatures 2021-08-11 01:16:46 +02:00
Dennis Goodlett
eaa235a1b1 Better description for a signatures 2021-08-11 01:16:46 +02:00
Dennis Goodlett
47bd6fa966
Expand r_sign API ##signatures
* Remove RCore from r_sign_fcn_vars
* Move r_sign_add_func to r_sign
* Add r_sign_all_functions to r_sign
* Use r_sign in rasign2 ##signatures
2021-08-08 00:42:47 +02:00
pancake
2a195eda0f
Simplify r_file_glob name and string allocation logic (#18893) 2021-07-09 10:35:54 +02:00
Sergi Àlvarez i Capilla
469355bda2 Fix null deref false positive in cmd_zign.c 2021-06-01 12:06:14 +02:00
Dennis Goodlett
f59e8387d1
Consider collision ##signatures before renaming (#18734) 2021-05-22 09:53:02 +02:00
Dennis Goodlett
88edfb775b Create function when z/ finds byte ##signatures 2021-05-18 06:28:35 +02:00
Dennis Goodlett
0657c1f100
Add R_SIGN_BYTES to metric search (#18703) ##signatures 2021-05-18 00:07:15 +02:00
Dennis Goodlett
2942cf1433
Add zac command and collisions type to ##signatures (#18692)
This commit ads the R_SIGN_COLLISIONS ('C') signature type, which will later be
used to resolve what a function should be named when multiple signatures match.
2021-05-15 00:49:53 +02:00
Dennis Goodlett
00e8fd1253
Refactor output of ##signatures (#18660) 2021-05-06 00:23:13 +02:00
Jing Liu
98150ad182
Fix unshown warning in zb command when size is small (#18656) 2021-05-04 19:44:10 +02:00
pancake
4b46160943
Workaround gcc warning bug (#18655) 2021-05-04 11:56:21 +02:00
Dennis Goodlett
0a10c3f13a
Refactor signature matching ##signatures (#18651) 2021-05-03 15:48:29 +02:00
Dennis Goodlett
f550986e8e
Add byte signature diff zd ##diff ##signatures (#18620) 2021-04-24 09:26:13 +02:00
pancake
4905e3af91
Fix #18260 - Sort bbs before comparing them for diffing code ##diff (#18584)
Co-authored-by: pancake <pancake@nopcode.org>
2021-04-16 17:57:13 +02:00
murphy
013d9123a3 Fix warnings and minor fixes due to code review 2021-03-17 11:16:51 +01:00
murphy
222137d343 Fix 1447092 Structurally dead code 2021-03-17 11:16:51 +01:00
pancake
a08c89eb10 Fix warnings found on 32bit and --with-check-levels=0 2021-02-27 01:01:22 +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
Dennis Goodlett
ceb661ca7a
Refactor r_sign metrics match ##signatures (#17786)
* Refactor r_sign metrics match ##signatures

This reduces the interface for matching function metrics to a single call. Now
each RSignItem is created once for all metric search types. Additionally, other
function data that is expensive to compute is now cached.

* Replace int with size_t

Co-authored-by: Dennis Goodlett <dennis@hurricanelabs.com>
2020-10-26 14:08:42 +08:00
Florian Märkl
1c485e8bfc
Rename r_sign_anal_additem to r_sign_add_item and add r_sign_get_item ##signatures (#17691) 2020-09-22 14:09:17 +02:00
Dennis Goodlett
61d9be3ff1
Fix zig add type ##signatures (#17653)
Co-authored-by: Dennis Goodlett <dennis@hurricanelabs.com>
2020-09-21 00:04:05 +02:00
Dennis Goodlett
67cc898770
Fix multiple bugs in matching ##signatures (#17607)
Co-authored-by: Dennis Goodlett <dennis@hurricanelabs.com>
Co-authored-by: Riccardo Schirone <ret2libc@users.noreply.github.com>
2020-09-13 23:11:29 +02:00
Dennis Goodlett
749b2e7095
Add zb score threshold variable ##signatures (#17545) 2020-09-03 10:52:21 +08:00
Dennis Goodlett
e5a979fc01 Honor zign vars in zbr ##signatures 2020-08-28 13:30:39 +08:00
Dennis Goodlett
99df8f8293
Add best match reverse search ##signatures (#17467)
Co-authored-by: Dennis Goodlett <dennis@hurricanelabs.com>
2020-08-17 12:37:27 +08:00
Dennis Goodlett
1641f52140
Add bytes to zb command ##signatures (#17364)
Co-authored-by: Dennis Goodlett <dennis@hurricanelabs.com>
2020-08-05 16:07:50 +08:00
Dennis Goodlett
b1dee71dce
rasign2 refactoring ##signatures (#17148)
* refactor signatures code
* update signatures to handle fragmented functions

Co-authored-by: Dennis Goodlett <dennis@hurricanelabs.com>
2020-07-15 19:25:28 +08:00
Riccardo Schirone
2ffa790e0a
Generate help automatically ##newshell (#16782)
* Add additional RCmdStatuses
* ?? should be a cmd_identifier, not help_command
2020-06-17 21:29:23 +02:00
Dennis Goodlett
83418323e0
Bestmatch ##signatures (#16977)
* implment basic concept signature bestmatch
* bestmatch works without zignspace
* zb shows top n closet matches
* add tests for zb command
* return list from r_sign_find_closest_sig

Co-authored-by: Dennis Goodlett <dennis@hurricanelabs.com>
Co-authored-by: pancake <pancake@nowsecure.com>
2020-06-12 10:58:27 +08:00
radare
0968e0f7b5
Add pj_ad api to print raw data ##json 2020-03-20 19:35:41 +01:00
radare
66ed0133e2
Initial r_anal_fcn_* purge (#16238) ##refactor 2020-03-17 12:58:39 +01:00
radare
984b9ed8ed
Fix #16231 - zj incorrect json (#16235) 2020-03-17 04:21:21 +01:00
radare
5e629a3260
Avoidify the strTrim() APIs + cleanup/refactor ##util (#16056) 2020-03-02 21:39:37 +01:00