Commit graph

27091 commits

Author SHA1 Message Date
Riccardo Schirone
ceb8c872e0 RzShell: convert op commands 2021-11-09 11:29:25 +01:00
Riccardo Schirone
824ce9b8ac Fix db/formats/ar test 2021-11-09 09:46:04 +01:00
Riccardo Schirone
3925811c59 RzShell: convert ou command 2021-11-09 09:46:04 +01:00
Florian Märkl
d8450b8e75
Add local=absolute option to meson for absolute rpaths (#1911) 2021-11-09 07:04:34 +08:00
Khairul Azhar Kasmiran
4ebc079115
block.c: Check for NULL before using container_of (#1949) 2021-11-08 23:02:23 +08:00
Riccardo Schirone
e9ef516307 RzShell: convert oa command to rzshell 2021-11-08 15:18:43 +01:00
Riccardo Schirone
3edbde0461 RzShell: convert o= command to rzshell 2021-11-08 15:18:43 +01:00
Khairul Azhar Kasmiran
731c879618
rz_pvector_foreach: Check for zero vector length to prevent UB (#1941) 2021-11-08 19:47:23 +08:00
Anton Kochkov
d461580b8f
Remove Newlisp and ES6 (Babel) support for RzLang (#1942) 2021-11-05 22:53:45 +08:00
Riccardo Schirone
b9382426ee RzCmd: print RzCmdStateOutput only if command returns OK 2021-11-05 11:58:24 +01:00
Riccardo Schirone
9362a498f7 RzShell: convert oL commands to rzshell 2021-11-05 11:58:24 +01:00
Riccardo Schirone
a1ce0f8dd7 RzShell: convert o- commands to rzshell
* Remove o-*h because it was the same as o--
* Remove o-! because not used
* Remove unread test case because it was not doing anything (o-fd did
  not work)
2021-11-05 11:58:24 +01:00
Anton Kochkov
66bc96f06f
Various fixes RzCons, RzUtil, RzConfig (#1940)
* Fix CID 316906
* Fix CID 316025
* Fix CID 316354
* Fix CID 357820
* Fix CID 316852
* Fix CID 316944
* Fix CID 316836
2021-11-05 17:59:05 +08:00
Giovanni
712f6cdabe
[RzIL] Refactoring, added bool xor and added bitv carry/borrow (#1930) 2021-11-04 19:48:10 +01:00
Anton Kochkov
b4c6c38a58
Various fixes in RzUtil (#1938)
* Fix CID 315916
* Fix CID 316056
* Fix CID 316254
* Fix CID 316499
* Fix CID 316542
* Fix CID 316618
* Fix CID 316641
* Fix CID 316642
2021-11-04 22:54:09 +08:00
Khairul Azhar Kasmiran
6bbe4ffbb6
intervaltree.c: Check for NULL before using container_of (#1937) 2021-11-04 10:40:59 +01:00
Rot127
40a6f4ae26
Add request for documentation in the PR template. (#1933)
* Add request for documentation.
* Shorten rizin book note.
* Add exception clause
2021-11-04 12:19:44 +08:00
OGRE
6fd312ae30
Fix typo in the bitvector SLE operation definition. (#1935)
Co-authored-by: ogre2007@github.com <ogre2007@github.com>
2021-11-04 01:42:25 +08:00
Giovanni
0d8d08951e
[RzIL] fix jmp & added bitvector type due limitation of int type (#1924)
Adds RZIL_OP_BITV and removes RZIL_OP_INT due host limitation
Fixed type RZIL_OP_JMP to work and apply effect.
Implemented rz_il_bv_new_from_st32 rz_il_bv_new_from_st64
2021-11-02 17:36:47 +01:00
Khairul Azhar Kasmiran
64239b30ec
Use offsetof with Clang (#1922) 2021-11-02 06:35:21 +08:00
Florian Märkl
2f6a412748
Use get_reg_profile instead of set in ppc plugins (#1923) 2021-11-01 18:16:41 +01:00
Giovanni
d68aa4517c
[RzIL] Print events on single/multi step aezse/aezsej (#1912)
* implemented aezse and aezsej to see RW events
* Added rzil.step.events.read and rzil.step.events.write to filter events
2021-11-01 12:19:19 +01:00
Matthew Donoughe
41ffacc787
enable flushing for oldinput_get_help (#1915) 2021-11-01 10:32:43 +01:00
Florian Märkl
2ee8d603f8
Do not ask about killing the process if it is impossible (#1914) 2021-11-01 14:03:27 +08:00
Florian Märkl
7aeff0fc51
[Debug] Let gdb attach regularly and reset reason after attach (#1913) 2021-10-31 21:23:36 +01:00
Florian Märkl
20783f9302
Refactor bin_xnu_kernelcache to use VFiles instead of IO Hacks (#1908) 2021-10-31 09:01:15 +01:00
Francesco Tamagni
c19eaa8843 Add Support For dyld4 Atlas-style Shared Library Caches
original radare2 commit: 09e20cd53d00a1497bf50349fe6eb812b4f54ac5

Signed-off-by: Florian Märkl <info@florianmaerkl.de>
2021-10-30 13:12:23 +02:00
Khairul Azhar Kasmiran
ac496744c8
Fix #1887: Sync test results with testfile (#1906) 2021-10-30 18:25:25 +08:00
Giovanni
ce88e7c5bc
Run push only on certain branches (#1905) 2021-10-30 12:23:54 +02:00
Giovanni
4ca140a97b
[RzIL] implemented ao statement output (#1901)
* RzIL implemented il string and json representation
* Added json representation
* Fixed some memleaks on rz_il_free_op
* Implemented rz_il_op_stringify and rz_il_op_json
* RzIL Fixed memory leaks
2021-10-30 11:41:30 +08:00
Aswin C
4ec188d219
Refactor APIs related to themes and remove global variables from cmd_eval (#1879)
* Refactor `rz_core_theme_nextpal()`

* Add tests for `ecp`, `ecn` and `ecoj`

* Add braces to avoid declaration after the label

* Use `RzCmdStateOutput` in `eco`

* Fix the output of the test for `ecoj`

* Introduce `RzConsPalSeekMode` and refactor `nextpal_item`

* Rename the APIs related to themes

* Rename `rz_core_get_theme` to `rz_core_theme_get`
* Rename `rz_core_load_theme` to `rz_core_theme_load`
* Rename `rz_core_list_themes` to `rz_core_theme_list`

* Add `curtheme` to `RzCore`

* Eliminate all global variables in cmd_eval.c

* Put the loop outside the `switch` in
  `rz_cmd_eval_color_load_theme_handler`
* Remove `getNext` variable and use the `RzListIter`'s `p` variable

* Sort the list of loadable themes

* Use a normal `strcmp` as the comparator function while sorting themes
2021-10-29 20:25:00 +08:00
Anton Kochkov
74bf3d8902
Various memory leaks (#1902)
* Fix CID 358531
* Fix CID 322803
* Fix CID 322786
* Fix CID 322126
* Fix CID 316868
* Fix CID 316734
* Fix CID 316713
* Fix CID 316522
* Fix CID 316490
* Fix CID 316468
* Fix CID 316361
2021-10-29 17:18:16 +08:00
Anton Kochkov
fa4265439e
Remove global state from RzCons dietline (#1826) 2021-10-29 15:16:26 +08:00
Giovanni
8a036858df
[RzIL] Improvements (#1898)
Refactors the brainfuck RzIL code.
Implements aezv which returns the RzIL VM status and the output can be changed via rzil.status.compact=true/false
Refactors the oldshell help messages to clean some useless code
Refactors and optimize RzILBitVector methods
Fixes rz_il_bv_as_string, rz_il_bv_hash and implements rz_il_bv_as_hex_string and rz_il_bv_set_from_ut32/ut64
Assigns all the handlers to op_handler_table to avoid null derefs and to notify which operations are unimplemented
Implements rz_il_handler_logical_and, rz_il_handler_logical_or, rz_il_handler_logical_xor and rz_il_handler_cast
2021-10-28 19:02:19 +02:00
Riccardo Schirone
3e4660650c
RzShell: add autocompletion for @@ iterator operators, @@., @@=, etc. (#1896)
* RzShell: add autocompletion for @@ iterator operators, @@., @@=, etc.
* Update help for @@ii
* Fix test for @@?~?
2021-10-29 00:11:45 +08:00
Anton Kochkov
a7ebf7b10f
Remove oldshell version of s commands (#1895) 2021-10-27 20:59:12 +08:00
Anton Kochkov
91ef6da7ad
Various memleak fixes (#1893)
* Fix CID 361180
* Fix CID 359879
* Fix CID 358574
* Fix CID 358570
* Fix CID 358569
* Fix CID 358559
* Fix CID 354016
* Fix CID 352581
* Fix CID 352498
* Fix CID 352484
* Fix CID 352451
* Fix CID 348953
* Fix CID 348937
* Fix CID 348935
* Fix CID 344518
* Fix CID 316930

Co-authored-by: Riccardo Schirone <ret2libc@users.noreply.github.com>
2021-10-27 16:32:45 +08:00
Anton Kochkov
6f4a24c58e
Use strnlen() wherever available (#1894) 2021-10-27 10:17:24 +02:00
Riccardo Schirone
6819d04bed Fix all db/archos tests 2021-10-27 09:31:50 +02:00
Riccardo Schirone
ea6d8e37c5 Fix all db/formats tests 2021-10-27 09:31:50 +02:00
Riccardo Schirone
1be3d02a36 Fix all db/esil tests 2021-10-27 09:31:50 +02:00
Riccardo Schirone
2a90781e7f Fix all db/analysis tests 2021-10-27 09:31:50 +02:00
Riccardo Schirone
0a5b00edd2 Fix all db/cmd tests 2021-10-27 09:31:50 +02:00
Riccardo Schirone
9c3e6c15b4 Add few unit tests for @ autocompletion 2021-10-27 09:31:50 +02:00
Riccardo Schirone
f3cd78fa85 RzShell: autocomplete '@e:' argument 2021-10-27 09:31:50 +02:00
Riccardo Schirone
55f68de68f RzShell: autocomplete '@r:' argument 2021-10-27 09:31:50 +02:00
Riccardo Schirone
aa2086c09d RzShell: autocomplete '@F:' argument 2021-10-27 09:31:50 +02:00
Riccardo Schirone
de865b453a RzShell: autocomplete '@f:' argument 2021-10-27 09:31:50 +02:00
Riccardo Schirone
a39ca4d53e RzShell: autocomplete '@b:' argument 2021-10-27 09:31:50 +02:00
Riccardo Schirone
35dc7bffe0 RzShell: autocomplete '@a:' argument 2021-10-27 09:31:50 +02:00