27026 Commits

Author SHA1 Message Date
gogo2464
fbb32d6875
Avoid UB in 8051 assembler and improve error message 2021-12-12 22:53:42 +01:00
pancake
2ddcdea581 Use cs_disasm_iter in anal.x86.cs to use less heap ##analysis 2021-12-12 21:48:09 +01:00
pancake
2e49776cce Use cs_disasm_iter to save few allocations ##disasm 2021-12-12 21:48:09 +01:00
pancake
2b66ea66ea Do not remake on modules with d/ ##build 2021-12-12 21:47:07 +01:00
gogo2464
d6d100938c
Handle jbc [reg] in 8051 assembler ##asm 2021-12-12 20:43:30 +01:00
Dennis Goodlett
9921f8c1d5
Add JSON output to zb commands ##signatures 2021-12-12 11:46:58 +01:00
Dennis Goodlett
25fa4328db
Cleanup public API for ##search (#19477)
* Remove unsed API
* Remove r_search_update_i
* Implementation of r_search_update_i was just returning r_search_update.
* Remove unused r_search_xrefs_update
* Remove r_search_magic_update from public API
* Move update functions out of public API
* Remove unused r_search_bmh API
* Rename search update functions
* Add R_IPI to internal functions
2021-12-12 11:46:46 +01:00
Lazula
22ed7d5143 Remove unused read_buffer_only argument from r_core_print_disasm() 2021-12-11 10:57:48 +01:00
Lazula
ae9c54c28e Fix pD reading too many bytes during retry 2021-12-11 10:57:48 +01:00
pancake
e65e385e53 Add test for the objc crash 2021-12-10 00:45:23 +01:00
Sergi Àlvarez i Capilla
1499a9337f Fix last covs related to the py marshall code 2021-12-09 18:00:58 +01:00
Sergi Àlvarez i Capilla
58e59dbb0b Build for android with acr, meson doesnt seems to work 2021-12-09 12:43:40 +01:00
pancake
49f40816d3 Fix indent issues, pass out buffer size and fix disasm return value 2021-12-09 09:51:29 +01:00
gogo
2f950f5ebe add registers sreg, adcl and adch
replace spaces by tabs and add registers rampz and eind

remove comments from avr analysis plugin

add some registers to the register list

add more registers

add more registers

ajust register sizes

list all remininders full registers

analyze the binary

check for environment variable to fix tests

Use r_str_get() instead of manual string null checks in AVR plugin

move sreg instruction in numerical order

split the .assemble function with new files assemble.c and assemble.h

reassemble new instructions with operand spl and sreg

can reassemble old hex input as well as new input with register names. Register sph added.

use r_strbuf apis

Add file disassemble.c to meson

Fix is_register_found is ONLY set to true when current_register is != NULL

Fix size logic on return value.

Modify tests

fix review
2021-12-09 09:51:29 +01:00
pancake
fdc9f4c36c
Fix #19476 - heap overflow in aao ##crash 2021-12-09 01:53:00 +01:00
pancake
7b9ac97299 Fix #19478 - null deref in symbols file ##bin 2021-12-09 01:25:51 +01:00
Francesco Tamagni
5450345e9b
Support Mach-O DYLD_CHAINED_PTR_64_OFFSET format ##bin 2021-12-09 01:18:02 +01:00
condret
89e162dab7 Fix crash and cleanup argparsing in omf command 2021-12-08 09:23:19 +01:00
pancake
79effabdf5 Release 5.5.2 5.5.2 2021-12-06 12:07:22 +01:00
Dennis Goodlett
56c35e0015
Update defines how data is free'd ##search 2021-12-06 12:06:25 +01:00
gordon-quad
2858090865
Fix #19473 - Support libc filename w/o version for heap analysis ##debug 2021-12-06 02:21:25 +01:00
pancake
24430ebdf6
Fix #18967 - Fix emulation for the mov-pc thumb instruction ##esil 2021-12-06 02:20:38 +01:00
pancake
08f66e3daa Fix #19464 - incorrect assembly for adrp on arm64 ##asm 2021-12-05 16:29:11 +01:00
pancake
3da46ed758 Fix #19463 - io write error reporting regression ##io 2021-12-05 12:41:29 +01:00
pancake
e9b8b4fb66
Use null plugin when using unexistent asm plugin ##asm
* Fixes anal disasm warnings and related problems
2021-12-05 11:53:31 +01:00
pancake
e61c796fa4 Fix #19389 - Fix autocompletion for 'm <tab>' 2021-12-05 11:28:59 +01:00
pancake
862fe33631
Handle more ELF relocs for ARM binaries ##bin
* Handle more ELF relocs for ARM binaries ##bin

Inspired by cd6bde4aeb
2021-12-05 04:58:12 +01:00
pancake
12c44332a2
Check for subcommands of iz to improve output on invalid input (#19467)
* Minor count fix and r_diff include moved into r_util
2021-12-05 04:43:31 +01:00
pancake
150a4e385a Add help for r2pm -uu 2021-12-05 02:44:22 +01:00
aemmitt-ns
e8a7adba42
Fix Dalvik’s esil conditionals ##esil 2021-12-04 21:47:10 +01:00
Sergi Àlvarez i Capilla
0290c24758 Fix r2pm -s when more than one result is found. 2021-12-03 12:29:39 +01:00
Sergi Àlvarez i Capilla
a1fb264fbd Minor fixes in the shm:// io plugin 2021-12-03 11:26:20 +01:00
pancake
a0d003ba53
Initial support for VLIW on hexagon ##disasm 2021-12-03 01:39:26 +01:00
pancake
1964777a05
Fix the CI (#19462) 2021-12-03 01:38:51 +01:00
Sergi Àlvarez i Capilla
ee6a13f58d Disable the windows type files as they just make the suite too slow 2021-12-02 18:01:09 +01:00
pancake
e6f2cd0b2a
Remove trailing spaces (#19460)
$ git grep ' $' | grep -v ^test/ | cut -d : -f 1 | sort -u > /tmp/trailing
$ for a in `cat /tmp/trailing` ; do sed -i -e 's/ *$//' $a ; done
2021-12-02 17:39:59 +01:00
Sergi Àlvarez i Capilla
7b23114f9f make: Dont rebuild anal/d everytime 2021-12-02 16:48:47 +01:00
pancake
dafa685c24
Fix invalid pointer read issue in dwarf parser ##crash (#19459)
* Exploited by tests_65179, tests_65180 and tests_64901
* Fix out of bounds issue causing memory corruption in unit test
2021-12-02 12:20:30 +01:00
Sergi Àlvarez i Capilla
e1efe7370f Update capstone 2021-12-02 11:25:18 +01:00
Sergi Àlvarez i Capilla
e07fbc2f37 Fix null deref in iobank exposed by tests_65176 2021-12-01 17:50:29 +01:00
Sergi Àlvarez i Capilla
77d9fedab8 Fix #19455 - Negative tainted offset used in buffer for pyc causing oobread ##crash 2021-12-01 16:33:19 +01:00
Sergi Àlvarez i Capilla
977c9f1524 Dont call pwd in anal/p 2021-12-01 13:25:18 +01:00
Sergi Àlvarez i Capilla
1950e40eb1 Improve cursor up/down in visual disasm ##visual 2021-11-30 22:40:22 +01:00
Sergi Àlvarez i Capilla
a8ad11f6b7 Implement symbol diffing in radiff2 ##diff 2021-11-30 22:01:07 +01:00
Sergi Àlvarez i Capilla
97cd997eff Minor sanity check in count.sh 2021-11-30 22:00:17 +01:00
Octavio Gianatiempo
3fed0e322d Fix DoS analysing ELF64 binary for MIPS architecture #19436 2021-11-30 20:51:40 +01:00
Sergi Àlvarez i Capilla
f50d5c4165 Fix r2pipe.cmd("Z") when command fails returns no output ##r2pipe 2021-11-30 19:54:57 +01:00
Richard Liu
1f123e41e4 Fix infinite loop in r_str_replace ##util
* Add check for empty `key`, since `r_str_replace` does not check for
  empty `key` and will loop indefinitely.
* Add test case for this (occurs with highlight grep)
2021-11-30 11:08:47 +01:00
Sergi Àlvarez i Capilla
c5545c3d27 Clarify scr.layout config var help message 2021-11-29 21:12:52 +01:00
pancake
7c20ef7f2a
Fix #19448 - Fix atoi on non-null terminated string in PE section headers ##crash 2021-11-29 10:19:52 +01:00