Commit Graph

23050 Commits

Author SHA1 Message Date
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
87a38708e0 Enable io-bank support in r_io_map_new ##io 2021-10-10 00:04:10 +02:00
condret
814ebb9f68 Kill r_io_map_add_batch ##io 2021-10-09 22:52:06 +02:00
condret
1c3c768f0a Remove unnecessary return val from r_io_map_del ##io 2021-10-09 21:14:38 +02:00
condret
7b514b66bf Enable io-bank support in r_io_map_del ##io 2021-10-09 20:44:15 +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
condret
2ebf4680e0 Improve r_io_bank_locate for replacing r_io_map_get_next_available ##io 2021-10-08 22:51:23 +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
c6929b6231 Add alignment support to r_io_bank_locate ##io 2021-10-08 01:26:08 +02:00
condret
4c9f466b7c Fix r_io_map_del_name ##io 2021-10-08 00:05:30 +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
RHL120
0840a34410
check char *h for NULL in r_file_new (#19183) 2021-10-07 21:22:49 +02:00
condret
9d84785d62 Remove unused fcn defs ##io 2021-10-07 19:46:47 +02:00
condret
8b1d0f4a0f Enable io banks in search; Kill search.in = io.sky.* ##io 2021-10-07 19:25:37 +02:00
pancake
ad28afe7c5
File RFile.new() for abspaths (#19179) 2021-10-07 15:49:29 +02:00
Dennis Goodlett
8665744819
Auto-rename name collisions in ##signatures 2021-10-07 08:21:25 +02:00
condret
bf29366140 Add 2 comments for clarification ##io 2021-10-06 23:41:27 +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
Sergi Àlvarez i Capilla
e9339bc4c9 Handle the ARM32 COFF case ##bin 2021-10-05 13:22:06 +02:00
Sergi Àlvarez i Capilla
e8f724e2c7 Fix negative index in r_snprintf 2021-10-05 10:26:22 +02:00
pancake
d443347958
Fix #19164 - Add help message for /p? ##search 2021-10-05 10:11:06 +02:00
Sergi Àlvarez i Capilla
6969ee42ee Sync swift demangler syntax with Apple one and force trylib=0 in r2r.c 2021-10-05 10:10:32 +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
Lazula
e4f13622e4
Fix overread in r_str_firstbut_escape() when string ends with a single backslash (#19166) 2021-10-04 22:36:48 +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
ff72cfd529 Small fix trick in count.sh 2021-10-04 15:38:46 +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
Sergi Àlvarez i Capilla
6e85aa2970 Handle PPID on macOS debugger ##debug 2021-10-04 00:08:54 +02:00
pancake
ba7ac2b853
Add support for the ALPHA disassembler ##disasm 2021-10-01 19:16:03 +02:00
pancake
c8f80fce7b
Implement ternary support for numeric input ##util (#19153) 2021-10-01 18:40:10 +02:00
condret
0353cdcf5f
Implement map depriorization in io banks ##io
* Add r_io_bank_map_add_bottom and r_io_bank_map_depriorize ##io
* Fix potential bug in r_io_bank_update_map_boundaries and add some comment for clarification ##io
2021-10-01 14:54:24 +02:00
0mhu
a337ed42e0
Fix #19149: Prevent NULL pointer dereference in line_header_fini() (#19150)
hdr->file_names is set to NULL.
However, the corresponding count variable is not set to zero.
It might stay on a non-zero value and
cause the code in line_header_fini() to dereference the NULL pointer.

Setting hdr->file_names_count to zero solves that issue.
2021-09-30 20:07:33 +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
pancake
4a4946cd89
Initial implementation of the HUNK file parser ##bin 2021-09-29 12:34:44 +02:00
pancake
c2e064de08
Detect canary on statically linked RT and stripped PEs ##bin
* Add tests and support 32 and 64bit canaries
2021-09-29 12:08:50 +02:00
thymol0
6513ffa59f
Move the console flushing decision to the console context ##cons 2021-09-29 10:46:37 +02:00
pancake
e8e9cef1e2
Initial implementation of the RISCV assembler ##asm (#19144) 2021-09-28 11:18:23 +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
e3e64df6f3
Add PDP-11 disassembler support from binutils ##disasm (#19141) 2021-09-27 14:22:22 +02:00
pancake
dfd8be6bef
Fix format string vuln in crash handler (#19136) 2021-09-25 14:02:06 +02:00
pancake
d07ca80e68 Missing replacement 2021-09-25 12:44:25 +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
39f83cf213 Fix null deref when using anal.a2f ##anal 2021-09-25 11:43:52 +02:00
pancake
5e0eb548da Better subcommand error messages for @@, @@@ and @@@@ ##shell 2021-09-25 06:59:26 +02:00
Sylvain Pelissier
76807f588e
Add AES Key Wrap Algorithm ##crypto 2021-09-25 06:53:57 +02:00
Fernando Domínguez
e6ce88177e Scan with FLIRT regardless of the function being unknown 2021-09-24 19:25:59 +02:00
Dennis Goodlett
81dbf2a5fe
Use non-interactive RCore in rasign2 -S (#19134) 2021-09-24 09:18:24 +02:00
condret
ed311e825f Some cleanup and code deduplication ##io 2021-09-23 16:54:33 +02:00
pancake
c56097a45e
Use sdb_itoa instead of snprintf for emulation ##esil 2021-09-23 15:30:42 +02:00
pancake
b8e2db2fc1 Fix a warning with proper note for my future self 2021-09-23 13:25:35 +02:00
condret
128071b3dc Fix oob write in r_io_bank_{read/write}_at ##io 2021-09-23 13:15:54 +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
pancake
9f53609621 Update v35 disassembler again 2021-09-22 16:09:35 +02:00
meme
33a424636c
Rename MD5 symbols to prevent OpenSSL collision ##build
The other symbols (e.g. SHA1) are renamed with a r_ prefix, but the
MD5 symbols are not.
2021-09-22 15:42:23 +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
condret
d62207bce0 Rename r_io_bank_update_map_location to r_io_bank_update_map_boundaries and make it useable for map resize (siol eternal) ##io 2021-09-20 22:10:08 +02:00
condret
1e2dc7b6cd Some code cleanup (siol eternal) ##io 2021-09-20 22:10:08 +02:00
condret
63cbd4a81a Fix Build 2021-09-20 22:10:08 +02:00
condret
6a972665de Use incremental timestamp on map creation instead of real ones (siol eternal) ##io 2021-09-20 22:10:08 +02:00
condret
b64fd4bcd3 Implement r_io_bank_update_map_location (siol eternal) ##io 2021-09-20 22:10:08 +02:00
condret
442838915f Use r_list_iter_get_prev (siol eternal) ##io 2021-09-20 22:10:08 +02:00
condret
a8e8d0c978 Implement r_io_bank_delete_map and fix some bugs (siol eternal) ##io 2021-09-20 22:10:08 +02:00
condret
326f9fcbc4 Add r_io_bank_drain (siol eternal) ##io 2021-09-20 22:10:08 +02:00
condret
8bb3e35387 Implement r_io_submap_set{from/to} (siol_eternal) #18476 ##io 2021-09-20 22:10:08 +02:00
condret
f2a7efed7d Implement r_io_bank_write_at (siol_eternal) ##io 2021-09-20 22:10:08 +02:00
condret
c7c906a0fb Implement r_io_bank_read_at (siol eternal) ##io 2021-09-20 22:10:08 +02:00
condret
f1639310d9 Constify bankid and mapid in io-bank api (siol eternal) ##io 2021-09-20 22:10:08 +02:00
condret
0dce1c7be5 Imnplement r_io_bank_map_priorize (siol eternal) ##io 2021-09-20 22:10:08 +02:00
condret
ea64077b0b Speedup r_io_bank_map_add_top (siol eternal) ##io 2021-09-20 22:10:08 +02:00
condret
dbf531716a Add missing NULL-check (siol eternal) ##io 2021-09-20 22:10:08 +02:00
condret
2f9a20d090 Fix potential segfault (siol eternal) ##io 2021-09-20 22:10:08 +02:00
condret
8b337b68f8 Adjust codingstyle in libr/io/io_map.c (siol eternal) ##io
Co-authored-by: pancake <pancake@youterm.com>
2021-09-20 22:10:08 +02:00
condret
6a33e28c3e Implement r_io_bank_locate (siol eternal) ##io 2021-09-20 22:10:08 +02:00
condret
4caa7849f1 Implement r_io_bank_map_add_top and r_io_bank_get (siol eternal) ##io 2021-09-20 22:10:08 +02:00
condret
9729c8da04 Implement r_io_bank_{free,init,fini] (siol_eternal) ##io 2021-09-20 22:10:08 +02:00
condret
d3a19f0b0a Update r_io_map_get_by_ref (siol_eternal) ##io 2021-09-20 22:10:08 +02:00
condret
72f7b019c2 Start implementing RIOBank and RIOSubmap ##io 2021-09-20 22:10:08 +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
Dennis Goodlett
f9b6ca907e
Add zign file reading to rasign2 ##signatures (#19116) 2021-09-20 00:21:15 +02:00
pancake
1398432e97
Fix #19043 - Fix loading MZ with text < bsize aka 1byte ##bin (#19115) 2021-09-20 00:20:35 +02:00
Dennis Goodlett
7195616448 Fix potential NULL deref in r_cons_flush 2021-09-19 22:58:26 +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
condret
e6a71ec9ba
Fix #19103 - invalid esil for xchg on the same reg as src and dst ##esil 2021-09-17 23:40:00 +02:00
pancake
17eb1374ee Fix #19099 - Fix assert on invalid jump table analysis ##anal 2021-09-17 07:15:07 -07:00
pancake
d520902ce8 Add RCons.isWindows() and update mini graph test 2021-09-17 09:24:27 +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
Dennis Goodlett
ac374bf8b7 Minor fixes 2021-09-16 11:27:51 -07:00
Dennis Goodlett
ab9fe11bcf Add collision computation to rasign2 -A 2021-09-16 11:27:51 -07:00
Dennis Goodlett
6b1b3ef90f Support .a files in rasign2 ##signatures 2021-09-16 11:27:51 -07:00
pancake
8978c80d21
Fix segfault in the jemalloc code using RBin instead of RCore ##debug 2021-09-16 17:11:26 +02:00
pancake
4d2be3830f
Initial import of the isotp:// plugin ##io 2021-09-16 12:53:23 +02:00
pancake
c539afaa07
Sync arm64 reg profiles ##anal 2021-09-16 12:39:33 +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
e8867febba
Add extra checks in r_file_copy ##util 2021-09-15 23:45:13 +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
Dennis Goodlett
1d747fa371
Fix potential fault in the ar:// plugin ##io 2021-09-13 22:47:13 +02:00
pancake
aa652d8075
Fix warnings on Socket.r2pipe.child for Windows (#19079) 2021-09-13 17:29:42 +02:00
pancake
b80c77e931
Fix arrow keys regression on windows prompt ##cons 2021-09-13 17:09:09 +02:00
pancake
20f53f56a4 Allow any http.webui, all of them are fine ##http 2021-09-13 12:38:33 +02:00
pancake
8a98c885f7
Fix #19070 - register size issue on esil for pop ax ##anal 2021-09-13 12:16:25 +02:00
pancake
c526e95076 Boolify r_sys_chdir 2021-09-13 02:30:22 -07:00
pancake
007fdc97d9 Move linux specific thing used only in the debugger out of RUtil 2021-09-13 02:30:22 -07:00
pancake
f86bee1852 Fix null deref in RCons.grep 2021-09-13 10:52:49 +02:00
pancake
2f5d8c9cfb
Remove globals on input.c for w32 (#19074) 2021-09-13 10:44:21 +02:00
pancake
39e5f95cde r2pipe fixes for windows, fix some vs warnings 2021-09-13 00:45:17 +02:00
Dennis Goodlett
cfbfcd8985
Fix const clobber in ar ##io (#19072) 2021-09-12 23:42:27 +02:00
pancake
a87d68c302 Fix win build 2021-09-12 12:29:15 +02:00
Giovanni
2f3009bcb1 Check for int overflow before allocating segments 2021-09-12 12:26:04 +02:00
Giovanni
eecb66ad04 Fixed OOB read in mach0.c 2021-09-12 12:24:26 +02:00
pancake
e3f51a6ae5 ProcessIdToSessionId requires windows vista, so make it dynamic 2021-09-12 09:57:31 +02:00
pancake
929af38b61 Honor argument in aoeq 2021-09-10 12:50:00 +02:00
pancake
9d18eb1a3a
Fix crash on windows dd, still wip ##debug 2021-09-09 20:59:11 +02:00
pancake
819a13f816 Fix assert warning in r_fs_umount 2021-09-09 20:54:57 +02:00
pancake
6fc305c5e6
Fix #19065 - Fix prompt input when using scr.color=0 ##cons (#19067) 2021-09-09 20:31:11 +02:00
pancake
1c9432c849
Remove few plugins from the meson build to make windows happy (#19064)
The latest linker seems to add some a symbol in an include file, better disable those plugins for now
2021-09-09 20:28:57 +02:00
pancake
eda30ad40b Fix #19061 - Handle ARM COFF files ##bin 2021-09-09 12:37:35 +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
Sylvain Pelissier
4b2679d684
Aarch64 V35 correct FPU and SIMD register types (#19054) 2021-09-05 09:12:36 +02:00
pancake
cbebcbec7b
Support base64: prefix in the o command ##shell 2021-09-04 01:47:27 +02:00
Sylvain Pelissier
beb83cfc54
Aarch64 correct FPU and SIMD register types (#19049) 2021-09-03 23:44:53 +02:00
pancake
1be91a5b0c
Unset default flagspace after loading bin. Fixes ccall:// issues ##bin (#19051) 2021-09-03 23:44:37 +02:00
Dennis Goodlett
629541d290
Add collision feature to rasign2 ##signatures 2021-09-03 21:36:34 +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
ed495116e0 Use r_return in the r_fs api 2021-09-02 18:26:37 +02:00
guest177
1be3ed58a3
Correct MZ size when bytes_in_last_block = 0 ##bin 2021-09-02 10:06:48 +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
Adwaith V Gautham
c6c498455f
Fix #19019 - Added OT_GPREG flag to instructions with byte, word, qword etc ##asm
* Updated code for a few x86 instructions and added tests for the same
2021-09-01 01:04:23 +02:00
pancake
658239c1c6
Support 16bit debuggers and fix 27bit define ##debug (#19040) 2021-08-31 17:09:15 +02:00
pancake
9c2bd20abf
Fix /ai on arm64 movs ##search (#19038) 2021-08-31 15:08:21 +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
pancake
8d44558224 Use RTLD_NOW when it's possible on Linux ##core
* Fix r2ghidra 'no print languages defined' bug
2021-08-30 21:00:27 +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
13782053d9
Minor code cleanup 2021-08-27 14:53:21 +02:00
pancake
0c1155211a Expose a wrapper for r_w32_CancelSynchronousIo() 2021-08-27 13:04:55 +02:00
pancake
5ddc7478f7 Minor warning fixes for mingw 2021-08-27 03:03:34 +02:00
pancake
8300bde4e3 Fix Makefile issue rebuilding libr/util everytime ##build 2021-08-27 03:03:34 +02:00
pancake
fd8e97034b Expose r_w32_ function APIs instead of global symbols ##windows
* This fixes some long standing bugs related to linker problems
2021-08-27 03:03:34 +02:00
pancake
ba375f5702 Code cleanup, somewhat related to windows code 2021-08-27 03:03:34 +02:00
pancake
f477d972b5
Fix the wasi build 2021-08-25 16:53:08 +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
pancake
13f99e358a Recheck for wasi 2021-08-25 15:38:36 +02:00
pancake
bd172e5b84 Fix back the donut 2021-08-25 14:46:21 +02:00
pancake
fa46ef8d76 No threads for wasi builds 2021-08-25 14:41:18 +02:00
pancake
1c73f1b101 Portable fixes 2021-08-25 14:15:15 +02:00
pancake
395a6f2e64 Improve portability by defining util deps properly 2021-08-25 13:47:36 +02:00
pancake
891a9813bf
Move bsd linkage to util/deps.mk 2021-08-25 13:35:08 +02:00
pancake
a0a753d741 Fix #19004 - Use a specific commit for the v35arm64 disassembler ##build 2021-08-23 22:30:57 +02:00
pancake
f95ac3a82c Fix noisy messages generates by libr/count.sh 2021-08-23 22:30:57 +02:00
pancake
e696780474 gzip:// write warning only appears when memory buffer has changed 2021-08-23 14:06:30 +02:00
pancake
25c1472a95
Fix sys/static.sh on iOS/macOS targets ##build 2021-08-23 13:38:52 +02:00
pancake
5fce24f764
Fix #19006 - Fix io.cache crash by improving boundary checks ##io (#19008) 2021-08-23 13:02:18 +02:00
pancake
4e9cc0dbeb Avoid to use the getcwd(NULL) on non-gnu libcs 2021-08-23 12:34:10 +02:00
Lucinda May Phipps
6def4dd2e2
Use r_file_binsh in r_run_start 2021-08-22 12:02:41 +02:00
pancake
67813f9cf2 Hide anoying 'Register wasn't found at the given delta' message 2021-08-22 02:17:50 +02:00
pancake
2898ee436e Fix io-r2k build on non-mainstream OSs 2021-08-20 16:01:02 +02:00
pancake
701363f61c Fix io.gprobe build on some broken systems with missing definitions 2021-08-20 14:44:33 +02:00
pancake
fd3870c437 Implement bne instruction in the arm64 assembler ##asm 2021-08-20 14:39:59 +02:00
Dennis Goodlett
db7fb0e9e9
Early exit on ##signatures match w/o collision (#19002) 2021-08-20 02:21:56 +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
50d84c4c02 Fix assert when using the internal line editor with no file 2021-08-19 18:17:39 +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
pancake
9525cb90b1
Add portability support for Vinix ##build (#18997) 2021-08-19 12:25:50 +02:00
pancake
dbf591b529
Support arch.* namings for the parse plugins ##disasm 2021-08-19 12:12:58 +02:00
pancake
fa2e1f9f5a
Fix #18783 - Support ELFs with phnum > 0xFFFF ##bin
* Useful for loading qemu coredumps
2021-08-19 12:12:43 +02:00
RHL120
897960352d
Fix a problem with rvc/git (#18994) 2021-08-19 03:34:18 +02:00
pancake
89173f99dc
Dont check out of bounds last chars ##cons 2021-08-18 13:35:23 +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
6ca0abfe07 Fix w32 build (cdecl vs stdcall)
error C2440: '=': cannot convert from:
* 'HANDLE (__stdcall *)(DWORD,BOOL,DWORD)'
* 'HANDLE (__cdecl *)(DWORD,BOOL,DWORD)'
2021-08-18 11:14:26 +02:00
pancake
06a1270df7
Add meson support for the anal.arm.v35 plugin ##build 2021-08-18 03:35:01 +02:00
pancake
7342aa3ea0 Use #pragmaMessage instead of #warning 2021-08-18 03:23:10 +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
6d3df9960c
Properly stringify the RAnalOP.type field ##anal 2021-08-17 16:03:11 +02:00
pancake
4fd4fdcc10 Fix asan crash in pif? 2021-08-17 15:59:03 +02:00
pancake
f931473bec
Use data-align = 2 for v850 (#18988) 2021-08-17 15:47:09 +02:00
pancake
0949413535 More fixes 2021-08-17 01:29:33 +00:00
pancake
f766597b9c More fixes 2021-08-17 01:09:03 +00:00
pancake
bd888a2edf Fix more vs warnings 2021-08-17 00:35:52 +00:00
pancake
8a78055996
Fix all the sign UB bugs in the risc disassembler spotted by VS (#18986) 2021-08-17 02:09:49 +02: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
feeb7551ad undef before redefine 2021-08-14 18:46:32 +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
cdda780e93
Honor < and > comparison operators in RNumMath ##shell (#18979) 2021-08-13 21:13:13 +02:00