Commit graph

29250 commits

Author SHA1 Message Date
Anton Kochkov
6f0d6750d1 subprojects: rename tree-sitter-c into rizin-grammar-c 2024-09-12 00:41:23 +08:00
Anton Kochkov
26eb2268ca types: fix nested structures format size 2024-09-09 23:44:38 +08:00
Anton Kochkov
8e89297c39 types: add missing atomic integer types 2024-09-09 23:44:38 +08:00
wargio
61de950954 Forbid declaration of __ucrt_int_to_float from Win SDK 10.0.25182.0 2024-09-08 17:34:55 +08:00
wargio
2bd0ae1998 Backport radare2#f7041c2b94d473223f924b251886052fecff3ce1 2024-09-08 17:34:55 +08:00
wargio
435ccc26f4 Improve search of certificates in binary via /cd 2024-09-08 17:34:55 +08:00
wargio
1e40a41fa6 use rz_read_at_le32 in rz_bin_te_get_main_paddr and fix errors 2024-09-08 17:34:55 +08:00
wargio
2cad54047e Check we do not shift more than 63. in [us]leb128
aaa
2024-09-08 17:34:55 +08:00
wargio
7c84abc23d Fix librz/bin/format/pe/pe_section.c:236:27
signed integer overflow due type 'int'
2024-09-08 17:34:55 +08:00
Tushar Jain
526946f552
debug: Travis CI compilation error fixes (#4615) 2024-09-07 01:14:18 +08:00
Anton Kochkov
3cefa3ff73
types: add missing atomic integer types (#4616) 2024-09-07 00:52:17 +08:00
Anton Kochkov
fb9d3cc1f8
core/cmd: add QUIET mode for global vars listing (#4617) 2024-09-06 22:33:37 +08:00
Anton Kochkov
5830679d3b
types: fix nested structure typedefs format (#4614) 2024-09-05 22:36:57 +08:00
Anton Kochkov
1f78e11581
analysis: add function equality API (#4612) 2024-09-05 09:25:18 +08:00
Tushar Jain
1057cf6eb6
debug: refactor native debugger (#4604) 2024-09-05 01:39:35 +08:00
Anton Kochkov
c005a188d7
cmd: rename avg into avgl, add table mode (#4609) 2024-09-05 01:27:30 +08:00
Anton Kochkov
270851ae1c
cmd: t - add long mode, show size and kind (#4610) 2024-09-04 23:48:17 +08:00
wargio
15f97e3e0c Compile jsdec in EXTRA_PREFIX with the correct branch
aaaa
2024-09-04 21:16:17 +08:00
Dhruv Maroo
7c57b92dae Add wrap for native SoftFloat subproject 2024-09-04 21:16:17 +08:00
ajakk
2d5a70879b
librz: link to tree-sitter directly (#4603)
tree-sitter symbols are included in this library, so we need to
specify the dependency to avoid linking failures due to missing
tree-sitter symbols.

See-Also: https://bugs.gentoo.org/928301

Signed-off-by: John Helmert III <ajak@gentoo.org>
2024-09-03 21:46:24 +08:00
z3phyr
4130f44540
docs: Add guidelines for ptr handling (#4599) 2024-08-29 11:22:14 +08:00
Anton Kochkov
9c5e97ded6
test/integration/open: check base address (#4597) 2024-08-29 11:21:23 +08:00
Anton Kochkov
5780411ded
core/analysis: API to get sourceline info for functions (#4598) 2024-08-29 11:21:03 +08:00
z3phyr
5b070625ef
Add RzAnalysis OP to ROP gadget info (#4582)
* Add RzAnalysis OP to ROP gadget info
* Replace analysis call
* Fix some minor bugs in \Rg flow
* Remove the usage of rz_core_cmd_strf
2024-08-29 00:20:48 +08:00
Zeck
e56fe8ac7f
fix sign cmake library (#4595) 2024-08-19 14:12:42 +08:00
Giovanni
260811259a
add softfloat_dep when cross build (#4593) 2024-08-16 17:40:32 +08:00
Ahmed_Hany
d1b71f4f03
Add missing VFP-v3/Neon D0-D31 registers (#4592)
Per [issue: DWARF: Missing some ARM32
registers](https://github.com/rizinorg/rizin/issues/4589)
VFP-v3/Neon D0-D31 registers were missing from map_dwarf_reg_to_arm32
causing

```
WARNING: (libr/arch/isa/arm/arm_dwarf_regnumb_table.h:137):
map_dwarf_reg_to_arm32: code should not be reached
```
2024-08-16 07:27:52 +00:00
Anton Kochkov
63fec27295 ci/docker: install tomli for meson 2024-08-15 22:58:05 +08:00
Anton Kochkov
b6148fdb0e dwarf: fix loading big Zlib sections 2024-08-15 22:51:42 +08:00
Anton Kochkov
a9fc1bd458 subprojects/zlib: bump version to 1.3.1 2024-08-15 22:51:42 +08:00
Anton Kochkov
7ef842f813 ci: use new CentOS 7 mirror URL 2024-08-15 20:43:59 +08:00
Anton Kochkov
6c6b541885
ci: install tomli for meson (#4590) 2024-08-15 20:43:00 +08:00
Giovanni
819812c430
Add one similarity against all functions of another binary (#4584) 2024-08-07 08:27:51 +08:00
z3phyr
c02c0b744e
core/rop: refactor and grep ROP info (#4569) 2024-07-31 21:50:50 +08:00
kuinshi
6d45cbddb5
Semantics of x86 uplifting: reduce 'Repeat' ops (#4559)
* Semantics of x86 uplifting: reduce 'Repeat' ops

- Replaced Repeat with bitwise operations for parity calculation.
- Simplified rotate and shift calculations.
- Enhanced static analysis feasibility.

* Update IL outputs of affected tests
2024-07-30 22:42:13 +08:00
Rot127
ae491d6325
Document the register profile in its own file. (#4575) 2024-07-30 22:40:48 +08:00
Claudio Jeker
0ef349398e
Adjust OpenBSD code to set the process state to be less wrong. (#4579)
Use the p_stat of the main thread to decide in which state the process is.
For multi-threaded applications this is still not quite correct but at
least this compiles on OpenBSD-current.

See also 5d4f90ee10

Fix for #4576
2024-07-28 10:05:46 +00:00
Giovanni
2b4aa5351e
Add NDS overlays sections and updated nds header. (#4570) 2024-07-17 09:39:28 +08:00
Rot127
e878181098
Fix reachable Capstone assert. (#4571)
ESIL requested a register name with a non-register value.
2024-07-16 21:57:44 +08:00
Christopher Talib
d004e8402e
doc: updating math expresion command in fortunes (#4568) 2024-07-15 22:55:09 +08:00
Anton Kochkov
c9fc24ecc4
test/unit/rop: set arch explicitly (#4564) 2024-07-10 21:08:56 +08:00
z3phyr
c8d05054c1
Ropchain constraint syntax parser (#4552)
Co-authored-by: Giridhar Prasath R <giridh1337@gmail.com>
2024-07-10 12:41:47 +08:00
satk0
e3d27c9316
Add environment variables documentation to manpages and -hh (#4560) 2024-07-10 11:12:48 +08:00
zhangwenlong
cbd086a7ec
Fix build error on loongarch64 (#4558) 2024-07-05 15:00:17 +08:00
مصطفي محمود كمال الدين
3e258f5a08
arch/msp430: implement RzIL uplfiting (#4379)
Co-authored-by: Rot127 <45763064+Rot127@users.noreply.github.com>
2024-07-01 19:51:54 +08:00
Dhruv Maroo
19ec6ba298
Use SoftFloat 3e for implementing arithmetic operations in RzFloat (#4535)
* Add a new test for checking 80-bit floating point operations

    * New test `f80_ieee_div_test` tests the division of two 80-bit
      floats

* Add SoftFloat 2c as a meson subproject

* Add softfloat code to make the failing test case pass

* Update the hash for the latest softfloat revision

* Implement `rz_float_sqrt` using SoftFloat

* Run the `f80_ieee_div_test` only for x86

* Replace SoftFloat version 2c with 3e

    * 3e has less bugs and more features
    * Modify the implementation in accordance

* Update SoftFloat revision and add a guard around the 80-bit div test

* Use SoftFloat for add, sub, mul operations as well

* Make rem and mod also use SoftFloat functions

    * Also add test for mod and rem, and fix behavior of rem

* Add comment about behavior of mod and rem

* Add comments for tests which have different results for mod and rem

* Simplify usage of loop variable as suggested in review

* Remove unused macro from float.c

* Implement `FMA` and `ROUND` using SoftFloat API

* Add more tests for 80-bit floats

* Change remote to a repository under rizinorg

* Add info about the rounding mode in the Doxygen for rem and mod

* Add comments in tests for rem and mod in `test_float.c`

* Use bitvectors to initialize 80-bit soft floats

    * This makes the tests more portable and hence they can be run on
      any platform

* Remove guards for f80 tests since they are portable now
2024-06-25 22:06:24 +05:30
Khairul Azhar Kasmiran
3a33626a33
subprocess: Protect proc->ret with a semaphore (#4545)
* subprocess: Protect proc->ret with a semaphore 
* rz_th_sem_wait: Retry sem_wait() on EINTR
* Remove killpipe
2024-06-19 18:23:12 +08:00
Heersin
3dcca03ced
Enable subproject tree-sitter-c in librz/type (#4550) 2024-06-14 08:26:37 +08:00
Khairul Azhar Kasmiran
fb384a4957
subprocess: Negate #else label (#4549) 2024-06-12 22:31:25 +08:00
Anton Kochkov
dcabce7a13
util/buf: remove rz_buf_peek_u16() (#4547) 2024-06-09 21:46:47 +08:00