Commit graph

26834 commits

Author SHA1 Message Date
Anton Kochkov
507fdbd078
Bump version to v0.3.2 (#2144)
Some checks failed
Code scanning / build (CodeQL-cpp) (push) Has been cancelled
Code scanning / build (CodeQL-javascript) (push) Has been cancelled
Code scanning / build (CodeQL-python) (push) Has been cancelled
Mixed linter and checks / changes (push) Has been cancelled
Mixed linter and checks / licenses (push) Has been cancelled
Mixed linter and checks / cmd_descs_yaml_check (push) Has been cancelled
Mixed linter and checks / clang-format (push) Has been cancelled
Mixed linter and checks / prettier (push) Has been cancelled
Mixed linter and checks / python (push) Has been cancelled
2021-12-29 01:13:46 +08:00
Florian Märkl
9ed8ffd29a Make rz_strbuf_slice() truncate on excessive len (#2115)
It is often useful to get a slice of some maximum len, also accepting
smaller results if the source is not large enough.
This also makes the function always operate on byte indices. Before,
it was inconsistently skipping ansi codes sometimes.
This also fixes potential oob writes in panels.c
2021-12-24 20:27:50 +08:00
Anton Kochkov
9efe9c5a85 Fix self-referential typedef format (#2134) 2021-12-24 20:27:50 +08:00
Florian Märkl
7bb52953d0 Fix +/- in visual cursor mode (#2118)
Syntax has changed: @! with space temporarily sets the blocksize.
Otherwise the entire block would always be changed.
2021-12-24 20:27:50 +08:00
Riccardo Schirone
9acb26ba06 There must be a space after '@' 2021-12-24 20:27:50 +08:00
Giovanni
0dbcf8c9b6 Fix weird message on fortune (#2095) 2021-12-24 20:27:50 +08:00
Anton Angelov
98b978b6e9 Fix crash due to null pointer dereference in rz_analysis_block_recurse_depth_first() (#2093) 2021-12-24 20:27:50 +08:00
Florian Märkl
1a63dad027 Fix oob write for dwarf with abbrev with count 0 (Fix #2083) (#2086) 2021-12-24 20:27:50 +08:00
Khairul Azhar Kasmiran
aff51a2770 Fix -Wunused-function warning on Mac (#2070) 2021-12-24 20:27:50 +08:00
GustavoLCR
76970de037 Fix #726 - Fix building for x86 Windows with clang-cl (#2055) 2021-12-24 20:27:50 +08:00
Paul I
072b380cd2 Init all fields in rz_cmd_state_output_init() 2021-12-24 20:27:50 +08:00
Riccardo Schirone
6ce71d8aa3 Initialize retctx,ctx before freeing the inner elements
In rz_core_analysis_type_match retctx structure was initialized on the
stack only after a "goto out_function", where a field of that structure
was freed. When the goto path is taken, the field is not properly
initialized and it cause cause a crash of Rizin or have other effects.

Fixes: CVE-2021-4022
2021-12-24 20:27:50 +08:00
GustavoLCR
5c099a170b Fix wrong buffer size reporting with shm:// 2021-12-24 20:27:50 +08:00
Giovanni
c8bbd9e358 Fix usage typo (#2019) 2021-12-24 20:27:50 +08:00
Peiwei Hu
0c93e00425 Fix: UAF caused by parse_type_abstract_declarator_node() (#2016)
Signed-off-by: Peiwei Hu <jlu.hpw@foxmail.com>
2021-12-24 20:27:50 +08:00
Giovanni
6ef55aa63a Fix #1881 - Fix windows build (#1984)
Some checks failed
Code scanning / build (CodeQL-cpp) (push) Has been cancelled
Code scanning / build (CodeQL-javascript) (push) Has been cancelled
Code scanning / build (CodeQL-python) (push) Has been cancelled
Mixed linter and checks / changes (push) Has been cancelled
Mixed linter and checks / licenses (push) Has been cancelled
Mixed linter and checks / cmd_descs_yaml_check (push) Has been cancelled
Mixed linter and checks / clang-format (push) Has been cancelled
Mixed linter and checks / prettier (push) Has been cancelled
Mixed linter and checks / python (push) Has been cancelled
2021-11-17 22:52:31 +08:00
Riccardo Schirone
d3795462db Move files to generate windows installer under dist/windows (#1765) 2021-11-17 22:52:31 +08:00
Anton Kochkov
fcddb66091 Bump version to v0.3.1 2021-11-17 17:05:11 +08:00
Anton Kochkov
18db8301a4
Provide API for calculating sections digests (#1955) (#1970) 2021-11-13 10:57:17 +08:00
Matthew Donoughe
ccb6a75ed8 enable flushing for oldinput_get_help (#1915) 2021-11-05 22:55:46 +08:00
Florian Märkl
7ac24dac19 [Debug] Let gdb attach regularly and reset reason after attach (#1913) 2021-11-05 22:55:46 +08:00
Riccardo Schirone
5fda91650c Use empty dependencies to avoid comparing different types 2021-10-25 19:18:56 +08:00
Khairul Azhar Kasmiran
d99205528a Fix #1864: Find main() of Fedora 35 x86_64 /bin/ls (#1880) 2021-10-25 19:18:56 +08:00
Anton Kochkov
9a1c402a1c Disable shm:// test on OpenBSD (#1872) 2021-10-24 10:25:46 +08:00
Anton Kochkov
77f213620e Fix rotating colors with C in visual mode (#1867) 2021-10-24 10:25:46 +08:00
Anton Kochkov
4080a08e6a Add shm:// rzpipe test 2021-10-24 10:25:46 +08:00
Anton Kochkov
50f9be4fc8 Add few missing Windows types 2021-10-24 10:25:46 +08:00
Khairul Azhar Kasmiran
9b2b4f97ea archos/: Support any arch for not- categories (#1713) 2021-10-24 10:25:46 +08:00
Khairul Azhar Kasmiran
3d606a4b92 Add not-windows-x64 category to archos/ (#1700) 2021-10-24 10:25:46 +08:00
chinggg
79da41dfb6 Fix invalid v command resulting in black screen 2021-10-24 10:25:46 +08:00
Giovanni
54ab6d1613 Adding timeouts to long tests (#1822)
* Update sections
* Update mdmp
2021-10-18 12:33:46 +08:00
Giovanni
bc39b8fab0 [dex] remove bottleneck on rz_list_get_n() (#1798)
* Converted RzList to RzPVector
* Optimized library parsing on dex
2021-10-18 12:33:46 +08:00
Riccardo Schirone
cc27926857 Move TSLanguage initialization into new rz_core_cmd_new API 2021-10-18 12:33:46 +08:00
Giovanni
23baf7b5f6 Fix potential buffer overflow in rc2 (#1792) 2021-10-18 12:33:46 +08:00
Giovanni
978ecd903e Fix nullptr due missing small_block method when openssl is used. (#1790) 2021-10-18 12:33:46 +08:00
David CARLIER
cba51cf0fd remaining warning build fixes (#1787) 2021-10-18 12:33:46 +08:00
Anton Kochkov
79240f576f Added crc32 and entropy values (#1774)
Co-authored-by: wargio <wargio@libero.it>
2021-10-18 12:33:46 +08:00
Anton Kochkov
37ea5abb4d Read PE header properly (#1763) 2021-10-18 12:33:46 +08:00
David CARLIER
53e5471142 haiku and dragonflybsd build fixes. (#1767) 2021-10-18 12:33:46 +08:00
Anton Kochkov
65412b66cb Detect shm_open() function with Meson (#1759) 2021-10-18 12:33:46 +08:00
Luca Borzacchiello
4e2210bff0 Removed junk on screen in visual mode with two columns (#1757)
* Removed junk on screen in visual two-columun mode

Toggled a refresh everytime the screen is repainted in visual two-column
mode

* Removed some reduntant code
2021-10-18 12:33:46 +08:00
Florian Märkl
fd1a03dc90 Fix some null derefs in Windows Debugger (#1748) 2021-10-18 12:33:46 +08:00
GustavoLCR
f7c0700a09 Fix infinite loop if first case of switch table points to same block 2021-10-18 12:33:46 +08:00
GustavoLCR
d6f21427f3 Fix integer overflow and excessive memory usage in jump table analysis 2021-10-18 12:33:46 +08:00
Luca Borzacchiello
c59ae6a7b7 Fixed 'ctrl+arrow' and 'alt+arrow key' in rizin shell 2021-10-18 12:33:46 +08:00
GustavoLCR
82128285e9 Fix rax -t not considering GMT argument 2021-10-18 12:33:46 +08:00
wargio
de6223d205 Fixed GCC 11 warning in rz-test 2021-10-18 12:33:46 +08:00
Riccardo Schirone
6bb2c4b1c5 Add pid/pidfile on man/rz-run and make pid option a boolean (#1741) 2021-10-18 12:33:46 +08:00
Riccardo Schirone
be157e869c Bump version to v0.3.0
Some checks failed
Code scanning / build (CodeQL-cpp) (push) Has been cancelled
Code scanning / build (CodeQL-javascript) (push) Has been cancelled
Code scanning / build (CodeQL-python) (push) Has been cancelled
Mixed linter and checks / changes (push) Has been cancelled
Mixed linter and checks / licenses (push) Has been cancelled
Mixed linter and checks / cmd_descs_yaml_check (push) Has been cancelled
Mixed linter and checks / clang-format (push) Has been cancelled
Mixed linter and checks / prettier (push) Has been cancelled
Mixed linter and checks / python (push) Has been cancelled
2021-09-24 14:48:58 +02:00
Riccardo Schirone
120235ac68 Fix pimm/cimm opex printing in ARM instructions (#1730)
* Fix pimm/cimm opex printing in ARM instructions
* Add test for opex cimm/pimm in ARM
2021-09-23 17:59:26 +02:00