Commit Graph

12347 Commits

Author SHA1 Message Date
pancake
b02c652713
Select 'arm' fatmacho slice on -a arm.v35 ##bin
* Was trying to select the 'arm.v35' arch sub binary
* Plugins specify the arch before a dot if any
2022-05-08 04:11:17 +02:00
pancake
ac19624e21
Initial import of the RThreadChannel API with the ::x command ##core 2022-05-08 04:04:50 +02:00
pancake
af43ff7e9d Better material webui disasm defaults ##webui 2022-05-07 21:19:48 +02:00
pancake
3645aed1a9 Rename corebind fields to coreb, for consistency with analb, iob ##abi
* This change will break some more plugins
2022-05-07 11:58:38 +02:00
pancake
90bd713794 Add d: to run the cmd callback of the debug plugins ##debug 2022-05-07 11:58:38 +02:00
pancake
10eb04f5b5 Simplify panel's stack delta reset '.' key implementation 2022-05-06 18:39:59 +02:00
Sergi Àlvarez i Capilla
12d76cc78c Fix #20049 - '.' in stack panel seeks to SP or BP if unset ##visual 2022-05-06 17:11:07 +02:00
pancake
d3a112e91a
Rename anal.cpp.abi to anal.cxxabi, and add options for dbg.malloc ##shell 2022-05-06 10:30:11 +02:00
pancake
c52cd8b7de Handle Loj and Lij as alias for iLj and oLj ##shell 2022-05-06 09:41:08 +02:00
pancake
059ae407cd Deprecate anal.cpu, just use asm.cpu ##core 2022-05-06 01:03:22 +02:00
pancake
b8e1fa3d49
asm.cpu listing fixes for anal plugins ##anal 2022-05-06 00:40:59 +02:00
pancake
e5a3a789dc Fix help message for the ?= command ##shell 2022-05-05 18:20:25 +02:00
pancake
5b7c970f2b eprintf requires newline
* git grep eprintf | grep -v '\\n'| grep '('
2022-05-05 13:11:52 +02:00
pancake
4be0d2b9a4 Confirm project deletion and honor scr.interactive on reopen ##project
* Add broken test for projects reopen
2022-05-05 11:44:13 +02:00
pancake
a314a7ebde Add P* and P! to dump script and run shell in project dir ##projects
* Also makes Pd `diff` the project instead of deleting it
2022-05-05 10:05:07 +02:00
pancake
f855443586 What's bool stays bool, makes eval changes more consistent ##projects 2022-05-05 10:05:07 +02:00
pancake
89ecb9fe74 Fix serializing macros (* using ; instead of , ##projects
* This syntax changed 3 years ago, but it was incorrectly done
2022-05-05 10:05:07 +02:00
pancake
44582fbae1 Remove meaningless TODO 2022-05-05 09:59:40 +02:00
pancake
a3a95d26a6
Deshadow some variables, in progress for the full -Wshadow cleanup ##build 2022-05-05 09:44:03 +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
pancake
43303250aa Fix warning when trying to resolve GP on MIPS binaries without entrypoint 2022-05-04 13:42:50 +02:00
pancake
41a21d33b2 Dont save dir. variables in project scripts ##projects 2022-05-04 12:58:04 +02:00
pancake
14ab2c3c92
Make P command follow the r2 philosophy for consistency ##projects 2022-05-04 10:50:04 +02:00
pancake
7fe3556dd7 P+ is now an alias for Ps for consistency with P- ##projects 2022-05-04 09:56:38 +02:00
pancake
f598b68e41 Better error handling in pushd/popd ##shell 2022-05-03 13:21:31 +02:00
pancake
86e7fd1a14 Fix #19830 - implement pushd/popd commands ##shell 2022-05-03 11:53:52 +02:00
pancake
bc5cea046e Fix last covs 2022-05-03 09:11:28 +02:00
pancake
a9d672774a Implement 'mktemp' syscmd command ##shell
* Initial implementation, needs testing, use with caution
2022-05-02 23:32:13 +02:00
pancake
c39b2cecef Add missing help for ++, -- and r2pm ##shell 2022-05-02 23:30:59 +02:00
pancake
ef5b662f8e Implement .. as an alias for s.. ##shell 2022-05-02 16:50:05 +02:00
pancake
a0c52167a0 Fix #19973 - Add - and + commands as alias for s- and s+ ##shell 2022-05-02 01:47:49 +02:00
pancake
677a116795 Typedef facility under t for pf support ##types 2022-05-02 01:47:25 +02:00
pancake
b405e54f3f Fix asm/arch/cpu initialization issues 2022-05-01 22:18:43 +02:00
pancake
bb545503ba Honor io.cache in r_io_is_valid_offset() ##io 2022-05-01 22:18:43 +02:00
pancake
cdd4748192 Move asm.s390* into anal.s390* and fix aod when not using asm plugins ##refactor 2022-05-01 22:18:43 +02:00
pancake
ca17533f65 arch != cpu, fix varname confussion regression in dwarf-process 2022-05-01 22:18:43 +02:00
Mathieu Dolmen
19e4a1cd86 Increase project name max length 2022-05-01 02:09:10 +02:00
pancake
5ba038807c
Fix last covs 2022-04-28 23:35:51 +02:00
pancake
c54ce884d8
More cleanups related to the r_arch commit 2022-04-28 12:53:49 +02:00
pancake
eecb3813fe
Initial import of the WIP sh interpreter ##shell
* Aims to cover the basic posix shell syntax for r2pm
* This way we can use r2pm on windows without changing the syntax
* That said, r2pm packages are a compatible subset of the posix shell
2022-04-28 12:39:43 +02:00
RHL120
f437222bcb
Refactor some functions in rvc (#20007)
* Use goto when returning from get_commits in rvc
* As far as I can tell foreach checks if the list is null in rvc_ignore
* Use a goto in update_blobs in rvc
* Refactor get_blobs in rvc
2022-04-26 23:22:00 +02:00
pancake
05464cc284 Implement proper dyslexic subcommands for La/aL ##shell
* Listing the asm/anal plugins in JSON/Quiet/normal formats
2022-04-26 10:51:44 +02:00
pancake
abf317753c Fix #19990 - Fix aoml for non-x86 targets and add tests ##analysis 2022-04-26 00:02:23 +02:00
pancake
cfd66d0d28 Fix last covs 2022-04-25 23:00:37 +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
condret
bf57358168 Minor speedup of @@@R command 2022-04-25 04:57:26 +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
9b7cbc9cf7 Use more RLog, and add log.origin ##shell 2022-04-22 05:46:34 +02:00
pancake
99b7a74640 Fix last covs, mainly memleaks in w 2022-04-22 05:46:34 +02:00
Lazula
0404d2d845
Fix #19966 - Reset seek in r_debug_execute() to real PC ##debug
* Add return value output arg to r_debug_execute()
* Always restore the full 4k at the stack
* Fix maybe-uninitialized warning
* Use raw RCore->offset instead of RCore.seek()
* Move seek handling into cmd_debug()
2022-04-21 18:08:21 +02:00
pancake
664e8800d6 Remove all the deprecated abi apis 2022-04-19 15:40:29 +02:00
pancake
dd44ca5d89 Rename the handler_old leftovers to follow the r2 coding style 2022-04-19 15:40:29 +02:00
pancake
41a2d144e5 Add afci command and improve afc? help message
* Document `afcll` command.
2022-04-19 15:40:29 +02:00
pancake
a9c8b8914c Show proper error when no function found in afv ##shell 2022-04-19 15:40:29 +02:00
Lazula
724d23a6c0
Refactor, fix, and test dd command (#19842)
* Test dd commands
* Improve dd help text
* Move dd command into a self-contained function
* Take correct arguments for ddr and ddw
* Add O_CREAT to dd+ flags for python-style automatic creation
* Add permission checks to ddr and ddw

Linux debug file descriptor info bugfixes (`linux_desc_list()`)

* Fix normal files being reported as sockets due to inaccurate S_IFSOCK check
* Fix file descriptor permission reporting
* Implement offset checking functionality
2022-04-19 07:43:54 -05:00
pancake
e7816e4d67 Improve RLog API and usage, document R2_LOG_ vars in r2 -hh ##core 2022-04-19 11:14:57 +02:00
Lazula
fc00c929c4 Honor help text capitalization 2022-04-19 01:49:12 +02:00
Lazula
81afa3aa98 Improve dx help and add dxa test 2022-04-19 01:49:12 +02:00
Lazula
540a357b8e Add dxrs command and tests for dx/dxr/dxrs 2022-04-19 01:49:12 +02:00
pancake
87c3bbca0a Fix infinite loop in -1 command ##shell 2022-04-19 00:27:12 +02:00
pancake
cb70fb2bce Fix null deref in code meta commands ##crash 2022-04-18 23:47:18 +02:00
pancake
f933c5e86c Show args before vars in afv summary also in pd ##disasm 2022-04-18 23:47:18 +02:00
pancake
0f5b8b0809 Use VARPREFIX and ARGPREFIX instead of "var" and "arg" 2022-04-18 23:47:18 +02:00
RHL120
7435f87982
Add an error return to r_core_project_cat ##projects
* Minor changes to r_core_project_cat
* Use core->num->value in r_core_project_cat
* Add a test
* Fix project return value
* Fix Pc return value test

Co-authored-by: Lazula
2022-04-17 18:58:26 +02:00
Lazula
9160bea40a
Improve wz help and error handling ##shell
* Rename to wz_handler and use core, fix core return code handling
2022-04-17 18:13:00 +02:00
Lazula
8bc9678023
Fix trailing space in om command when map->name is empty (#19965) 2022-04-17 18:11:33 +02:00
mdolmen
a58b8d4e2e
Fix aeabj output which returned different information than aeab ##json 2022-04-17 01:01:49 +02:00
Lazula
9540cb5279 Collapse bit loop into color loop and reduce color scope 2022-04-16 17:19:12 +02:00
Lazula
2a7b9dbfb7 Improve c1 arg handling 2022-04-16 17:19:12 +02:00
Lazula
f3162fda40 Refactor and rename __core_cmp_bits to cmp_bits 2022-04-16 17:19:12 +02:00
Lazula
0111ca4cca Use a single utAny for c[1248] values 2022-04-16 17:19:12 +02:00
Lazula
cd03cd9bda Add comments to mark commands in the switch statement 2022-04-16 17:19:12 +02:00
pancake
c234538b8c
Fix #16335 - tp not handling blocksize properly ##types (#19955) 2022-04-13 20:43:30 +02:00
pancake
2faf3c2e39 Run r2pm from core internally ##shell 2022-04-13 10:17:35 +02:00
pancake
d4a7c58bd0 Fixes for the Trim.args() for ?e ##shell 2022-04-13 10:14:15 +02:00
pancake
cb097fe79b Fix three tests failing on non-x86-64 hosts 2022-04-13 01:38:45 +02:00
pancake
1546300810 Handle ^C in fg and improve ^C in pd ##shell 2022-04-13 00:14:27 +02:00
Dennis Goodlett
a0a5428154
Update byte signature flag name ##signatures 2022-04-12 11:31:27 +02:00
pancake
818fc91ec8 Fix last covs - memleaks and null derefs 2022-04-11 21:16:36 +02:00
Apkunpacker
40ec717e09
Lowercase all the help messages for consistency (2) ##shell 2022-04-11 17:47:57 +02:00
pancake
31cd732a00
Honor escaping semicolons in macro definitions ##shell
* WIP (disabled by default) make RStr.trimArgs() work on ALL commands
* Honor escaping special chars in command calls
* Add test for echo and macro definitions
2022-04-11 16:54:26 +02:00
pancake
13c2f23dd7 Fix #19940 - infinite loop in x/i on invalid instructions ##crash
* Also affects pdi and pde
2022-04-11 13:47:47 +02:00
Apkunpacker
6d0bf405ac
Lowercase all the help messages for consistency ##shell 2022-04-11 11:09:41 +02:00
pancake
b023f737bb Use standard help api for aeim too ##shell 2022-04-10 18:20:18 +02:00
pancake
296d094f36 Add the cmp command to compare two (alias) files ##shell 2022-04-10 18:16:18 +02:00
Lazula
0c4af43def Trim extra spaces before second argument in ?== 2022-04-09 22:38:20 -05:00
pancake
32f0e4b01b Implement 'curl' command ##shell
* Fixes https://github.com/radareorg/ideas/issues/242
2022-04-09 15:23:35 +02:00
pancake
c566ff2f7e
Implement @c: temporal seek operator ##shell 2022-04-09 14:06:38 +02:00
pancake
7b83210b3a
Warn the user when no header fields are found ##bin 2022-04-09 13:52:37 +02:00
pancake
f089f6f985 Visual color theme editor available from panels ##visual
* Fix visual glitches in VE[hl]
* Handle empty 'VEc' properly
* Handle ':' command prompt in the visual theme editor
2022-04-09 12:10:32 +02:00
Sergi Àlvarez i Capilla
4ca022faa0 Fix pief printing N bytes instead of N instructions ##print 2022-04-09 11:12:17 +02:00
Sergi Àlvarez i Capilla
5cc9de3fe3 Hint for the 'pdv' command 2022-04-09 11:12:17 +02:00
pancake
7821ddb04b
Skip more types of call instructions on linear emulation ##analysis 2022-04-08 23:16:38 +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
Sergi Àlvarez i Capilla
64a82e284d Fix UAF in aaef ##crash
* Reported by @hdthky
* Reproducer: uaf-aef
* BountyID: e98ad92c-3a64-48fb-84d4-d13afdbcbdd7
2022-04-08 20:39:43 +02:00
pancake
6d5628cd96
Add psa command to print any kind of string ##print 2022-04-08 20:36:10 +02:00
pancake
48d34eb11e Use int instead of bool for cfg.color 2022-04-04 10:43:41 +02:00
pancake
6ffe920cf9
Add missing 'direction' field in the output of aoj ##analysis 2022-04-02 13:42:46 +02:00
pancake
58b367610d
Use strstr instead of rstr.glob for now in @@ ##shell
* That doesnt changes the behaviour, but RStr.glob() is broken and fixing it will break this
2022-04-01 21:10:49 +02:00
pancake
d60ab7010f Fix last covs 2022-04-01 12:50:39 +02:00
Lazula
2a4f12d43d
Partial #19887 - Refactor, document, and test cw command (#19889)
* Change cmpwatch functions to bool to better report status
* Ensure existing watchers are correctly overwritten
* Speed up other cw commands by leaving list iteration early
* Emit output in subcommands when no watchers matched the query
* Add cwq and cwj
* Add cw tests
* Change cmd_cmp_watcher() to return int instead of void
* Add r2book reference
* Require confirmation before deleting or reverting all watchers
* Change watcher cmd to malloc'd char*
2022-03-31 11:07:32 -05:00
Sergi Àlvarez i Capilla
9857ac6d4e Add tests for return value emulation 2022-03-30 17:56:35 +02:00
Sergi Àlvarez i Capilla
d479933909 Fix aeim on --without-debugger builds ##emulation 2022-03-30 00:04:30 +02:00
condret
c01f010b8b Fix misleading help msg (aho is not deprecated) 2022-03-29 15:38:55 +02:00
condret
a5987118c5 Fix string representation of optypes of aho command 2022-03-29 15:38:55 +02:00
Sergi Àlvarez i Capilla
fd1c5bd07e ar command using ->anal, otherwise for non-debug builds that fails ##analysis 2022-03-29 15:35:27 +02:00
Sergi Àlvarez i Capilla
3dfe264004 Fix 'aeb' emulating the right instructions ##esil 2022-03-29 15:35:27 +02:00
condret
d1ebd1588a Fix bug in z/, that creates misplaced functions ##zign 2022-03-29 14:34:41 +02:00
pancake
982daa3d54
Allow abt to handle addresses in the middle of basic blocks ##analysis 2022-03-29 11:35:38 +02:00
Sergi Àlvarez i Capilla
4431b392e3 Handle addresses in the middle of basic blocks in abf ##analysis 2022-03-29 01:15:25 +02:00
Sergi Àlvarez i Capilla
90caf26cb2 Fix null deref in abf 2022-03-29 01:08:30 +02:00
Sergi Àlvarez i Capilla
aa85fb154b Implement 'abf' command to list incoming bbs ##analysis 2022-03-29 01:02:40 +02:00
Lazula
c3c95a6b86 Improve help output for cat command 2022-03-29 00:47:04 +02:00
pancake
c6114fda6e Instruct drrj to not emit ansi escapes to not damage ##json
* Add help message for drr?
* Issue lies in RTable.toJson()
2022-03-27 15:07:56 +02:00
pancake
80bde99c7f Support relative pointer resolution in pxr ##print 2022-03-27 15:07:56 +02:00
pancake
374b86e866 Fix seek history for the 's..' partial seeks ##shell 2022-03-27 14:24:02 +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
Sergi Àlvarez i Capilla
2bcfbd6aef Fix help message for pxd 2022-03-26 11:23:05 +01:00
pancake
0fd97c27a7
Assume all machos are made by clang ##bin 2022-03-25 13:43:49 +01:00
pancake
467a2ecaab Run 'aap' before 'aae' on arm64 binaries in 'aaa' ##analysis
* No need for `aaaa` to get more functions and xrefs!
* aaef is executed instead of `aae`. so it will miss refs
2022-03-24 14:55:20 +01:00
Sergi Àlvarez i Capilla
7234cf5b8c Fix double-free in RCore.free 2022-03-23 15:46:49 +01:00
Sergi Àlvarez i Capilla
607134947e Honor esil.maxsteps in more commands and stop earlier when no =PC ##esil 2022-03-23 13:02:55 +01:00
Sergi Àlvarez i Capilla
969e1c141e Break emulation when register profiles don't provide enough info 2022-03-23 13:02:55 +01:00
Sergi Àlvarez i Capilla
4abf7bf9ba Add esil.maxsteps to avoid infinite emulation loops ##esil 2022-03-23 13:02:55 +01:00
Lazula
6c868bb010 Last improvements for this patch 2022-03-23 11:53:03 +01:00
Lazula
879fbbbb35 Improve flag autocompletion 2022-03-23 11:53:03 +01:00
Lazula
626fd46553 Improve file redirect autocompletion 2022-03-23 11:53:03 +01:00
Lazula
5d4f8f83ca Improve #! autocomplete when tabhelp is enabled 2022-03-23 11:53:03 +01:00
Sergi Àlvarez i Capilla
50b8813f1d Fix w64blob artifact name for the release
* Fix meson -Dplugins=arm reg profile issue
* Fix an infinite loop when emulating with no valid regprofile
2022-03-22 20:06:43 +01:00
pancake
0052500c1e
Fix heap OOB read in macho.iterate_chained_fixups ##crash
* Reported by peacock-doris via huntr.dev
* Reproducer 'tests_65305'

mrmacete:
* Return early if segs_count is 0
* Initialize segs_count also for reconstructed fixups

Co-authored-by: pancake <pancake@nopcode.org>
Co-authored-by: Francesco Tamagni <mrmacete@protonmail.ch>
2022-03-22 16:56:27 +01:00
pancake
db253cab01 Fix #19833 - Fix asserts in aor 2022-03-22 14:56:02 +01:00
pancake
44b081b6a1 Fix back scrolling in the decompiler pane in panels ##visual
* Half revert b5311e975f
2022-03-22 12:38:14 +01:00
pancake
19ae07accf Implement 'aeb' using APIs instead of commands ##esil 2022-03-22 12:01:50 +01:00
pancake
c8ae21f68f
Only build library archives when -Dblob is provided ##build
* Lowers the amount of objects from 2400 to 1500
2022-03-22 11:59:13 +01:00
pancake
82794237d7
Update sdb and fix some more unused return value warnings 2022-03-22 11:12:43 +01:00
Lazula
ea207c528e Fix dxr and use it in dd 2022-03-21 23:40:27 +01:00
pancake
d22d160c45 Fix minor memleak in pf 2022-03-21 17:57:07 +01:00
pancake
69815e22e4
Fix #19838 - Show pins in the disassembly as comments ##disasm 2022-03-20 10:49:53 +01:00
Lazula
e85ad664a6 Remove unused update variable in __print__decompiler_cb() 2022-03-19 04:05:44 -05:00
Sergi Àlvarez i Capilla
8a68ef26d4 Fix last memleaks spotted by coverity scan 2022-03-18 16:39:06 +01:00
Sergi Àlvarez i Capilla
c7ef0af76a Improve panels prompt drawing the bottom box line one line above ##visual 2022-03-18 16:35:38 +01:00
pancake
8089224302 Improve help message for dd? and autocomplete ##debug 2022-03-17 18:36:13 +01:00
pancake
2411bc75a3 Add 'dd+' to open files in the child process as read-write ##debug 2022-03-17 18:35:41 +01:00
pancake
39a44903c2 Add scr.notch to blank N lines on top of the screen ##visual 2022-03-17 10:12:17 +01:00
pancake
7699f37c7d Fix warnings spotted by latest XCode (unused variables) 2022-03-17 10:12:02 +01:00
pancake
df6c68e150 Add aaepa command to set all unknown imports as ret0 ##esil 2022-03-16 16:38:08 +01:00
pancake
3020803a39 Fix aecs and add test emulating hello world without libc ##esil 2022-03-16 15:33:03 +01:00
pancake
c7f9503e72 Add aaep and extend aep to support pin specific commands ##esil
* Implemented few basic libc calls in pure r2 commands
2022-03-16 15:33:03 +01:00
pancake
cffad47c88 Improve help message for psz, aek, aae, aep, aer and aex commands ##shell 2022-03-16 15:33:03 +01:00
pancake
4ba0af5d1d Fix meson -Dblob=true builds for static ##windows 2022-03-16 00:48:50 +01:00
pancake
f8a35da205
Dont use != NULL as its implicit in C, even for bool casts ##refactor
$ find binr libr -name "*.c" -exec sed -i -e 's/ != NULL//g' {} \;
2022-03-15 19:54:04 +01:00
pancake
4bed905d8a
Fix msvc warnings (#19827) 2022-03-15 19:27:34 +01:00
Sergi Àlvarez i Capilla
43a2ee3686 Improve the way asm.nbytes plays with asm.flags.inbytes ##disasm 2022-03-15 17:43:36 +01:00
Sergi Àlvarez i Capilla
7ccf9fbd6b Fix buffer overflow in asm.nbytes, add hard limit to 64 ##crash 2022-03-15 17:43:36 +01:00
pancake
7370759fa0
Fix some bugs spotted by CodeQL 2022-03-15 15:22:25 +01:00
Sergi Àlvarez i Capilla
00dd54d44f Fix recently-introduced memleak in panels 2022-03-15 11:55:14 +01:00
Sergi Àlvarez i Capilla
f44932aafa Add afiq for quiet functino info and refactor the anal/abi.inc ##analysis 2022-03-15 11:40:03 +01:00
Sergi Àlvarez i Capilla
d07bcfa8b2 Add help for 'pie?', add pieq and add ninstr in afi[j] ##analysis 2022-03-15 11:40:03 +01:00
Sergi Àlvarez i Capilla
b5311e975f Improve panels interactions with decompiler frame ##visual 2022-03-15 11:08:27 +01:00
pancake
d8d2fc7bca Record seek history when cliking around in panels ##visual 2022-03-14 12:42:16 +01:00
pancake
20ed8c14bd Fix blank decompiler issue when clicking randomly in panels ##visual 2022-03-14 12:42:16 +01:00
Lazula
d507bda91c Remove R_EMPTY and R_EMPTY2 2022-03-13 11:26:10 +01:00
pancake
63d4172d94
Fix last covs, mainly memleaks and update one test 2022-03-11 13:14:46 +01:00
pancake
b2cb721bf0
Restrict local vars and args in a 8KB range, otherwise skip ##analysis (#19811)
* Update and verify tests accordingly, new output is better
* Optimize function emulation by reusing bbdata
2022-03-10 16:45:59 +01:00
Lazula
619d9cb8cc
Add ddf command ##debug 2022-03-10 07:47:30 +01:00
aandersonl
947cae8599 Adds afva in all fcns flags (if any) ##analysis
* Analyze vars only if variable `anal.vars` is set adds some tests for variable/arguments analysis fix in anal/mips
* Fix get_config as boolean and use expressions for analyze all functions
2022-03-09 16:56:07 +01:00
Sergi Àlvarez i Capilla
9b124ff09e Skip afva on functions with signature registered ##analysis 2022-03-09 16:56:07 +01:00
Lazula
90ce9c795e
Fix dd command and update tests accordingly ##debug
* Add quotes around filename for dd command
* Account for string argument size in r_core_syscall()
* Fix command comments for dd
* Use a constant static stack size in r_core_syscall()
* Allow passing an address of the filename in memory for dd
* Change consumeBuffer() to print_buffer_hex()
* Improve dsue error message
* Update egg tests
* buf ownership is transferred to egg, dont free
2022-03-09 10:20:49 +01:00
Lazula
abf8041130 Improve scr.prompt.flag to include offset and hex delta 2022-03-09 09:11:32 +01:00
pancake
6a4dd942f8
Add help for the CL command ##bin 2022-03-08 13:55:55 +01:00
Sergi Àlvarez i Capilla
035e68e3f1 Cache file_exists when iterating over the source files ##bin
* Speedup large loading times for files with DWARF info
* Only speedups the cases where the files doesnt exist
* Need to refactor file_slurp_random_line() into str for better times
2022-03-08 13:04:24 +01:00
Sergi Àlvarez i Capilla
f72b7b5a50 Do not perform var/arg analysis on Java/Dalvik ##anal
* Fix almost an infinite loop on a clusterfuzzed dex file
2022-03-07 18:11:07 +01:00
pancake
7b52e66c9c Skip wired-to-ground registers in dr= ##debug 2022-03-07 17:18:53 +01:00
pancake
a46f5e291f Fix drj in debug mode ##debug 2022-03-07 17:18:53 +01:00
Dennis Goodlett
5690f1c1e7 Add mermaid output to all ag commands ##anal 2022-03-05 09:48:57 +01:00
Sergi Àlvarez i Capilla
10517e3ff0 aaef on arm/thumb switches causes uaf ##crash
* Reported by peacock-doris via huntr.dev
* Reproducer: poc_uaf_r_reg_get
2022-03-04 11:11:49 +01:00
pancake
cf780fd055
Add an* and fix many other conceptually broken logics in an ##analysis 2022-03-04 10:08:39 +01:00
Lazula
a64025db4d Fix yt command 2022-03-04 00:27:39 +01:00
Lazula
eccfb8f892
Refactor cp command () 2022-03-03 22:17:18 +01:00
Sergi Àlvarez i Capilla
7269a3f5d4 Fix issue in asm.tabs.once causing iaito to trim instructions ##disasm 2022-03-03 13:15:02 +01:00
pancake
bf9102eaee Two more null deref fixes for cons/task initialization 2022-03-03 10:52:01 +01:00
pancake
a540fbfd98 Fix several null derefs in the tasks api when used from unthready builds 2022-03-03 10:15:02 +01:00
Lazula
55bfe93735 Fix problems in l command 2022-03-03 09:31:08 +01:00
Sergi Àlvarez i Capilla
aef278ee9c Make -Dblob=true statically link all r2 libraries ##build 2022-03-02 11:30:28 +01:00
Lazula
bc877cbef6 Kill dsjson, use PJ for java json, fix java prototypes j 2022-03-01 15:50:39 +01:00
pancake
b965ce3340 Fix UAF in cmd_open 2022-02-28 10:08:58 +01:00
Lazula
b5a26e0c0c
Significantly reduce memory leaks in anal tests (#19759) 2022-02-27 14:57:58 -06:00
pancake
3cc4e1c9e5 Add aot command to show instruction types (like /atl) ##shell 2022-02-27 20:20:24 +01:00
pancake
76f868166b Add proper help for the aom command 2022-02-27 20:03:04 +01:00
Sergi Àlvarez i Capilla
7f472c50eb Fix two minor leaks spotted by coverity 2022-02-26 13:46:46 +01:00
pancake
19bb45f78f Honor ArchInfo.opalign in pia ##disasm 2022-02-26 00:57:05 +01:00
pancake
7cb30eaf0d Fix #19610 - Honor minopsz in pia ##disasm 2022-02-26 00:57:05 +01:00
Sergi Àlvarez i Capilla
a9829f757f Let users change the blocksize from visual prompt 2022-02-25 16:49:30 +01:00
pancake
83f55161d1 Fix negative allocation in mdmpdos 2022-02-25 00:45:07 +01:00
pancake
79d108a4c2 Fix off by one read in psw 2022-02-24 12:46:29 +01:00
pancake
837d781879 Fix memory leak in RCore.cmdQueue 2022-02-24 11:57:28 +01:00
pancake
2178cd24a3 Restore and revert blocksize in V: ##visual 2022-02-24 11:30:33 +01:00
pancake
333e99190a Update list of file extensions considered scripts 2022-02-24 01:11:08 +01:00