1174 Commits

Author SHA1 Message Date
pancake
fba739a1ee
Add ablc, ab-, Fix and optimize in af- and aafs ##analysis
* Add ablc, ab-, Fix and optimize in af- and aafs ##analysis

* delete dangling basic blocks after 'aafs' when using 'af-*'
* add test for aafs and ablc
* queue reanalysis on write, and mark detectwrite tests as broken
* function reanalisis tests in a separate file
2022-01-12 12:07:26 +01:00
Francesco Tamagni
169c643a7a Add support for rebasing ARM64E_USERLAND24 chained format ##bin 2022-01-11 12:51:32 +01:00
Sergi Àlvarez i Capilla
3fb7de3e2d Improve pcc output and add a test ##print 2022-01-11 02:59:30 +01:00
pancake
fb0ec6ed00
Use stdint like if there was no yesterday ##refactor
* stdint is needed to build r2, so there's no need to keep using
  those weak basic types anymore, and we can just alias them
2022-01-09 19:48:16 +01:00
Sergi Àlvarez i Capilla
2fe573880c Bring back the old afls behaviour and update tests 2022-01-07 18:10:50 +01:00
Sergi Àlvarez i Capilla
5f2a9dfa34 Fix 'afls' and add tests ##analysis 2022-01-07 12:12:46 +01:00
Sergi Àlvarez i Capilla
97f3f7cb6a Fix isqq. command ##bin 2022-01-07 01:44:58 +01:00
Sergi Àlvarez i Capilla
75f813a4a9 Update tests and help about asm.leahints -> asm.hint.lea 2022-01-07 00:56:27 +01:00
Sergi Àlvarez i Capilla
06457a9044 Add quickjs benchmark script 2022-01-06 22:54:55 +01:00
Sergi Àlvarez i Capilla
7cfd3678f9 Initial implementation of the dummy benchmark ##tests 2022-01-06 21:52:36 +01:00
Dennis Goodlett
2a117d5f4f
Add Rabin Karp algorythm to ##search 2021-12-30 10:30:30 +01:00
Sergi Àlvarez i Capilla
8030c906a0 Fix reference order and use the API in sixref (2x faster) ##analysis 2021-12-23 20:00:04 +01:00
Sergi Àlvarez i Capilla
1eaee48370 Initial implementation of the 'aafs' command ##analysis
* Find function entrypoints and creates a single basic block function
* Useful for fast initial analysis instead of aaa (30min vs 5s)
* Handy to get xrefs context in function boundaries
2021-12-23 18:58:38 +01:00
Sergi Àlvarez i Capilla
b01d2140dc Optimize and fix heap overflow in asm.tabs using RStrBuf ##crash 2021-12-23 18:08:14 +01:00
junchao-loongson
efd05bc7e9
Add support for the new loongarch architecture ##analysis
* Disasm, emulation, analysis and ELF support updated
2021-12-23 12:37:29 +01:00
Lazula
ad749a0b1a Fix static/R_API function definition formatting
* Remove spaces before parens
* Remove spaces after asterisks
2021-12-21 20:58:12 +01:00
Sergi Àlvarez i Capilla
545aefe971 Improve reg detection in asm highlighting + add test ##disasm 2021-12-21 20:08:11 +01:00
pancake
7373893cb2 Fix tests 2021-12-21 13:06:13 +01:00
pancake
d613664fd0 Fix reg/flag detection in disasm colorization ##disasm 2021-12-21 12:08:10 +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
pancake
e65e385e53 Add test for the objc crash 2021-12-10 00:45:23 +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
Francesco Tamagni
5450345e9b
Support Mach-O DYLD_CHAINED_PTR_64_OFFSET format ##bin 2021-12-09 01:18:02 +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
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
1964777a05
Fix the CI (#19462) 2021-12-03 01:38:51 +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
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
pancake
8e2e9c73e4
Fix so-1 in runofthemill (#19445) 2021-11-28 01:50:29 +01:00
pancake
6c186b5029 Honor rabin2 -p to change io->va 2021-11-22 11:25:56 +01:00
aviciano
5a0bc927e7
Fix #16178 - Rename the r_anal_fcn* apis to r_anal_function* 2021-11-21 20:18:46 +01:00
pancake
ec0b1e60f6
Fix broken project test (#19425) 2021-11-19 01:01:46 +01:00
Lazula
2255bf8b5d Many indentation style fixes
* Change several 8-space indents to tabs
* Apply tab indent style when breaking long lines
* Move operators from EOL to start of next line
* Fix ternary formatting
2021-11-18 10:43:52 +01:00
Dennis Goodlett
cef64fbbb0
Add binary search alg to pvector ##util (#19414) 2021-11-16 23:56:21 +01:00
pancake
075c0c0108
Do not show vars that aren't accessed (#19403) 2021-11-13 21:12:10 +01:00
Dennis Goodlett
b7a3516820
Fix bugs in types validator ##signatures (#19392) 2021-11-09 09:06:17 +01:00
pancake
4aa0293958
raw -> range (#19387) 2021-11-08 12:03:39 +01:00
pancake
9fcf40eab8
Fix assert crash in unit test (#19386) 2021-11-08 10:11:08 +01:00
condret
60529bf868 Add unit tests for new rbtree API 2021-11-08 03:01:27 +01:00
Dennis Goodlett
c4b45e3a18
Fix broken unit test in hex (#19379) 2021-11-06 08:07:04 +01:00
Dennis Goodlett
70ddf62757
Fix afv outputing commands when not in "*" mode (#19381) 2021-11-06 08:06:34 +01:00
condret
21f8e7a7e7 Fix bug in "om"-command 2021-11-06 02:47:11 +01:00
Sergi Àlvarez i Capilla
693fcaaaea Disable conflictive tests to make master green 2021-11-05 16:25:34 +01:00
Sergi Àlvarez i Capilla
23da5e315f Fix unit test 2021-11-05 15:15:09 +01:00
RHL120
59b5ec4e3c
Fix a problem serializing vartypes ##projects
That was causing some functions to not be reloaded after saving the project
2021-11-05 11:26:55 +01:00