189 Commits

Author SHA1 Message Date
condret
827a8ac783 Enable io-plugins to set bin.baddr on launch ##io 2021-03-15 21:08:33 +01:00
pancake
7ff2673dd9
Random uninitialized variable uses fixups (#18453) 2021-03-15 02:23:39 +01:00
pancake
3694865726
r2 -b acts like -e asm.bits, which resulted in anal plug issue (#18438) 2021-03-11 20:07:16 +01:00
pancake
cacc508fba
Fix #18412 - Add R2_IGNVER variable to load plugins ignoring the version ##core (#18413) 2021-03-03 18:03:58 +01:00
pancake
8413fd630a Improve .fill and rasm2 -hh with documented directives ##asm 2021-02-04 01:03:58 +01:00
pancake
545f9197f1
Fix the archos regression in the CI (#18327) 2021-02-03 12:07:14 +01:00
ChD1
580bdf2c52
Fix some bugs in dex.c, marshal.c, panels.c and other code optimization and fixel (#18297) 2021-01-27 10:53:50 +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
Qijia Liu
b8afdf8d7d Fix memleak in db/formats/mangling/mangling 2021-01-25 02:37:21 +01:00
Fangrui Song
0d4d8c083f
radiff2: drop MODE_DIST (#16986)
MODE_DIST (-s) is the same as MODE_DIST_LENVENSTEIN (-ss) but much slower.
Drop it. Make MODE_DIST_MYERS (-sss, faster than MODE_DIST_LENVENSTEIN) take its place (-s).

The original comment was incorrect (-s is not Eugene W. Myer's algorithm). It is correct now.

* drop buggy Levenshtein and rename the original
* fix tests

Co-authored-by: eagleoflqj and Maskray
2021-01-24 22:17:25 +01:00
pancake
2e1d0579d7
Fix 18264 - honor graph.font in more places (#18276) 2021-01-24 21:52:23 +01:00
Liumeo
14fee1797b
Fix memleak in test_r2pipe & test_esil_dfg_filter (#18271) 2021-01-24 00:17:02 +01:00
Allen McIntosh
5a207ff69c change usage message so it at least mentions all options. Still need to clean up options with arguments 2021-01-19 04:34:28 +01:00
Allen McIntosh
33421f00c6 If radiff2 can't open first file, don't claim that second file can't be opened 2021-01-19 04:34:28 +01:00
eagleoflqj
4c58f45500 Use pj in rahash2 ##refactor 2021-01-15 09:37:56 +01:00
pancake
829862006f Initial deprecation of RCoreFile ##refactor 2021-01-08 02:09:57 +01:00
Liumeo
a74ca8f07b
Remove core.file ##refactor (#18178) 2021-01-06 23:44:18 +01:00
pancake
d7a4aedf5a Fix projects by removing code and honoring prj.name ##projects 2021-01-03 10:54:00 +01:00
pancake
8d4709bc0b Reworked P command with RProject and prj.name integration ##projects 2021-01-03 10:54:00 +01:00
pancake
898173aa38 Add RFile.new and RFile.move APIs ##util 2021-01-03 10:54:00 +01:00
pancake
cf91324937 Remove file.path and file.lastpath and add RProject ##projects 2021-01-03 10:54:00 +01:00
Qijia Liu
9e63a44c5c Fix memleak in r2 and test_big 2021-01-03 10:10:32 +01:00
eagleoflqj
2879c582af Use pj in cmd_info.c ##refactor 2021-01-03 01:24:58 +01:00
Liumeo
a637aa281d
Fix s390x rax2 -I & memleak (#18151) 2021-01-01 22:48:28 +01:00
pancake
f26a35a8dd
Use pj in radiff2 -j 2020-12-30 02:00:35 +01:00
pancake
4b6fd801e4
Import last random rizin fixes and more (#18128) 2020-12-28 23:34:16 +01:00
pancake
fdddd234bc
Implement rax2 -I to convert from/to LONG and IP Address ##print 2020-12-28 21:04:48 +01:00
Liumeo
55ce4ce303
Use pj in pdb_downloader ##refactor (#18084) 2020-12-21 23:46:12 +01:00
Lazula
f2976d3c7e
Use r_str_get_fail() throughout codebase ##refactor (#18079) 2020-12-21 08:51:44 +01:00
pancake
d3157e2ed3
Fix 32 critical COVs (UAF, UB and OOB) (#18077) 2020-12-21 01:10:22 +01:00
pancake
89f6c6e1f1
Fix many ASAN issues, from uaf to memory leaks and some boolification (#18048) 2020-12-20 23:37:45 +01:00
Lazula
4a1a624318
Clean up r_num ##util ##refactor (#18049)
* Fix function spacing for r_num functions
* Remove r_num_ntohs
* Rename r_num_to_trits to r_num_to_ternary for
  consistency with surrounding code
* Rename trits to ternary in other files
* Fix spacing in test_contrbtree.c
2020-12-17 22:24:27 +01:00
pancake
2be5ff8762
Use r_core_cmd_str_pipe when using . in a panels (#17982) ##visual 2020-12-16 14:25:36 +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
pancake
66bd6ed870
Remove globals in radiff2 ##build (#18022) 2020-12-12 20:22:18 +01:00
pancake
c2311d0a96
Remove globals from rafind2 (#18008) 2020-12-08 22:26:09 +01:00
pancake
b2f210a0cc
Fix asserts in r2 -a snes foo.sfc ##bin (#17990)
Co-authored-by: pancake <pancake@nopcode.org>
2020-12-04 12:16:09 +08:00
Liumeo
9015f12b8f
Fix SystemZ (S390) rax2 (#17934) 2020-11-19 11:48:53 +08:00
Anton Kochkov
87b10ed586 Fix formatting warnings 2020-11-02 18:58:37 +08:00
Aswin C
fd99114bca
Rename asm.filter to asm.sub.names ##cons (#17737)
* Rename `asm.filter` to `asm.sub.names`
* Rename tests for `asm.filter`
2020-10-01 10:13:58 +08:00
GustavoLCR
87b7be75e3
Fix rafind2 -m/-i/-E on Windows (#17740) 2020-10-01 10:13:38 +08:00
pancake
62c2128b6f
Better use of the R_SOCKET_PROTO_DEFAULT and add _NONE (#17644)
* Better use of the R_SOCKET_PROTO_DEFAULT and add _NONE ##http

* Fix regressions in: r2 -C and =+ ##r2pipe

Introduced in 04edfa82c1f3fa2bc3621ccdad2f93bdbf00e4f9

* Implement sleep command ##shell

* Add tests for the webserver and remoting

* Implement daemon directive in rarun2, fix http test ##rarun2

* Fix socket timeout on Windows (patch by @GustavoLCR) ##socket

* Missing http.root is not a reason to not start the webserver ##http

* Fix r2 -C, =!=0, replace curl with r2 in the webserver test ##http

* Honor anal.in/from/to in aae, optimize db/formats/mach0/thumb ##anal

* Bug fixes and performance improvements

Co-authored-by: pancake <pancake@nopcode.org>
2020-09-25 19:51:23 +08:00
pancake
f71ec729ba
Always register the derived CC from the reg profile ##anal (#17685) 2020-09-24 17:17:15 +02:00
pancake
19f941509b
Fix rasm2 -L bits field for 4 and 0-bit plugins ##asm (#17686) 2020-09-23 13:31:56 +08:00
Khairul Azhar Kasmiran
d9057505dc
Set RPATH/RUNPATH on r2 libs too if local (#17639) 2020-09-15 09:16:14 +02:00
Zi Fan
ea1151d143
Escape environment vars in the default rarun profile (#17441) ##debug 2020-09-07 11:16:57 +02:00
pancake
e54b8d0092 Rename bin.demanglecmd to cmd.demangle ##config 2020-08-28 20:34:44 +08:00
Dennis Goodlett
ee133222fe
Add zignature spaces to ##rasign2 (#17404)
* Add zignature spaces to ##rasign2
* Update help information
* Use space API instead of core

Co-authored-by: Dennis Goodlett <dennis@hurricanelabs.com>
2020-08-11 12:36:10 +08:00
Zi Fan
ac126508d5
Fix debugger to run debuggee with original environment variables ##debug (#17116)
* Change `fork_and_ptraceme` to start debuggee with rarun2 profile on Linux & Mac
* Add two new commands `doe` and `doe!` to show and edit rarun2 startup profile
* Fix `r_run_parse` to read last line
2020-07-24 16:25:55 +08:00
pancake
d441baad62
Fix latest COVs, remove dead code and unnecessary global variables (#17231)
Co-authored-by: pancake <pancake@nopcode.org>
2020-07-22 19:37:31 +08:00