Commit Graph

687 Commits

Author SHA1 Message Date
pancake
f9f9e367de Use rlog instead of eprintf in 300 more places 2022-08-22 14:35:04 +02:00
pancake
4706aa0f6e Add help message for /at? ##search 2022-08-22 14:31:35 +02:00
pancake
eac902d491 /at accepts a comma separated list of optypes ##search 2022-08-22 14:31:35 +02:00
pancake
7a35f03471 More source spacing linting 2022-08-18 14:37:29 +02:00
pancake
c0d3c226f1 Enable emulation in /as, it's fast enough and results are better ##search
* Use x16 on macOS and x8 on Linux
* Add test against glibc
2022-08-07 18:42:10 +02:00
Paul B Mahol
e5234b920c Fix leaks caused by not calling r_anal_op_fini() ##anal 2022-08-07 12:08:20 +02:00
Paul B Mahol
8ffa196193
Fix not calling r_asm_op_fini() when needed (#20506)
The RAsmOp is used on stack when disassembling and after its content is not need it needs to call its _fini to free possible heap memory previously allocated.
2022-07-29 07:30:05 -04:00
Paul B Mahol
6a891ed683 Fix /rx ##search
Simplify code a little.
2022-07-27 07:28:33 -04:00
pancake
295c49706b Fix /as on arm64-linux and add missing tests to cover it ##search
* This needs a proper fix which will break abi
2022-07-12 14:32:20 +02:00
pancake
bed72b73b2
Add another source linting to avoid newlines in RCore.cmd() ##refactor 2022-06-30 22:22:30 +02:00
pancake
304a3a7fcf
Use more R_LOG instead of eprintfs and add more linting checks ##refactor 2022-06-28 11:24:06 +02:00
pancake
4304eff378 Honor cfg.bigendian in /v subcommands ##search 2022-06-17 15:58:12 +02:00
pancake
cc6c5747fd
Mark more globals as TLS (#20289) 2022-06-14 12:55:40 +02:00
pancake
ef81c30ce8
Implement search.in=flag ##search 2022-05-28 12:39:25 +02:00
pancake
a4c15c0ae7 Blindfix null derefs in search.in 2022-05-28 00:42:16 +02:00
pancake
dbff56ff60
Fix gcc12 warnings. Ref #20087 2022-05-27 12:42:58 +02:00
pancake
93d9860f41
Add test for 'q' return code bug and minor cleanup r2r ##tests 2022-05-26 12:41:49 +02:00
pancake
8c5ffa6fe2
Use RArchConfig in RPrint ##api
* Unify seggrn, segbas, bits and endian into a single referenced struct
2022-05-22 01:02:56 +02:00
pancake
90ebcd2485 Fix null deref in search when no maps allocated (r2frida) 2022-05-18 14:32:55 +02:00
pancake
116a8b224a Honor anal.calls in aap ##anal
* 322 -> 369 functions found
2022-05-16 21:58:56 +02:00
pancake
59f9681da4
Fix #7094 - Add direction information in xrefs ##analysis
* This PR breaks the ABI, so it won't go in until 5.7
* Needs new tests and massage the broken ones
* Remove duplicated reftype.toString() method
* Make more tests run on non-x86
* Update and fix tests
2022-04-25 22:19:23 +02:00
Sylvain Pelissier
5718360c03 Improve /ca speed and add JSON output for crypto function 2022-04-25 14:19:54 +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
pancake
f35fd1c33e
Initial implementation of shared RAsmConfig ##asm (#19972) 2022-04-22 19:47:25 +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
Apkunpacker
6d0bf405ac
Lowercase all the help messages for consistency ##shell 2022-04-11 11:09:41 +02:00
pancake
708e59b8a1
Add r_core_return_code() and use it ##shell
* Still WIP, but good to go if passing tests
* It's a macro that is only used internally for code clarity
* Ship RCmd.returnValue into RCore.num.value in some situations
2022-04-08 23:15:39 +02:00
pancake
691bdd0472 Initial implementation of the aavr command ##search
* Find relative references using Apple's Swift pointer mangling
* Add aav? help message
2022-03-27 12:23:58 +02:00
Lazula
d507bda91c Remove R_EMPTY and R_EMPTY2 2022-03-13 11:26:10 +01:00
Lazula
b5a26e0c0c
Significantly reduce memory leaks in anal tests (#19759) 2022-02-27 14:57:58 -06:00
pancake
f2995c2949
Introduce r_strf and stop using sdb_fmt ##util 2022-01-18 18:35:31 +01:00
Lazula
0200498e65 Fix command string leak in do_asm_search() and use r_list_free() 2022-01-15 16:42:34 +01:00
pancake
6561ad536b Add help for /re? and handle invalid subcommands properly 2022-01-09 19:10:09 +01:00
Sergi Àlvarez i Capilla
8909464c45 Handle 'ph?' 2022-01-07 03:42:23 +01:00
Sergi Àlvarez i Capilla
ef915ccf3f Implement /aF and /aFd to search for instructions in functions ##search 2022-01-07 02:19:13 +01:00
Dennis Goodlett
2a117d5f4f
Add Rabin Karp algorythm to ##search 2021-12-30 10:30:30 +01:00
Dennis Goodlett
d76bb693f2 Add r_search_maps to ##search 2021-12-30 10:30:13 +01:00
Dennis Goodlett
efe2a28e94 Search adjacent maps together ##search 2021-12-30 10:30:13 +01:00
Dennis Goodlett
f8f9599154
Move /e to new search API ##search
* Move global var to struct
* Add r_cons_is_breaked
* Use RConsBind
2021-12-23 00:36:51 +01:00
pancake
575c26f329 Fix some format string warnings in the mingw ci job 2021-12-21 00:31:28 +01:00
Dennis Goodlett
df32fd1725
Add r_search_upate_read API ##search 2021-12-16 12:45:48 +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
Lazula
2255bf8b5d Many indentation style fixes
* Change several 8-space indents to tabs
* Apply tab indent style when breaking long lines
* Move operators from EOL to start of next line
* Fix ternary formatting
2021-11-18 10:43:52 +01:00
condret
fe87ab37a0 Remove redundant RPVector maps from RIO 2021-10-26 00:16:09 +02:00
Murphy
f73d18205c
Fix 19164 add help message (#19279)
* Add /o and /O help messages
* Add /w subcommands help message
* Add help message to /i
* Add /f help msg
* Update /d cmd msg help
* add a8 help cmd
2021-10-22 01:18:34 +02:00
Sergi Àlvarez i Capilla
b936b15a80 Improve error message when search.from > search.to 2021-10-21 12:41:50 +02:00
Antoni Viciano
88d8b622bf Fix #19094 - RBinOptions renamed to RBinFileOptions 2021-10-10 20:52:46 +02:00
Lazula
0747bcd8e2 Fix new defects in various files
* Remove unnecessary NULL check in __demangleAs()
* Remove unnecessary NULL check in r_io_fd_seek()
* Add missing break in ARM32 COFF case and fix test
* Add missing NULL checks for r_io_bank_get() result
* Add missing NULL checks in r_bin_demangle()
* Add missing NULL check for r_io_submap_new() result
* Fix improper failure check in risv_assemble()
* Add missing break in open command
* Document fall-through case in dalvik anal
2021-10-08 01:31:17 +02:00
condret
8b1d0f4a0f Enable io banks in search; Kill search.in = io.sky.* ##io 2021-10-07 19:25:37 +02:00
pancake
d443347958
Fix #19164 - Add help message for /p? ##search 2021-10-05 10:11:06 +02:00