Commit Graph

22023 Commits

Author SHA1 Message Date
pancake
96756a3048 Simplify RConfigHold APIs and update calls from RCore ##config 2021-02-05 18:48:01 +01:00
pancake
ebed292f66 Add RConfig.{get,set}_b dummy APIs 2021-02-05 18:48:01 +01:00
pancake
8413fd630a Improve .fill and rasm2 -hh with documented directives ##asm 2021-02-04 01:03:58 +01:00
pancake
b6d1476674
Reduce stackframe in fcn_recurse ##anal
* This function is called recursively for each basic block
* Limits the size of functions that can be analized (anal.depth)
* The r2 -A Ch34 almost works now.
* Moving from stack to heap is not the right solution
2021-02-03 18:55:18 +01:00
pancake
545f9197f1
Fix the archos regression in the CI (#18327) 2021-02-03 12:07:14 +01:00
condret
89ff9aaf6e
Implement esil syscalls #18029 ##anal (#18144) 2021-02-02 19:58:21 +01:00
pancake
9d7c56ab25 Fix binary mask shifting undefined behaviour issue in anal.arm64 2021-02-01 23:14:34 +01:00
pancake
d2e62ed672
Fix #18316 - ?0 and ?1 were a bad idea, move to ?t (#18321) 2021-02-01 15:05:19 +01:00
pancake
35731c185c
Add print, println, and placeholder for printf and printfln ##cons (#18320) 2021-02-01 13:36:29 +01:00
pancake
80d81c553b
Add /cu[qj*] and r_search_find_uds API ##search 2021-02-01 12:42:03 +01:00
pancake
ccfea838b9 Fix asan crash and r2r regression 2021-01-31 23:42:19 +01:00
pancake
306d6aa996 Fix few warnings and sort w command switch 2021-01-31 19:51:25 +01:00
ChD1
c70f38325a
Added messages if pf. can't set value ##print 2021-01-31 16:32:43 +01:00
ChD1
6187be3be6
Fixes in ae command handler and some null derefs (#18307) 2021-01-29 19:49:41 +01:00
condret
8be384cf6c Remove dead function signatures ##IO 2021-01-28 16:27:43 +01:00
ChD1
2f1488656d
Add hidden aeaB by using switch instead of ifelse chain + divbyzero issue fixed 2021-01-27 17:52:29 +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
pancake
09cbd3d914
Fix unused argument warning spotted in r2cutter (#18300)
Co-authored-by: pancake <pancake@nopcode.org>
2021-01-27 10:53:03 +01:00
pancake
eb09312b83
Fix iCj for mach0 ##bin (#18298) 2021-01-27 00:34:14 +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
Kamil Rytarowski
73bb7fdd66
Avoid overwriting LDFLAGS (#18294)
Append, instead of setting -lkvm for BSD platforms.
2021-01-26 10:55:54 +01:00
Kamil Rytarowski
de01f2d7db
Define PYC_ROOT and WASM_ROOT (#18290) ##build
Avoid passing -I as this is a non-portable construct.

Caught in pkgsrc on NetBSD.
2021-01-25 22:22:39 +01:00
pancake
320f322da3
Fix #18256 - Double free in RBin.DEX.libs (#18286) 2021-01-25 12:39:48 +01:00
pancake
98868585c9
Use r_core_flag_get_by_spaces() in getFunctionName() ##rizin (#18285)
Co-authored-by: Paul I <pelijah@users.noreply.github.com>
2021-01-25 11:57:34 +01:00
pancake
f6f7728cf4
Implement history filtering for dietline ##cons (#18283) 2021-01-25 03:28:37 +01:00
pancake
51145a117a Fix some of the last coverities related to UAF and OOBREAD 2021-01-25 03:08:33 +01:00
Qijia Liu
b8afdf8d7d Fix memleak in db/formats/mangling/mangling 2021-01-25 02:37:21 +01:00
pancake
07b466f61b Warn once about the missing anal.cc ##anal
* fix anoying warning on archs with dynamic or unknown regprofiles
2021-01-25 00:55:09 +01:00
Alexis Ehret
5b1b0c0da6 Fix dead increments 2021-01-25 00:34:58 +01:00
Paul I
59ad3b3c0b COFF: handle empty sections (#447) ##bin 2021-01-25 00:34:58 +01:00
Paul I
77455b1c64 Fix memleaks in ESIL op handlers (#438) 2021-01-25 00:34:58 +01:00
Paul I
8e622bc4df RTable: replace UT64MAX with dashes for X specifier 2021-01-25 00:34:58 +01:00
Anton Kochkov
ef462a4800 Some clang-format improvements ##indent
* Fix for clang-format parsing error
* Align consecutive macros for clang-format
* Dont align escaped newlines
* Use spaces for some alignment
* Add clang-format script
2021-01-25 00:34:58 +01:00
Giovanni
e55d7c033b Patching AVR ao wrong output on rjmp instruction (#415)
* Patching AVR ao wrong output on rjmp instruction
* Fixed test output
* Add AVR RJMP test

Co-authored-by: Anton Kochkov <anton.kochkov@gmail.com>
2021-01-25 00:34:58 +01:00
Riccardo Schirone
c09e60843e Fix old uses of @@ and @@@ (#409) 2021-01-25 00:34:58 +01:00
Riccardo Schirone
1b3c152452 Use space between 'so' and argument (#401) 2021-01-25 00:34:58 +01:00
Anton Kochkov
87d5855d35 Prevent NULL pointer dereference 2021-01-25 00:34:58 +01:00
Briand Djoko
f57677b554 Add additional ELF header fields to rz-bin output (#372) 2021-01-25 00:34:58 +01:00
pancake
148cdb9665 Fix UB with undeflow on anal.x86_cs 2021-01-25 00:32:45 +01:00
condret
a8b86d15e8 Some memory access sanitization for anal_x86.cs ##emu 2021-01-24 23:29:17 +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
pancake
c30bb618d2 Fix invalid left shift on dalvik parser 2021-01-24 19:54:26 +01:00
pancake
1d9a6d3338
Fix #18274 - Fix crash in r2 *.wasm ##bin (#18275) 2021-01-24 19:44:32 +01:00
pancake
c889cbadf7
Fix build for capstone5 ##build (#18273) 2021-01-24 19:09:43 +01:00
pancake
ce4e941043
Fix HUGE bottleneck in the WebAssembly pseudo disassembler and analyzer ##disasm (#18269) 2021-01-24 18:30:36 +01:00
pancake
cd6a439151
Add support for RAnal.ESIL plugins ##esil (#18206) 2021-01-24 16:39:45 +01:00
Liumeo
a79bf446fa
Use pj in debug ##refactor (#18270) 2021-01-24 16:07:30 +01:00
Liumeo
14fee1797b
Fix memleak in test_r2pipe & test_esil_dfg_filter (#18271) 2021-01-24 00:17:02 +01:00
Murphy
51b8a74636
Fix mg when file exists and cannot be created (#18272) 2021-01-23 22:13:55 +01:00
Murphy
8245e459f4
Add support to stream files using mg (#18253) ##fs
* Fix return values to int
* Add support to mg to read files in chunks
* Add support fs_io plugin when read files in chunks
* Change return value to in in read and write of r_fs_plugin_t
* Refactor code of mg command to support streaming
* Truncate destination file if exists
* Removing warnings due to incompatible pointer
* Add offset and size optional parameters to mg cmd
* Fix mg arguments management
* Fix some return values in fs
* Fix and refactor code to read files by chunks using mg
* add format changes
* Using r_num_math to parse the args
* Fixing fs_r2 to remove some warnings
* Remove some debug messages
* Update libr/core/cmd_mount.c
2021-01-23 17:16:39 +01:00
pancake
2d2cef076c
Dont demangle with libs unless requested ##bin (#18268) 2021-01-22 15:53:24 +01:00
pancake
5dedf4aa63
Fix crash when wasm file contains symbols with large names ##bin (#18261) 2021-01-22 12:07:35 +01:00
pancake
c76558c031
Add bin.cache evar to use io.cache when bins need to patch relocs ##bin (#18247) 2021-01-22 11:06:42 +01:00
Liumeo
302f4949a6
Use pj in core ##refactor (#18267)
* Use pj in core ##refactor

* fix tests
2021-01-22 08:44:44 +01:00
pancake
138c5a9b42
Fix UB in clz(0) spotted by asan (#18265)
* unum.c:41: runtime error: passing zero to clz(), which is not a valid argumentruet

Co-authored-by: pancake <pancake@nopcode.org>
2021-01-22 01:45:16 +01:00
pancake
a7bb374c62 Update libr/anal/esil_dfg.c 2021-01-22 01:22:24 +01:00
ChD1
c593041309 Fix some bugs in esil_dfg.c 2021-01-22 01:22:24 +01:00
pancake
c3f7d0e1d1
Add CI test to ensure symlink reinstalls work (#18252) ##build 2021-01-22 00:52:12 +01:00
Liumeo
39f5b12b8f
Use pj in cmd_log and cmd_print ##refactor (#18259) 2021-01-22 00:51:33 +01:00
condret
321c1dc0d7 Fix crash in radare2-rlang 2021-01-21 17:22:16 +01:00
Francesco Tamagni
d8b6f52e1d
Fix Mach-O rebase on fat slices ##bin (#18248)
* Don’t add boffset to macho sections paddr
* Add test
2021-01-20 08:08:43 +01:00
aemmitt-ns
f3cce89d41 refactor arm64math and helpers, add L*,S2D,U2D
fix u2d to be unsigned

fix and improve formatting

one more format fix

add fmul with vector test

fix zig tests
2021-01-19 23:05:11 +01:00
aemmitt-ns
bff0adf088 add a ton of supporting code for vector instructions
achieve working vector instructions
2021-01-19 23:05:11 +01:00
aemmitt-ns
2dc88c63b7 add floating point instructions to arm64 esil
fix div by zero compiler issue

update arm64 register profile

fix floating LT,LTE, fix FCCMP,CCMP, add 128 bit vector regs
2021-01-19 23:05:11 +01:00
pancake
fdb39cb5b7 Accept rwx argument in onn command ##io 2021-01-19 19:34:48 +01:00
pancake
fad6785005 Add onn command to fix custom map assignments ##io 2021-01-19 19:34:48 +01:00
pancake
d6f4cca167 Handle io.maps and bin.segments in o* to handle custom maps in projects ##projects 2021-01-19 19:34:48 +01:00
condret
d8c8851a42
Fix x86_cs cmpbs esil ##anal ##esil (#18251) 2021-01-19 17:23:36 +01:00
Liumeo
b8784098f7
Fix memleak in db/esil/apple (#18238) ##bin
* Add r_skiplist_insert_autofree and fix memleaks in db/esil/apple
2021-01-19 11:49:42 +01:00
pancake
0dbc4ee537 Add missing files and remaining patches from import 2021-01-19 05:37:17 +01:00
yossizap
7919b99305 Fix trace crash caused by a mismatch between the register profile and op anal ##rizin 2021-01-19 05:37:17 +01:00
Khairul Azhar Kasmiran
3073b0f8d8 Clear syscall and sysregs sdbs if their files are not found (#379)
* Clear syscall and sysregs sdbs if their files are not found
* "Fix" cmd_k tests

Co-authored-by: Riccardo Schirone <ret2libc@users.noreply.github.com>
2021-01-19 05:37:17 +01:00
wargio
3de5f99e68 AVR: Fixed profile, (null) instruction and anal ##rizin 2021-01-19 05:37:17 +01:00
Alexis Ehret
4827f58ea6 Refactoring function r_str_isnumber 2021-01-19 05:37:17 +01:00
Alexis Ehret
a3f05a9b1a Fix dead increments in places 2021-01-19 05:37:17 +01:00
Alexis Ehret
8ad2d817c2 Refactoring function r_type_func_guess 2021-01-19 05:37:17 +01:00
Alexis Ehret
78dc2b5b5f Fix dead increment libr/util/utype.c 2021-01-19 05:37:17 +01:00
Alexis Ehret
9683174a57 Fix dead initialization libr/core/agraph.c
r_list_foreach assign already a value for 'gn';
2021-01-19 05:37:17 +01:00
Florian Maerkl
0967e24b40 Fix potential null-deref in r_rbtree_cont_foreach() ##rizin 2021-01-19 05:37:17 +01:00
wargio
085125b4ba Fixed ACR build scripts to build AVR disassembler and anal plugins 2021-01-19 05:37:17 +01:00
wargio
f2314d4533 fixed double free in ds_update_ref_lines 2021-01-19 05:37:17 +01:00
wargio
cfcf4f86ac Fixed AVR anal plugin warning due unpopulated mnemonic ##rizin 2021-01-19 05:37:17 +01:00
Giovanni
5ffe3e4240 Fixing clang flow warnings (#321) ##rizin 2021-01-19 05:37:17 +01:00
GustavoLCR
c972d6a523 Fix #rizin302 - Fix function modification detection false ##rizin 2021-01-19 05:37:17 +01:00
Alexis Ehret
21c98d60ac Remove all dead assignment detect by clang sa (#310) ##rizin 2021-01-19 05:37:17 +01:00
Riccardo Schirone
a2b3adb671 Support evar filtering in eq and check for bool type in RConfig.toggle ##core 2021-01-19 05:37:17 +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
4ca278c2cb Fix r_anal_diff_fcn() so that case where only one function has NULL name is not treated the same as two functions with equal names 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
Francesco Tamagni
fb45d1de30 Fix crash in XNU kernel parsing (no cache) ##bin
Also handle corresponding chained pointers format
and rename made up name.
2021-01-19 01:29:31 +01:00
pancake
ae9ffe4a83 One more -Werror=maybe-uninitialized 2021-01-18 16:10:59 +01:00
pancake
9b862a8ad8 One more -Werror=maybe-uninitialized issue fixed 2021-01-18 15:49:27 +01:00
pancake
c66b83c679 Fix -Wmaybe-uninitialized issue 2021-01-18 14:48:00 +01:00
pancake
ee5fca96ff Remove ESIL->REIL code and commands ##refactor
* Despite being working it was not complete, not in
* sync with latest ESIL, not tested and we now have
* esil{cfg,dfg} and reil didnt succeed so far.
2021-01-18 12:15:33 +01:00
pancake
3d2856bb81 Type and null check fixes for RConfig 2021-01-18 11:15:04 +01:00
pancake
773695d835 Expose RConfigNode.options APIs to avoid messing with internals ##core 2021-01-18 11:15:04 +01:00
condret
c8b64170c4 fix x86-cs rep/repe/repne esil expressions ##esil ##anal 2021-01-17 04:25:31 +01:00
pancake
917682ac13 Fix plugin type name array issue in Lc command 2021-01-16 03:20:20 +01:00
pancake
d444bf338e pd, is an alias for pdt (pdt will be removed soon) ##disasm 2021-01-15 10:56:58 +01:00
pancake
edda7a408a Add CC, command previous CC, is now CCF ##meta 2021-01-15 10:56:58 +01:00
pancake
08d7fe688c Implement RTable:sql and add RTable.name ##core 2021-01-15 10:56:58 +01:00
eagleoflqj
4c58f45500 Use pj in rahash2 ##refactor 2021-01-15 09:37:56 +01:00
pancake
6b81691d9c Adjust tests and fix some map naming issue 2021-01-14 18:50:37 +01:00
pancake
76de54f79f Use RConfigNode.getter callback in anal.cc to be in sync with k anal/cc/default.cc ##projects 2021-01-14 18:50:37 +01:00
pancake
fbbeccb4c4 Add man name information in o* output ##projects 2021-01-14 18:50:37 +01:00
Liumeo
0d49da05b7
Use pj in dbtj ##refactor (#18230) 2021-01-14 17:29:27 +01:00
Liumeo
c631443b9b
Remove strncat usage (#18229) ##refactor 2021-01-14 17:24:23 +01:00
Qijia Liu
b56096be9a Fix memleak in db/esil/arm_16 2021-01-14 15:31:04 +01:00
Qijia Liu
1d62d7df13 Fix memleak in db/asm/arm_64 2021-01-14 00:05:56 +01:00
eagleoflqj
49718325fa Fix memleak in aecu 2021-01-13 22:12:43 +01:00
pancake
cb6c12a522 Fix return type in RCore.cmd 2021-01-13 13:51:50 +01:00
pancake
171b994831 Fix #18212 - Detect RISCV gdb servers ##debug 2021-01-13 13:30:07 +01:00
pancake
68eb523472 Add riscv in RSysArch and make it an enum, not a bitmask ##util 2021-01-13 13:30:07 +01:00
pancake
c46b9d76f9 Fix #18129 - Use bool in RCore.cmd 2021-01-13 10:34:57 +01:00
Liumeo
30afe39c5c
Fix aof and tcc db/formats/mach0/mach0
* Fix aof

* Fix tcc db/formats/mach0/mach0
2021-01-13 00:18:01 -05:00
pancake
76cd69ad66 Proper artifact naming and use more r_str_get to avoid some null derefs 2021-01-13 02:08:06 +01:00
pancake
45600080f5 Use r_str_newf instead of strncat in esil.dfg 2021-01-13 01:54:51 +01:00
pancake
cd8040b8fd Fix CI badge 2021-01-13 01:43:35 +01:00
pancake
5910d1891f Fix a couple of warnings for -Werror 2021-01-13 01:35:54 +01:00
pancake
7c5f1a88a1 Fix warning 2021-01-13 01:31:59 +01:00
pancake
298888dfec Fix issues spotted with gcc -Werror 2021-01-13 01:28:10 +01:00
aemmitt-ns
72f67e0612 use NAN changes 2021-01-13 01:23:15 +01:00
aemmitt-ns
cb3cfdb677 use unions instead of direct type-punning 2021-01-13 01:23:15 +01:00
aemmitt-ns
2e0ac73f0f fix divide by zero issue 2021-01-13 01:23:15 +01:00
eagleoflqj
2718385ede Reuse code in memory-based io plugins ##refactor 2021-01-13 01:22:42 +01:00
eagleoflqj
46b8a0cc4e sync to llvm, support orr alias 2021-01-12 23:00:13 +01:00
eagleoflqj
f5a2f9ee43 Fix arm64 movk, movn, movz 2021-01-12 23:00:13 +01:00
pancake
449a313889
Fix PE Delay Imports for multiple delayed DLLs (rizin) ##bin (#18208)
Co-authored-by: Florian Maerkl <info@florianmaerkl.de>
2021-01-12 15:17:26 +01:00
pancake
47bd92c36e
Remove the prj.simple option ##projects (#18207)
Co-authored-by: pancake <pancake@nopcode.org>
2021-01-12 14:58:04 +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
2eb847f69c Honor meta size in asm.meta=false and add tests ##disasm 2021-01-12 13:35:11 +01:00
pancake
b1b6295d14 Fix #18202 - Large Cd truncates and crashes in pd ##disasm
* The Cd size is now honored even if its HUGE
* so still not honoring this
* asm.meta=false still not supporting this well
2021-01-12 13:35:11 +01:00
pancake
68c5ba0bcc Refactor bin.libs logic a bit 2021-01-12 12:20:15 +01:00
aemmitt-ns
aabfa40134
Add floating point operations for emulation ##ESIL
* Add some big_num helpers
2021-01-11 19:21:46 +01:00
Liumeo
22244403a1
Fix doo segfault (#18201) 2021-01-11 02:52:24 +01:00
pancake
f777478831 Fix #17940 - Show ConfigNode options when selected in Ve ##visual 2021-01-10 19:24:52 +01:00
Dennis Goodlett
528e6598a1
Add arall:// and liball:// open_many plugins #io (#18196) 2021-01-10 17:34:38 +01:00
pancake
32652cbbc8
Honor mapaddr for malloc in o* ##projects (#18199) 2021-01-10 15:56:40 +01:00
pancake
5ab18cbbfe
Fix code injection vuln in .ic* with ObjC classes ##bin (#18197) 2021-01-10 15:37:42 +01:00
pancake
064f6015e7
FIx #18171 - Support RNum for syscall-name in asl command ##anal (#18198) 2021-01-10 14:21:00 +01:00
pancake
f0deea9760
Fix calling convention save/restore ##projects 2021-01-10 14:14:51 +01:00
Alexander von Gluck IV
93674e8f4c libr/pe: Add basic RISC-V architecture knowledge 2021-01-10 13:13:54 +01:00
eagleoflqj
c96f1f64d0 Support arm32 esil stmib/ldmib ##esil 2021-01-09 21:22:34 +01:00
ChD1
0fd95f1f67 Fix 'right'/'h' key in Symbols tab 2021-01-09 19:40:16 +01:00
pancake
cd58b50dd4 Fix warning 2021-01-09 19:38:41 +01:00
pancake
2f2526361c Initial implementation of the DEX annotation parser ##bin 2021-01-09 17:38:54 +01:00
pancake
791794678f Lowercase DEX method attributes and move r_num_bit_count() ##bin 2021-01-09 17:38:54 +01:00
pancake
3ab33d119e Code cleanup and other minor refactoring changes 2021-01-09 17:38:54 +01:00
eagleoflqj
7b1b103f13 Fix r2 - tab crash related to regex apis 2021-01-09 12:47:47 +01:00
eagleoflqj
8b41ca1c7f Support sbfm/ubfm in arm64 ##asm 2021-01-09 12:37:37 +01:00
Dennis Goodlett
d78ef5602e Fix underflow in r_list_pop 2021-01-09 12:37:23 +01:00
liumeo
965f3ed10e Use pj in dmj, dmhj & fix regex r2r ##refactor 2021-01-09 12:35:20 +01:00
eagleoflqj
d7631443b6 Fix s390x test_reg 2021-01-09 12:34:29 +01:00
eagleoflqj
bccd9c4552 Initial support for arm64 asm extendtype ##asm 2021-01-08 09:31:56 +01:00
pancake
ae3ff63bab Massage RRegex to fix codingstyle and a null deref. ##regexp 2021-01-08 04:42:07 +01:00
pancake
7af2204a47 Fix project test regression and add another test ##project 2021-01-08 02:09:57 +01:00
pancake
829862006f Initial deprecation of RCoreFile ##refactor 2021-01-08 02:09:57 +01:00
pancake
d2e0f72049 Fix assert in eco 2021-01-07 19:02:37 +01:00
Fredrik Fornwall
c4bc218576 Fix debugger build problem in android-x86_64 ##build 2021-01-07 10:24:41 +01:00
Dennis Goodlett
f695d2a24f
Fix and refactor the ar:// plugin ##io (#18180)
Co-authored-by: Dennis Goodlett <dennis@hurricanelabs.com>
2021-01-07 10:23:08 +01:00
Liumeo
a74ca8f07b
Remove core.file ##refactor (#18178) 2021-01-06 23:44:18 +01:00
eagleoflqj
cd3ac9e2f2 Use pj in cmd_anal.c ##refactor 2021-01-06 00:03:44 +01:00
eagleoflqj
581aaed9c0 Fix s390x test_buf 2021-01-05 10:22:50 +01:00
pancake
839f438b58 Refactor tcc and afcl commands, improve help and JSON ##types 2021-01-05 02:17:37 +01:00
pancake
a00f3113a7 Better regprofile initialization to solve assertions 2021-01-05 02:17:37 +01:00
pancake
44815d3792 More assert issues fixed from the fuzzsuite 2021-01-05 02:17:37 +01:00
pancake
a25e3c1409 Fix some null asserts in PE and ELF parsers 2021-01-05 02:17:37 +01:00
Liumeo
b46bd24178
Fix s390x test_agraph (#18172) 2021-01-05 01:22:43 +01:00
Eduard
596ae026bf
Implement print disasm until optype ##print (#18167) 2021-01-04 12:02:45 +01:00
pancake
9dae8babb0 Add null check in eco to fix asan 2021-01-04 11:50:17 +01:00
Liumeo
679eb40524
Use pj in cmd_search.c##refactor (#18163) 2021-01-04 11:29:24 +01:00
Liumeo
f140925ab8
Fix kj segfault (#18168) 2021-01-04 11:05:30 +01:00
Liumeo
079b7cd991
Fix memleak in test_str & test_debug_session (#18164) 2021-01-04 03:54:43 +01:00
Liumeo
c96d68599f
Fix memleak in test_buf & test_cmd (#18162) 2021-01-03 19:00:17 +01:00
pancake
54a97ea8af Fix tests and optimize o--
More fixes
2021-01-03 10:54:00 +01:00
pancake
73a3512376 prj.git commit now works with scr.interactive=false 2021-01-03 10:54:00 +01:00
pancake
c239eff1ed Save the write cache in projects ##projects 2021-01-03 10:54:00 +01:00
pancake
a5c351c725 Remove transitional projects code ##projects 2021-01-03 10:54:00 +01:00
pancake
7edd5459dc Bring back the Pl command (just, lists, like P without arguments) 2021-01-03 10:54:00 +01:00
pancake
7a849f26ef dir.projects becomes abspath when set ##projects 2021-01-03 10:54:00 +01:00
pancake
d7a4aedf5a Fix projects by removing code and honoring prj.name ##projects 2021-01-03 10:54:00 +01:00
pancake
d09987546d Fix some returns to fix initialization issues in evars ##config 2021-01-03 10:54:00 +01:00
pancake
81b1ce07fa Remove the unnecessary old project name backup logic 2021-01-03 10:54:00 +01:00
pancake
f7000b7dcb Use UID instead of PID to identify the user to avoid changing projects everytime ##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
pancake
020c3056d0
Fix ecn (and VR) when no custom theme was set in .rc ##cons 2021-01-03 10:15:00 +01:00
Aswin C
ef4c9b603d Add internal help for arS and drS 2021-01-03 10:11:04 +01:00
Qijia Liu
9e63a44c5c Fix memleak in r2 and test_big 2021-01-03 10:10:32 +01:00
pancake
73aab852fc
Print call convention once in afi ##anal (#18157) 2021-01-03 10:09:08 +01:00
eagleoflqj
2879c582af Use pj in cmd_info.c ##refactor 2021-01-03 01:24:58 +01:00
Liumeo
06b735441d
Fix memleak in test_anal_block & test_io (#18153) 2021-01-02 09:37:23 +01:00
Liumeo
93166667da
Fix asan st overflow ##asan (#18149) 2021-01-01 23:33:34 +01:00
Liumeo
a637aa281d
Fix s390x rax2 -I & memleak (#18151) 2021-01-01 22:48:28 +01:00
pancake
b69355bb84
Fix #18136 - Remove RBin.is_debugger and use cfg.debug (#18146) ##refactor 2021-01-01 22:48:02 +01:00
pancake
8d7005b771 Fix cascading solitaire issue in panels menus ##panels 2021-01-01 22:44:20 +01:00
eagleoflqj
d306734aef correct json & clean newline 2021-01-01 22:04:37 +01:00
Eduard MURESAN
cac44b255f Fix the r2 idpij as well 2021-01-01 22:04:37 +01:00
Eduard MURESAN
06417eaf30 Fix pdb information dumped as json 2021-01-01 22:04:37 +01:00
eagleoflqj
c8b5bb02b9 delegate abj to afbij 2020-12-31 22:58:06 +01:00
mrglm
493f0bf023 Fix #17039 ##anal ##json
Fix indentation for abj command
2020-12-31 22:58:06 +01:00
pancake
a232c1a8fd
Automatically set prj.git if git is found in PATH ##projects (#18137) 2020-12-31 19:43:48 +01:00
pancake
0cd6b5528a
Initial implementation of r_cons_eprintf ##cons (#18145) 2020-12-31 19:35:01 +01:00
RHL120
b2117e48c5
Tell the user that debugging projects don't work ##projects (#18134) 2020-12-31 15:35:40 +01:00
Liumeo
248e1e3621
Use pj in cbin.c ##refactor (#18143) 2020-12-31 14:38:15 +01:00
pancake
f26a35a8dd
Use pj in radiff2 -j 2020-12-30 02:00:35 +01:00
pancake
97954c6ca4 scr.progressbar disabled by default 2020-12-29 16:10:40 +01:00
pancake
4e0f0807d9
Forbid space builds with acr/make and add job to test them with meson/ninja ##build 2020-12-29 15:08:52 +01:00
Liumeo
592b6b0ae8
Test arm part of arm.winedbg (#18132) 2020-12-29 10:14:02 +01:00
Liumeo
c83cf92661
Use pj in bp.c & add test ##refactor (#18133)
Co-authored-by: Lazula
2020-12-29 10:13:43 +01:00
Carson McManus
92d4685be6
Add a progress bar for when scripts are running ##shell
* Add config var `scr.progressbar` to display a progress bar when running a script
##print
* Don't show progressbar when not in a tty
* Also don't show progressbar when scr.interactive == 0
* Add a progress bar for when scripts are running. Includes when projects are being loaded
* Add config var `scr.progressbar` to display a progress bar when running a script
* Don't show progressbar when not in a tty
* Also don't show progressbar when scr.interactive == 0
2020-12-29 04:48:03 +01:00
pancake
70b6d7fc8c
Use the Set API instead of hashtable in anal.block.automerge (#18130) 2020-12-29 04:25:14 +01:00
pancake
9583bc7f3c Fix cfg.charset listing sorted alphabetically 2020-12-29 00:30:53 +01:00
pancake
4b6fd801e4
Import last random rizin fixes and more (#18128) 2020-12-28 23:34:16 +01:00
pancake
1b173df641 Fix memory leak in pf related to bad sdb api usage ##print 2020-12-28 22:02:48 +01:00
pancake
18823c03fa Remove unused cmd.xterm and use * instead of strcmp for ? ##config 2020-12-28 22:02:48 +01:00
Liumeo
531cfd252e
Add missing license of be_arm.c (#18126) 2020-12-28 21:46:42 +01:00
gogo2464
8f17b3241a
Add 'ascii' charset #print 2020-12-28 21:30:36 +01:00
pancake
ab0337c224 Fix ASAN 2020-12-28 21:24:56 +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
9478b3a957
Add test and update arm.winedbg (#18117) ##asm 2020-12-28 20:56:52 +01:00
pancake
4b60f0f2bb Honor R2_CFG_NEWSHELL=0 to disable it ##shell 2020-12-28 20:03:25 +01:00
pancake
49349cb320 Implement $i and $I numvars ##shell
* Warning: The temporal seek only works on oldshell
* Seek to the last address in current basic block
  `> s $I1@$Fe`
* Decomposes into:
  * $Fe = end address of function basic block
  * $I1 = one instruction backward
  * s = seek command is inmune to the @ tmpseek effects
2020-12-28 20:03:25 +01:00
pancake
adcfe0181f Code cleanup 2020-12-28 20:03:25 +01:00
pancake
54c6bca80e Seek command ignores the tmpseek ##shell 2020-12-28 20:03:25 +01:00
pancake
48c1258206 Add missing vars from ?$? in ?$ and sort them alphabetically ##shell 2020-12-28 20:03:25 +01:00
ratijas
44755fe08d
Fix help rendering: avoid printing trailing whitespaces (#18115) ##cons 2020-12-27 12:16:20 +01:00
Liumeo
fd2dfd63d7
Fix pseudo and esil of the TST instruction on ARM32 #18108 (#18110) 2020-12-26 23:55:10 +01:00
Liumeo
057854a0cd
Implement i4004 assembler ##asm (#18111) 2020-12-26 23:54:11 +01:00
Liumeo
999fc7ebff
Honor cfg.json.num in afbj ##json 2020-12-26 23:53:48 +01:00
Liumeo
7a222e68dc
Fix some arm32 warnings (#18104) 2020-12-26 16:18:49 +01:00
RHL120
8b23409c3c
Use snake case in projects.c ##refactor 2020-12-26 11:36:08 +01:00
ivan tkachenko
38f5804ecf Move breaks inside switch-case scopes
Update DEVELOPERS.md code style section and
refactor switch-cases across all code base.
2020-12-26 11:15:03 +01:00
ivan tkachenko
d5f651a59e Trailing whitespaces are getting in the way 2020-12-26 11:15:03 +01:00
Sylvain Pelissier
8ba20160e2
Update RISC-V ESIL with sign extention operator (#18109) ##esil 2020-12-26 11:14:23 +01:00
pancake
b4b48cbf86 Fix UAB when freeing a non allocated item in the xnu.kernelcache RBin plugin 2020-12-24 10:44:28 +01:00
gogo
156f83fdd9 merge pse to ps 2020-12-24 09:50:27 +01:00
pancake
f08e34d298 Fix assert in cfg.charset 2020-12-23 23:14:07 +01:00
pancake
35c9ae73cd Fix asserts in map.rename() 2020-12-23 23:14:07 +01:00
pancake
64676437e9 Fix double-free in charset sdb 2020-12-23 23:14:07 +01:00
pancake
b77d97a6a9 Improve str.wrap, add cons.line and fix cons.printat glitch ##cons 2020-12-23 23:14:07 +01:00
pancake
24a2f8dbd6 Fix the 'c' cursor behaviour in disasm ##panels 2020-12-23 23:14:07 +01:00
pancake
ff4c45e71d Handle ^C and fix ASAN crash in aeA command ##anal 2020-12-23 23:14:07 +01:00
pancake
ac8ead22ef Cache cfg.r2wars value outside the eval loop ##r2wars 2020-12-23 23:14:07 +01:00
pancake
a5399eeddf Box borders in graph and panels are now in yellow ##visual 2020-12-23 23:14:07 +01:00
ratijas
28149b2a95
Fix wording, whitespaces and other minor stuff ##doc (#18081) 2020-12-23 22:22:30 +01:00
Liumeo
6b31372dd7
Fix ppc opex & use pj in RAnal plugins ##json (#18097) 2020-12-23 10:58:22 +01:00
Sylvain Pelissier
cad68b1793
Add sign extension assignment operator (#18092) ##esil 2020-12-23 10:57:58 +01:00