Commit Graph

399 Commits

Author SHA1 Message Date
pancake
de91b82f1a Add open command as a wrapper for the system launcher ##shell
* `start` on windows, `xdg-open` on Linux and `open` on mac
2022-09-12 22:05:25 +02:00
pancake
30dcf3328a Use more r_core_cmd_help_match in cmd_open, remove eprintfs 2022-09-06 22:23:08 +02:00
pancake
acfc53553c Use more R_LOG in cmd.open ##refactor 2022-09-04 21:43:27 +02:00
pancake
38a3946d00 Fix #20573 - filename must be quoted in o* for projects 2022-09-04 21:43:23 +02:00
pancake
b6e7292019 Enable linting for trailing tabs ##lint 2022-08-22 23:25:40 +02:00
pancake
58ea6757eb Honor : table modifiers in om, ##shell 2022-08-22 01:50:32 +02:00
pancake
87239d64f6 omt->om, and make omr print map size with no args ##shell
* Fill null deref if fs plugin doesnt provide the dir callback
2022-08-22 01:50:32 +02:00
condret
30168a2065 Use arch/bits info from anal if asm is not available in r_core_bin_update_arch_bits ##refactor 2022-07-08 12:30:31 +02:00
pancake
f2edc67c97 Fix onnu command usage and test 2022-07-07 03:39:36 +02:00
pancake
1cf4e53c7b
Fix two more projects tests with the new onnu ##projects 2022-07-07 02:12:29 +02:00
pancake
8c80cfe7d9 Fix #20405 - Multiple fixes and improvements in projects ##projects
* io maps are now saved and restored
* add an extra test and review/update others
* Use omu in om* and run o*;om* in P
* Better handling multiple P subcommands and help msg
* Use more R_LOG instead of eprintf
2022-07-05 10:56:04 +02:00
pancake
21064e9473 Add omu command to create a unique map ##io
* Add another broken project test
* Fix warning regression introduced in previous windows fix
2022-07-04 21:24:40 +02:00
pancake
304a3a7fcf
Use more R_LOG instead of eprintfs and add more linting checks ##refactor 2022-06-28 11:24:06 +02:00
pancake
cc6c5747fd
Mark more globals as TLS (#20289) 2022-06-14 12:55:40 +02:00
pancake
93d9860f41
Add test for 'q' return code bug and minor cleanup r2r ##tests 2022-05-26 12:41:49 +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
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
pancake
f35fd1c33e
Initial implementation of shared RAsmConfig ##asm (#19972) 2022-04-22 19:47:25 +02:00
Lazula
8bc9678023
Fix trailing space in om command when map->name is empty (#19965) 2022-04-17 18:11:33 +02:00
Apkunpacker
6d0bf405ac
Lowercase all the help messages for consistency ##shell 2022-04-11 11:09:41 +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
pancake
b965ce3340 Fix UAF in cmd_open 2022-02-28 10:08:58 +01:00
Lazula
21e5728030 Always free argv in 'o' and 'o ' commands 2022-01-14 00:28:09 +01:00
condret
89e162dab7 Fix crash and cleanup argparsing in omf command 2021-12-08 09:23:19 +01:00
condret
21f8e7a7e7 Fix bug in "om"-command 2021-11-06 02:47:11 +01:00
Sergi Àlvarez i Capilla
782e26c27e Fix #19377 - Heap overflow in of command without arguments 2021-11-05 16:21:05 +01:00
Sergi Àlvarez i Capilla
3773b196fe Add help message for omn 2021-10-27 15:43:51 +02:00
pancake
05e76eb6bf
Implement multidex and proper multibin in apkall:// ##bin
* Add testcase for multidex apk using apkall://
2021-10-26 22:51:40 +02:00
condret
5c5e42682e Rename maps_by_id to maps in RIO 2021-10-26 00:44:45 +02:00
condret
fe87ab37a0 Remove redundant RPVector maps from RIO 2021-10-26 00:16:09 +02:00
pancake
d3cd324a08
Implement 'ob *' to select all bins and honor in is,ii,ir,il ##bin
* Adds RCore.allbins and r_core_bin_files() helper function
* WIP: more i subcommands needs to be updated to support this
* Added a simple test case for `is`
2021-10-24 22:51:05 +02:00
condret
4b8c95a738 Fix om-command map priority if iobanks are active 2021-10-22 20:40:40 +02:00
condret
722a86a3dd Fix om command output if io-banks are active 2021-10-22 20:24:54 +02:00
condret
5bd92bfe69 Fix "om" active map indicator 2021-10-20 00:45:29 +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
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
7a1b64131d Improve "om"-command, show '*'-marker for current map ##io 2021-10-06 23:03:19 +02:00
pancake
704bf823d1
Cleanup and boolify some more debug apis ##refactor 2021-10-04 20:56:34 +02:00
pancake
690f6e6f8f
Boolify RIO.close() ##refactor 2021-10-04 14:47:22 +02:00
condret
20f7ed0ef4 Fix omb-command map ids ##io 2021-09-23 13:15:54 +02:00
pancake
199976b926
Initial io.banks management commands ##io 2021-09-22 16:44:54 +02:00
pancake
0f943971a4 Fix saving/loading projects for PE binaries ##projects 2021-09-19 21:49:02 +02:00
pancake
cbebcbec7b
Support base64: prefix in the o command ##shell 2021-09-04 01:47:27 +02:00
pancake
0949413535 More fixes 2021-08-17 01:29:33 +00:00