Dennis Goodlett
e7df8ad3c7
Simplify types storage in r_sign ##signatures ( #19245 )
2021-10-18 20:42:05 +02:00
pancake
d1320d3e6e
Use RUtil.Str.ss in disasm when scr.demo is set ##visual
2021-10-18 18:45:47 +02:00
condret
889912681c
Kill r_io_map_location ##io
2021-10-17 16:21:50 +02:00
Sergi Àlvarez i Capilla
e31ca1fedc
Deprecate the file.openmany config variable ##core
2021-10-16 15:07:25 +02:00
pancake
c6c9f4fbce
Fix some null checks around the open_many apis ##bin
2021-10-16 14:36:08 +02:00
pancake
489908b6e9
Small optimization resulting in 8s to 7.5s ( #19238 )
2021-10-16 13:46:45 +02:00
pancake
dea41ee3c6
Honor (min|max)-opsz and buffer bounds in aar ##anal
...
* Speedup aar from 120s to 7s
2021-10-16 13:14:59 +02:00
Sergi Àlvarez i Capilla
b9978c24f5
Hide the 'no calling conventions' warning and add =R0 for x86 ##anal
2021-10-15 02:51:24 +02:00
condret
66510e8daa
Fix #18384 - Visual arg/var management not working sometimes ##visual
2021-10-14 17:48:03 +02:00
pancake
64225f30db
New 'avg' command and RAnal.global to manage global variables ##anal
...
* Tied to the flags and meta instances
2021-10-14 12:40:55 +02:00
condret
36dd361694
Fix Vvv output for stackpointer based vars ##visual
2021-10-14 03:25:52 +02:00
Sergi Àlvarez i Capilla
6985ec369f
Implement 'is,' for table query for symbols ##bin
2021-10-13 07:04:20 +02:00
pancake
338fd7fd2c
Add more types and skip some parse errors in to
##types
2021-10-13 01:14:51 +02:00
Lazula
d12be9e614
Fix new defects and an overread
...
* Fix global variable overread in r_str_ss()
* Fix memory leak in grep ASCII art ~?ea
* Fix memory leak in @%
* Fix use-after-free in r_io_bank_del_map()
2021-10-12 21:53: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
Antoni Viciano
88d8b622bf
Fix #19094 - RBinOptions renamed to RBinFileOptions
2021-10-10 20:52:46 +02:00
condret
5d643e3d6b
Fix ombg command import priority ##io
2021-10-10 01:20:13 +02:00
condret
eaa5c335ae
Fix ombg command ##io
2021-10-10 00:53:09 +02:00
condret
814ebb9f68
Kill r_io_map_add_batch ##io
2021-10-09 22:52:06 +02:00
murphy
242ff90506
Add base64: helper support to mdj
2021-10-09 19:38:43 +02:00
pancake
2423ced03c
Implement ?ea and ~?ea to use the seven segment ascii art text rendering ##visual
2021-10-09 10:16:38 +02:00
pancake
28b0543825
Honor console width in ls and fix lsj,lsq,lse ##shell
...
* Move console_width logic out from r_syscmd_ls ##api
* Fix tests
2021-10-09 03:26:47 +02:00
pancake
beab137cd7
Use PJ in lsj/ls -j/dir -j
2021-10-09 03:26:47 +02:00
pancake
eb8e8a6503
Add 'dir' command as an alias for 'ls' ##shell
2021-10-09 03:26:47 +02:00
pancake
a90afe7e7c
Permit ending '%' in the env keys for % and @% ##shell
2021-10-09 03:26:47 +02:00
condret
82ebbac993
Rename r_io_map_next_available to r_io_map_locate and add use_banks support ##io
2021-10-09 03:20:49 +02:00
condret
f65be8067f
Kill r_io_map_next_address ##io
2021-10-08 23:26:18 +02:00
Sergi Àlvarez i Capilla
57fbf3960e
Fix pdi~invalid bug, at least when bbsize > 32 ##disasm
2021-10-08 21:52:19 +02:00
condret
92eecf65e6
Remove unnecessary break
2021-10-08 01:36:24 +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
4b05dfda99
Add r_io_bank_get_map_at and enable banks in r_io_get_map_at ##io
2021-10-07 22:24:50 +02:00
condret
8b1d0f4a0f
Enable io banks in search; Kill search.in = io.sky.* ##io
2021-10-07 19:25:37 +02:00
Dennis Goodlett
8665744819
Auto-rename name collisions in ##signatures
2021-10-07 08:21:25 +02:00
condret
7a1b64131d
Improve "om"-command, show '*'-marker for current map ##io
2021-10-06 23:03:19 +02:00
Lazula
d1631b8d34
Multiple alias improvements
...
* Add proper hashtable functions in RCmdAlias to prevent memory leaks
* Fix off-by-one error in alias name processing
* Don't allow 0-length aliases
* Fix memory leak in r_cmd_alias_set_raw() when malloc fails and add
null checks to other alias set functions
* Document intended use of strlen() result for buffer size
2021-10-06 22:24:42 +02:00
RHL120
bdd6ca10b1
Add .rvc_ignore ##vc
...
* Load rvc_ignore before iterating through blobs
2021-10-06 08:28:05 +02:00
pancake
d443347958
Fix #19164 - Add help message for /p? ##search
2021-10-05 10:11:06 +02:00
pancake
f427fc77cd
Improve swift demangler and add bin.demangle.trylib config ##bin
...
- May fix the macos testsuite as long as latest macOS comes with libSwift
2021-10-05 09:05:49 +02:00
pancake
704bf823d1
Cleanup and boolify some more debug apis ##refactor
2021-10-04 20:56:34 +02:00
Lazula
b14c523bae
Improve alias string detection
2021-10-04 18:04:00 +02:00
pancake
690f6e6f8f
Boolify RIO.close() ##refactor
2021-10-04 14:47:22 +02:00
Lazula
25fc71570c
Overhaul alias system
...
Aliases now use a hashtable. Aliases are now either commands or data.
Data aliases may be strings or raw bytes.
* Expand alias API
* Remove remote aliases - remote commands can still be aliased normally
* Update alias help text
* Fix an alias test and add new tests
* Add r_str_escape_raw() for null-safe escaping of unprintable characters
* Remove command to print alias without newline
* Fix dif command opening files as strings
2021-10-04 09:30:37 +02:00
Lazula
6a04be09ed
Add r_core_cmd_tobuf()
2021-10-04 09:30:37 +02:00
pancake
f3563759ef
Move more context fields out of the globals ##cons
...
* Fix |H |T and | suffixes when webserver in background
* Ignore noflush in the RCons.flush() call
2021-09-30 01:04:03 +02:00
SkUaTeR
c7d8b19a2b
Fix r2wars regression with REP cycle detection ##esil
2021-09-30 00:40:54 +02:00
thymol0
6513ffa59f
Move the console flushing decision to the console context ##cons
2021-09-29 10:46:37 +02:00
Sylvain Pelissier
16af634aa6
Remove global usage in AES encryption ##crypto
2021-09-28 10:40:22 +02:00
Sergi Àlvarez i Capilla
ff0517aba9
Fix warnings
2021-09-28 10:30:12 +02:00
pancake
adbb29f9c2
Add pve command to print values on any endianness ##print
2021-09-27 16:29:01 +02:00
pancake
27beba4761
Fix #19100 - RCons.isatty() renamed to RCons.is_tty()
2021-09-25 12:43:59 +02:00
pancake
3cc1bc594e
Handle 'git' command (from system PATH) ##shell
2021-09-25 12:41:23 +02:00
pancake
939e3c1985
Fix 1 bb function analysis with a2f ##anal
2021-09-25 12:35:03 +02:00
pancake
8613e09edf
Error handling improvements for a2f
2021-09-25 12:06:02 +02:00
pancake
5e0eb548da
Better subcommand error messages for @@, @@@ and @@@@ ##shell
2021-09-25 06:59:26 +02:00
condret
20f7ed0ef4
Fix omb-command map ids ##io
2021-09-23 13:15:54 +02:00
pancake
d0044b9e95
Fix warning and add more tests for the foreach operators
2021-09-23 13:15:41 +02:00
pancake
5ee6961f0f
Add @@@R to iterate over relocs ##shell
2021-09-23 13:15:41 +02:00
pancake
56b5ad8977
Fix UAF crash in pd
2021-09-23 13:15:41 +02:00
pancake
d092285bff
Fix #19129 - RBin.getImports() list is unowned
2021-09-23 13:15:41 +02:00
pancake
199976b926
Initial io.banks management commands ##io
2021-09-22 16:44:54 +02:00
RHL120
7b11df1c20
Use rmrf in r_core_project_delete
2021-09-21 14:58:28 +02:00
Lazula
cc74784ce6
Minor refactors in disasm.c, primarily r_core_print_disasm() ##refactor ##asm
...
* Rename locals and struct members to be consistent with new function signature
* Remove some duplicate locals and replace with struct members
* Move loop counters to loop scope and remove unused counters
* Move variable declarations and assignments to more relevant locations
* Collapse several nested, confusing, or redundant logic branches
* Add ds_offset(), ds_bufat(), and ds_left() macros to consistently
track buffer information
* Add error handling to r_io_nread_at() call in cmd_print.c
* Change formatting
2021-09-21 14:57:49 +02:00
pancake
2e75afb4d1
Fix issue in Pd without arguments ##projects
2021-09-20 06:23:11 +02:00
pancake
1db46d8c09
* Use r_w32 apis in RThreadCond for Windows ##windows
2021-09-20 05:41:18 +02:00
Lazula
006d759bc7
Fix #18887 - Invalid instructions near the end of data in loop ##disasm
...
* Add debug logs for disasm()
* Remove unused RDisasmState idx member and correct to index
* Set idx to ds->index and add more debug output
* Remove ds->entry
* Fix behaviour in pr_bb()
* Prevent overread in pdb command
* Track disassembler count by byets when using cbytes
* Change function signatures
* Fix pir behaviour by using print_disasm_instructions
2021-09-19 22:37:13 +02:00
pancake
8e439ec4ce
Fix invalid disasm on large pd
where bb chops invalid instruction ##disasm
2021-09-19 22:37:13 +02:00
pancake
0f943971a4
Fix saving/loading projects for PE binaries ##projects
2021-09-19 21:49:02 +02:00
pancake
8de94fac5d
Fix stripsysdir function for rvc
2021-09-19 18:47:04 +02:00
pancake
d98818b8bf
Some code cleanup and simplifications for rvc.c ( #19108 )
2021-09-19 11:25:17 +02:00
pancake
86472a6b4f
Fail with r2 -p unexistent-project ##projects
...
Co-authored-by: pancake <pancake@nopcode.org>
2021-09-19 00:16:46 +02:00
RHL120
288c8a75d5
Add an ravc2 reset command ##vc
2021-09-19 00:13:01 +02:00
pancake
b4c4c0fe98
Implement 'woi' command to inverse contents of current block ##io
2021-09-18 22:16:45 +02:00
pancake
34d5c13776
Fix last covs
2021-09-17 01:59:44 +02:00
pancake
e8abb069f8
Remove unused variable
2021-09-17 01:12:53 +02:00
pancake
3c172b551a
Fix glitch in minigraph for cmd.exe
2021-09-16 23:41:12 +02:00
pancake
8978c80d21
Fix segfault in the jemalloc code using RBin instead of RCore ##debug
2021-09-16 17:11:26 +02:00
pancake
4032b3bcc9
Fix #19063 - rename signature when renaming functions ##anal
2021-09-16 12:03:06 +02:00
pancake
b07b84213c
Honor ? and ?? in e asm.assembler
##shell
2021-09-16 12:00:56 +02:00
pancake
32f9826dd3
Split @@@ foreach logic into collect and iterate ##shell
2021-09-15 20:16:10 +02:00
pancake
01b2f5718f
scr.loopnl is bool
2021-09-15 17:30:06 +02:00
pancake
015efc1971
Improved segmented memory addressing support ##core
...
* Add anal.cs eval variable to define the base segment value
* Moves the logic into RPrint and RNum to avoid dupes
2021-09-15 11:42:46 +02:00
pancake
e80bc53cd6
Fix UB bug found randomly in the CI related to the mw command
...
* That was not spotted by valgrind or asan 🤦
2021-09-15 10:09:08 +02:00
pancake
f5158c0834
Add support for REXX scripting ##lang
2021-09-15 00:22:06 +02:00
pancake
d1cb70bc0b
Introduce the great but for now unused RAnalArchInfo.INV_OP_SIZE ##anal
2021-09-13 23:17:19 +02:00
pancake
20f53f56a4
Allow any http.webui, all of them are fine ##http
2021-09-13 12:38:33 +02:00
pancake
c526e95076
Boolify r_sys_chdir
2021-09-13 02:30:22 -07:00
pancake
929af38b61
Honor argument in aoeq
2021-09-10 12:50:00 +02:00
pancake
819a13f816
Fix assert warning in r_fs_umount
2021-09-09 20:54:57 +02:00
pancake
7fa05e67ea
Fix missing string in movabs ##disasm ( #19060 )
2021-09-09 12:13:48 +02:00
RHL120
c3293782c0
Add an rmrf function which does rm -rf ##util
2021-09-05 13:37:38 +02:00
pancake
cbebcbec7b
Support base64: prefix in the o
command ##shell
2021-09-04 01:47:27 +02:00
pancake
1be91a5b0c
Unset default flagspace after loading bin. Fixes ccall:// issues ##bin ( #19051 )
2021-09-03 23:44:37 +02:00
RHL120
7616e3de6c
Dis-allow \.* in rvc commit messages ( #19048 )
2021-09-03 21:13:06 +02:00
pancake
7f647662f4
Add 's.' and 's.?' commands ##shell
2021-09-03 15:31:46 +02:00
pancake
dff76f1eb5
Add aoeq as a quiet aoe command ##anal
2021-09-02 18:42:01 +02:00
pancake
b82304b195
Support base64: prefix in mg
2021-09-02 18:26:37 +02:00
pancake
d98abc6303
Random cleanup in fs code
2021-09-02 18:26:37 +02:00
pancake
2e210dd171
Fix confusing 'oops' message in the Lc command ##core
2021-09-01 12:47:41 +02:00
Dennis Goodlett
c4622b6603
Implement "next" signature type ##signatures
...
* Update tests for added signature
2021-09-01 01:27:52 +02:00
RHL120
888ba87878
Fix the rvc asan tests and some heap issues in rvc ##vc
...
* Remove a bad function and fix the ASAN tests
* Fix a use after free and a mem leak in rvc
* Fix another use after free in rvc
2021-08-31 13:33:03 +02:00
RHL120
5a8942104a
Add a status and log commands to ravc2 and add tests for rvc ##vc
...
* Add a function to get the list of commits & info
* Move all sdb_open(s) to a sperate function in rvc (could break)
* Add a function to list branches in rvc
* Move repo_exists checks to a macro
* Removed a useless function
* Add a log and a list branches commands to ravc2
* Remove BPREFIX from bname in ravc2 branch
* Add a function to get the current branch in rvc
* Add a stauts command to ravc2
* Make ravc2 return 1 on error instead of -[0-9]*
* Fix a problem with r_vc_checkout
* Add a hash= key before the commit hash in r_vc_log
* Add some tests for rvc
* change ret to db in vcdb_open in rvc
* completly replace ret by db in rvc's vcdb_open
2021-08-30 18:04:34 +02:00
pancake
775581cc97
Sort the output of ls
( #19034 )
2021-08-30 16:21:24 +02:00
pancake
913e23b2dd
Write proper help message for the ls and less commands ##shell ( #19033 )
...
* Also available via the recursive help
2021-08-30 14:16:08 +02:00
pancake
bdef1223da
Fix recently regressed tests
2021-08-29 21:00:28 +02:00
pancake
8ba42d98da
Do not serialize the config everytime, expose and use utf8 and fix R2COLOR env ##shell
2021-08-29 19:01:34 +02:00
pancake
0c1155211a
Expose a wrapper for r_w32_CancelSynchronousIo()
2021-08-27 13:04:55 +02:00
pancake
9912c3ee0b
Check if user interrupted the shell command in nested macros ##shell ( #19015 )
2021-08-25 16:20:50 +02:00
pancake
8b23751180
Implement floating point sleep command ##shell
2021-08-25 15:44:33 +02:00
RHL120
a1b6f0e7a8
Fix some memeory leaks in RVC ( #19001 )
2021-08-19 21:07:05 +02:00
pancake
35adaf2ecf
Autocomplete :. command ##shell
2021-08-19 19:24:26 +02:00
RHL120
13e3368fcd
Fix few more problems with rvc ( #18998 )
2021-08-19 19:00:10 +02:00
pancake
dd344717c9
'e cfg.editor=' == 'e cfg.editor=-'
2021-08-19 18:39:54 +02:00
pancake
84e323334c
Fix recent android build regression
2021-08-19 18:26:22 +02:00
pancake
a060e1e22e
Implement /ck command to search for crypto constant tables ##search ( #19000 )
2021-08-19 18:12:08 +02:00
pancake
25a2e50ad0
wv1,2,4,8 accept many space-separated numbers now ##shell
2021-08-19 18:09:00 +02:00
pancake
a58b095ab7
Add context in visual xrefs ##visual
2021-08-19 16:31:50 +02:00
RHL120
897960352d
Fix a problem with rvc/git ( #18994 )
2021-08-19 03:34:18 +02:00
pancake
2284394120
Honor bool in io.va, scr.interactive, scr.prompt and cfg.fortunes ##core
2021-08-18 12:09:20 +02:00
pancake
67b8af8f5b
Fix the windows debugger and make it more stable ##debug
2021-08-18 01:41:30 +02:00
pancake
b91a28d3d3
Fix various issues spotted by the VS warnings
2021-08-18 01:40:30 +02:00
pancake
18011597c4
Fix more sign bugs spotted by vs ( #18990 )
2021-08-17 23:12:22 +02:00
pancake
4fd4fdcc10
Fix asan crash in pif?
2021-08-17 15:59:03 +02:00
pancake
0949413535
More fixes
2021-08-17 01:29:33 +00:00
pancake
0acb19b68a
Fix some warnings spotted by visual studio ( #18985 )
...
Co-authored-by: pancake <pancake@nopcode.org>
2021-08-16 20:45:17 +02:00
pancake
b0d8f6d3fc
Extend ?* with /R? and /b?
2021-08-16 11:22:43 +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
fc14b879ab
Remove dbg. config var as it is just a typo
2021-08-15 11:00:14 +02:00
pancake
69cb36e8cf
Dont save projects when no project is used ##projects
2021-08-15 10:59:15 +02:00
pancake
09033f4406
Honor faster ^D on interactive execution path ##cons ( #18983 )
2021-08-14 21:06:52 +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
pancake
30704f54cd
Remove colons in "?" number conversion output ##shell
2021-08-14 01:50:59 +02:00
pancake
847d1671ce
Use RNum.math in "?b" to make '?b 1<<1' work ##shell
2021-08-13 20:29:17 +02:00
Enshin Andrey
4cec1a6d0b
Add xX key descriptions in the help message ##panels
2021-08-13 18:38:40 +02:00
RHL120
260dbb9e8f
Integrate rvc in projects and add a default commit message ##vc
...
* Add an rvc_git_repo_exists ()
* Add a prj.vc.message variable
* Honor interactivity to rvc
* Integrate rvc into projects
2021-08-13 18:37:18 +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
RHL120
ff81ce63de
Exclude files of nested rvc repos from repo_files() ##projects
2021-08-04 18:12:42 +02:00
Sylvain Pelissier
3e13703536
Rename /cu UDS CAN table search to /ru command ##search
2021-08-03 15:14:47 +02:00
pancake
3145e3dcf5
Fix last covs ( #18964 )
2021-08-03 14:15:30 +02:00
pancake
b235bcbb32
Allow RBinPlugins to use RBinFile at check() ##bin
2021-08-01 12:39:51 +02:00
Sylvain Pelissier
2a65987bee
Add PGP search for signature and RSA encrypted private keys ( #18961 ) ##search
2021-08-01 12:16:14 +02:00
pancake
1cd01754b6
Improve the pdc output to allow recompilation ##print
...
* Add pdcc to get C helpers
2021-07-30 12:55:34 +02:00
pancake
d13d351fa0
Fix #18843 - Implement Vx[+-] to add/delete xrefs ##visual
2021-07-30 12:34:13 +02:00
pancake
0f3e6e6acd
Dont use scr.responsive on android by default
2021-07-30 10:58:01 +02:00
pancake
a3faa5e733
Bring back pins to esil land ##esil
2021-07-30 10:38:44 +02:00
pancake
d6624b4257
Add /cg command to search for GPG artifacts ##search
2021-07-30 01:29:01 +02:00
pancake
33f8a981d9
Better x86.pseudo and varsub for strings ##disasm
2021-07-30 01:28:52 +02:00
pancake
e622272d29
Honor Flag.maxLength in more RName.filter calls
2021-07-29 19:53:50 +02:00
pancake
a242ecf943
Add one more RReg wrapper in RAnal for bindings ( #18946 )
2021-07-28 12:09:23 +02:00
pancake
469146d49a
Identify the analysis bottleneck into a toggleable #if
2021-07-26 01:03:34 +02:00
pancake
4adce1546a
Implement aaff command and improve aaf? help message ##anal
2021-07-26 01:03:34 +02:00
pancake
7b9dca90c9
Fix asm.hint.imm keystrokes ignored ##visual
2021-07-25 23:55:48 +02:00
pancake
3158c9ff83
Fix #18292 - Clarify the use of Vdn/Vdr and rename VdR to VdX ##visual
2021-07-25 23:15:33 +02:00
pancake
5a52e815ec
Use RAnalBind in RAsm to reuse RAnalPlugins to disassemble ##asm
2021-07-25 22:44:47 +02:00
Royos90
67e82db7cf
##anal
...
Chaned found r_anal_fcn api calls to r_anal_function to reflect new changes.
2021-07-25 21:56:44 +02:00
RHL120
237dbc305a
Fix *NULL dereference in rvc2.c ( #18929 )
2021-07-23 18:11:28 +02:00
pancake
59aa6bf6c8
Archs without calling conventions defined do warn again
2021-07-23 09:47:50 +02:00
pancake
352630295e
Polish some asserts here and there ( #18927 )
2021-07-23 09:36:10 +02:00
lasek0
14ab212c75
Extend afj command to handle all jump table parameter options ##anal
...
- fix invalid argv read for table(etc)
- fix memory leak by missing free for strdup
- fix invalid elem size and elem cound for jmtbl which previously was set to same value,
now it can be set properly, extend afj command add 2 new parameters elem_sz and
seg for precise jmp tbl reading (#18919 )
2021-07-22 19:47:27 +02:00
pancake
3c416c54cc
Fix meson build and proper use of cgen ##build ( #18920 )
2021-07-21 17:22:39 +02:00
RHL120
a71486234f
Use r_sys_whoami as the author name for r_vc_commit ##projects ( #18915 )
...
* Force the caller to asign the author name in r_vc_commit
* Wrap formats in cmdf in double quotes and escape them
* Fix some memory leaks in r_vc_git_.*
2021-07-21 12:04:26 +02:00
pancake
7b961cc020
Fix assert and add help in afco ( #18921 )
2021-07-21 12:03:27 +02:00
pancake
857b1bfce1
Add scr.hist.filter to toggle the filtered history up/down search ##shell ( #18913 )
...
* Introduced in f6f7728cf4
2021-07-18 19:15:54 +02:00
pancake
3e1d31993d
dbg.verbose is now set to false by default ( #18911 )
...
* Hide GETREG error shown on WSL1
2021-07-18 18:25:11 +02:00
gogo
130c220792
Add 'sigstr' to the 'di' output for verboser stop reasons ##debug
2021-07-17 13:00:21 +02:00
Ilya Trukhanov
346d457b33
Use a temporary buffer for disassembly in r_core_visual_disasm_down ( #18909 )
...
* Populate a temporary buffer with R_ANAL_ARCHINFO_MAX_OP_SIZE bytes (or 32,
whichever is bigger) and disassemble it, instead of directly passing
core->block and fixed 32 bytes length to r_asm_disassemble.
* Fixes incorrect disassembly in visual mode when the current
instruction is longer than 32 bytes. The corresponding analysis
plugin needs to correctly report R_ANAL_ARCHINFO_MAX_OP_SIZE.
* This shouldn't break any plugins, since they still receive at minimum
the same 32 bytes as before. However, if there are plugins that, for some
reason, ignored the passed length and continued reading the buffer
beyond that, this change will break them. Those plugins should probably be
fixed.
2021-07-17 08:15:41 +02:00
pancake
594afb2390
Implement 'afs*' command to export function signature info in r2 commands ##anal ( #18906 )
2021-07-16 21:30:53 +02:00
pancake
10ee7d20a5
Fix afsj, taking signature args instead of fcnargs in json ##anal ( #18901 )
2021-07-16 02:12:56 +02:00
pancake
cc44d30309
Fix some issues spotted by msvc ( #18899 )
2021-07-15 17:24:05 +02:00
pancake
02eb7e4a87
Fix memory leak and infinite loop in r_vc_find_rp ##rvc
2021-07-13 00:47:00 +02:00
RHL120
39d6ee533d
rvc add r_vc_find_rp ##projects ( #18895 )
2021-07-12 14:16:38 +02:00
pancake
38e7265401
Remove redundant error message and fix a null-printf at the same time
2021-07-12 00:39:23 +02:00
RHL120
045abae796
Rework r_vc_checkout and fix some mem leaks ##projects ( #18894 )
...
* Added error checking to branch_exists
* Swapped the check value of branch_exists in r_vc_branch
* Make r_vc_checkout actually functional
2021-07-10 19:15:38 +02:00
pancake
2a195eda0f
Simplify r_file_glob name and string allocation logic ( #18893 )
2021-07-09 10:35:54 +02:00
RHL120
fe7b60354d
Rework the rvc_commit functions ##projects ( #18889 )
...
* Fixed memory leaks
* Swap the return vals of foreach_newline
2021-07-07 12:49:58 +02:00
pancake
fe6f914291
Fix #18884 - Fix changing frame commands in panels
2021-07-06 11:54:45 +02:00
pancake
9d6afad8b2
Add mwf command to write local files into remote targets ##fs
2021-07-05 22:18:40 +02:00
pancake
6fd0056568
Add &w command to wait and run for queued commands ##core
2021-07-05 21:57:34 +02:00
pancake
d6208e8b12
Implement &: for queue commands ##core ( #18885 )
2021-07-05 20:55:15 +02:00
pancake
52e1b2b126
Implement @@== foreach word iterator operator ##core
2021-07-03 02:00:39 +02:00
RHL120
39b997b736
Take advantage of prj.vc.type and merge rvc & git ##projects ( #18880 )
2021-07-02 20:04:05 +02:00
RHL120
783079580b
Fix r_vc_commit and other functions ##projects
2021-07-02 11:49:44 +02:00
pancake
f7252d11be
Put archinfo.{minopsz,maxopsz,align} in the output of i ##bin
...
* Does not requires rbin to work, its tied to RAnal which is global
2021-07-01 10:58:58 +02:00
pancake
c0383784d4
Fix #18872 - New command 'wan' to write and nop affected instructions ##assembler ( #18873 )
2021-07-01 00:16:18 +02:00
pancake
b2b88ca6e5
Improve invalid address and string parameter issues in emu.str and pd comments ##disasm
2021-06-30 19:55:43 +02:00
pancake
c5b00d5457
Faster ^D (leave r2 without freeing the core) ##shell
2021-06-30 12:29:14 +02:00
pancake
c35ebcdbd0
Update tests and add /a[?]q for quiet-legacy mode ##search
...
* Support multi instruction search results with pD in /ad
* RCore.flush is now deprecated
2021-06-30 12:28:47 +02:00
pancake
04c70dcefa
Use pdi in /ad output ##search
2021-06-30 12:28:47 +02:00
pancake
188bce9f25
Use DRX APIs to handle breakpoint recoils only on x86-64 ##debug
2021-06-29 11:56:55 +02:00
pancake
8297ff8ac9
Handle 'o' key for options in panels ##visual
...
* Fix crash in panels for non functional feature that will be fixed later
2021-06-29 10:45:30 +02:00
pancake
469818b616
Fix last covs (minor memleaks)
2021-06-29 10:44:27 +02:00
pancake
065bfd31c0
Initial implementation of spp, snp, /bp and /pp to find next/prev preludes ##search
2021-06-28 00:31:08 +02:00
pancake
5f4c27f7f8
Initial implementation of ~.... for hudline prompt ##visual ( #18861 )
...
* Add new RCons.hud.line(_string) APIs
2021-06-28 00:13:15 +02:00
pancake
0dd8acb1c0
Fix last memleak cov in /b
2021-06-25 13:47:47 +02:00
pancake
7897480ec9
Fix #18858 - Fix heap mess when filtering words in panels
2021-06-23 12:56:09 +02:00
pancake
4dcd0e91a0
Add /ab to find backward jumps (mostly loops) and handle ^C ##search
2021-06-23 11:48:10 +02:00
Davide Pizzolotto
2d11342d42
Fix #18852 wrong tables in graphviz dot
2021-06-22 10:57:04 +02:00
pancake
4dac71b715
Document ahi[N] and fix anoying windows build warning
2021-06-22 00:05:24 +02:00
pancake
b39b3aaa8b
Fix last coverities and improve ah subcommand helps
2021-06-21 23:42:49 +02:00
pancake
31a91689f2
Fix msvc warnings in panels.c
2021-06-21 23:09:14 +02:00
pancake
190d809466
Use dynamic api resolution on windows builds for better portability ##windows
...
* Single implementation in r_util, used across io and debug
2021-06-21 23:09:14 +02:00
pancake
6eb734fb95
Completely eliminate the deprecated backslash command ##shell
2021-06-21 17:48:30 +02:00
pancake
49d185b20a
Add some help and better parsing for the anal hints ##shell ( #18850 )
2021-06-21 10:21:09 +02:00
RHL120
6f05d09713
Major rvc api refactor to use sdb ##projects
2021-06-21 08:44:06 +02:00
pancake
7c14bac05b
Add initial support for building r2 on WASI ##build
2021-06-20 17:14:43 +02:00
pancake
333bbcd06b
Optimize infinite loop on non-quantum computers ##anal ( #18846 )
2021-06-19 12:10:49 +02:00
pancake
26df0c0618
Avoid assert on avr's null cmpreg test ##anal ( #18845 )
...
* Early emulation interruption for faster ^C
2021-06-19 11:04:41 +02:00
pancake
eb414d63af
Finish the tolowering of anal.noNULL ##anal
2021-06-19 10:57:07 +02:00
pancake
86f8c9dce6
Remove aetr command from the help message
2021-06-18 09:44:12 +02:00
pancake
d0e6e47df4
Fix build on Android
2021-06-18 09:41:58 +02:00
pancake
d109d596f0
Popularize TERMUX_PREFIX
2021-06-18 01:16:19 +02:00
pancake
394955a75e
Apply https://github.com/termux/termux-packages/blob/master/packages/radare2/libr-core-cconfig.c.patch
2021-06-18 01:16:19 +02:00
pancake
dabc2bf2d0
Fix aef and aaef to actually find xrefs at least ##anal ( #18834 )
2021-06-17 10:43:51 +02:00
pancake
e9f753ef72
Initial implementation of the pdo esil2c output ##print ( #18836 )
2021-06-17 01:53:05 +02:00
pancake
7c17f1cbbe
Add Vi+ Vi- keys for visual insert byte inc/dec ##visual
2021-06-15 11:54:29 +02:00
pancake
1471a9bf1b
Add Vi: keystroke to run commands on insert mode ##visual
2021-06-15 11:43:36 +02:00
pancake
f49ba3a948
Reduce stackframe usage in exchange for the heap for portability ( #18824 )
2021-06-10 16:13:38 +02:00
pancake
b545c72017
Better handling of HAVE_SYSTEM, PTY, FORK, DYLINK and THREADS ##build
2021-06-10 13:52:29 +02:00
Sergi Àlvarez i Capilla
72ab4e83b3
Improve help message for http.bind
2021-06-09 21:24:32 +02:00
pancake
b3d2779529
Add http.basepath to support transparent subdirectory requests ##remote
...
* r2 -e http.basepath=/foo -c=h /bin/ls
* curl http://localhost:9090/foo/cmd/x
2021-06-09 21:24:32 +02:00
Sergi Àlvarez i Capilla
a391811663
Autocomplete <file> for more editors ##shell
2021-06-09 17:06:49 +02:00
Sergi Àlvarez i Capilla
12f6eedb27
Fix visual debugger after 5206c636f5
2021-06-05 12:02:40 +02:00
pancake
4852ebea46
Add Lg to list egg plugins ( #18801 )
2021-06-04 14:43:18 +02:00
ab1030
5206c636f5
Fix #18799 - r2pipe command output not always captured ( #18800 )
...
* put console in noflush mode in r_core_cmd_str to avoid flushing the console buffer
when the output of the executed commands is retreived as a string.
* add in_cmdstr field to struct r_core_t which is internally used in r_core_cmd_str
* Add a unit test
2021-06-04 12:07:56 +02:00
RHL120
642def0996
Set prj.vc to false if git is not in PATH ( #18797 )
2021-06-03 22:54:51 +02:00
Sergi Àlvarez i Capilla
469355bda2
Fix null deref false positive in cmd_zign.c
2021-06-01 12:06:14 +02:00
pancake
0aba7ad0e6
Fix empty lines in hexdump with multiple comments in one line ##print
2021-05-31 23:03:54 +02:00
pancake
83f590bee3
Fix the last issues spotted by coverity ( #18787 )
2021-05-31 22:04:51 +02:00
pancake
158a5f9b04
Improve aaaa log messages and avoid aaef to run in debugger mode ##anal ( #18786 )
2021-05-31 20:31:46 +02:00
Sergi Àlvarez i Capilla
c2fe231a6a
Fix double free in disasm.c
2021-05-31 00:19:55 +02:00
pancake
5aea07353b
Fix v;! in sync with V;! ##visual
2021-05-28 04:08:53 +02:00
pancake
246f771765
Fix last covs and autocomplete bool evars
2021-05-28 02:32:04 +02:00
pancake
4ade590c47
Fix #18427 - Sort flags by [sections,formats][other][regs] ##disasm ( #18770 )
2021-05-28 02:27:17 +02:00
pancake
1b27c79e7b
Support multiline comments in px ##print
2021-05-28 01:53:09 +02:00
pancake
fd715556c9
Fix multiline comments in 'pd' with asm.cmt.right=0 and 1 ##disasm
2021-05-28 01:53:09 +02:00
pancake
be3b640725
Fix #18309 - Better error messages for the pf command ##print ( #18767 )
2021-05-28 01:18:31 +02:00
pancake
6181e1e17f
Fix #18308 - Fix pf parsing issues and support write on enums and bitfields ##print ( #18765 )
2021-05-27 20:59:55 +02:00
pancake
bdb7f0693f
Add 'aev' as an alias for VbE and improve esil debugger ##esil ( #18764 )
...
* n/p keys seek one instruction forward/backward
* o key to enter new offset
* e key to enter new esil expression
* infinite loop fixed on invalid expressions
* : enter commands working again
2021-05-27 20:36:53 +02:00
pancake
e4ec003ac3
Improve error message in pf.
2021-05-27 17:34:38 +02:00
pancake
0951f4757b
Avoid the use of sscanf, better parsing and error checking, handling negative switch cases ##disasm
2021-05-27 15:46:44 +02:00
RHL120
ca261127fa
Free everything when calling r_vc_free() ( #18758 )
2021-05-27 14:42:10 +02:00
RHL120
3b65b54a51
Fix #18641 prevent overwriting projects with Ps ##projects ( #18755 )
2021-05-26 23:42:38 +02:00
pancake
e96de87e90
Fix last covs
2021-05-25 11:46:01 +02:00
pancake
c778d8cf4b
Fix more asan issues in charset api and recently introduced memleaks
2021-05-25 11:27:32 +02:00
pancake
a4b80d0b25
commandline -> command-line
2021-05-25 10:51:18 +02:00
pancake
dcfc44a329
Fix #16677 - Honor asm.sub.jmp in pd ##disasm ( #18751 )
2021-05-25 09:20:21 +02:00
pancake
71a83e865b
Fix autocompletion for 'e ' and handle cfg.charset=<tab> ##shell ( #18748 )
2021-05-24 21:41:35 +02:00
pancake
832ca5fac4
Fix #13200 - Honor anal hints in asm.meta=0 ##disasm
2021-05-24 19:07:23 +02:00
pancake
cb8fe1f388
Fix #18724 - Use RCharset in rabin2 -z ##bin ( #18743 )
...
* Dont show the offset as its misleading
2021-05-24 18:53:36 +02:00