Commit Graph

23438 Commits

Author SHA1 Message Date
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
478c7d2d1d Fix capstone v5 regression 2022-01-07 00:56:27 +01:00
Sergi Àlvarez i Capilla
5630b7f082 Handle .wren and .qjs file extensions without plugins installed 2022-01-06 23:37:02 +01:00
Sergi Àlvarez i Capilla
838a1b90c7 Fix uaf in tab 2022-01-06 23:36:58 +01:00
Sergi Àlvarez i Capilla
d7117df242 Do not use sdb_fmt in arm.cs plugin 2022-01-06 23:21:00 +01:00
Sergi Àlvarez i Capilla
2f45489441 Fix pdsf?, forbid V? and remove newlines in pxA? ##print 2022-01-06 23:03:12 +01:00
Sergi Àlvarez i Capilla
37897226a1 Fix use-after-free in iobank rbtree usage ##io
* See havoc4 bin for reproducer
* Reported via huntr.dev by 'Cen Zhang'
2022-01-06 21:57:58 +01:00
Sergi Àlvarez i Capilla
8194bfc6c2 Implement rarun2 time=true attribute ##shell 2022-01-06 21:40:01 +01:00
pancake
1ed14ca53a
Fix #19541 - Fix null deref and stack exhaustion bugs in the kernelcache ##bin 2022-01-01 18:06:26 +01:00
Lazula
b4195becaa Fix heap overread in loongarch when len < 4 ##anal 2022-01-01 12:21:30 +01:00
Sergi Àlvarez i Capilla
500686304a Fix UAF in p9 parser, add test 2021-12-30 21:23:10 +01:00
Dennis Goodlett
2a117d5f4f
Add Rabin Karp algorythm to ##search 2021-12-30 10:30:30 +01:00
Dennis Goodlett
d76bb693f2 Add r_search_maps to ##search 2021-12-30 10:30:13 +01:00
Dennis Goodlett
efe2a28e94 Search adjacent maps together ##search 2021-12-30 10:30:13 +01:00
Sergi Àlvarez i Capilla
3b04d3ef40 Add missing =SN for v850 2021-12-26 11:00:35 +01:00
Lazula
ea630ca19f Kill HAVE_EPRINTF, replace with ifndef eprintf 2021-12-25 09:16:49 +01:00
Sergi Àlvarez i Capilla
8d0b8ae79b Implement iS, command (table query format for section listing) ##bin 2021-12-23 20:48:16 +01:00
Sergi Àlvarez i Capilla
838b253d52 Add axl command for consistency with afl for 'axlc' ##analysis 2021-12-23 20:24: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
000e0361d6 Fix harmless warning in v850np 2021-12-23 18:19:10 +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
Dennis Goodlett
f8f9599154
Move /e to new search API ##search
* Move global var to struct
* Add r_cons_is_breaked
* Use RConsBind
2021-12-23 00:36:51 +01:00
Lazula
4a1ef1de44 Remove undocumented and unlogged seek behavior when no alias match is found 2021-12-22 23:36:25 +01:00
Lazula
0c46ebfed2 Add newlines and hex markers to EPRINT macros 2021-12-22 15:37:22 -06:00
pancake
0c6d40c274 Improve the basic theme ##cons 2021-12-21 22:09:26 +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
Lazula
b95440f5d6 Add EPRINT macros for debug printing with variable name 2021-12-21 20:58:01 +01:00
Sergi Àlvarez i Capilla
6e2f15dcbc Fix all the known issues in the ayu theme ##cons
* Time to jump into the 'basic', one theme at a time
2021-12-21 20:08:27 +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
50e1b214bf Improve the v850.np analysis, fix all call refs ##analysis 2021-12-21 19:41:02 +01:00
pancake
2928a0e635 Fix instruction parsing issue in v850np 2021-12-21 18:23:14 +01:00
pancake
d613664fd0 Fix reg/flag detection in disasm colorization ##disasm 2021-12-21 12:08:10 +01:00
pancake
eb55c15453 Honor jmp/call argument colors by type ##cons 2021-12-21 12:08:10 +01:00
pancake
575c26f329 Fix some format string warnings in the mingw ci job 2021-12-21 00:31:28 +01:00
pancake
4bbc2f198e Fix last covs on wasm binparser and r2pm-c 2021-12-21 00:31:28 +01:00
pancake
d11d623267 Use I64x instead of llx format strings for mingw builds too ##windows 2021-12-21 00:31:10 +01:00
pancake
bdb9b52fcb Initial import of the v850.np plugin ##disasm 2021-12-20 23:29:50 +01:00
pancake
62aaf47dec Handle anal.cpu=? and fallback for asm.cpu when no asm plugin ##disasm 2021-12-20 23:29:50 +01:00
pancake
a3c4bc388b Add prj.sandbox to enable experimental sandboxed project loading ##projects 2021-12-20 23:20:50 +01:00
pancake
b531513e96
Implement fine grained sandbox control ##security 2021-12-20 14:58:51 +01:00
pancake
034cd660e4
Add asm.bytes.opcolor configuration option ##disasm 2021-12-19 17:04:39 +01:00
Dennis Goodlett
df77191f9d
Fix bug in regex searching ##search 2021-12-19 16:56:09 +01:00
pancake
2bd43886db Fix memory leaks in r2pm.c 2021-12-18 10:14:38 +01:00
pancake
eb5d38e34d Finish the dechip from asm 2021-12-17 12:11:05 +01:00
pancake
2fa1fba5ee Fix system regression 2021-12-17 11:28:03 +01:00
pancake
681323267d
Refactor, improve and move chip8 support out of libr/asm ##asm 2021-12-17 11:21:52 +01:00
pancake
3aef52cae0 Fix issues in r2pm -i acr and the new compiler checks 2021-12-17 10:26:41 +01:00
Claudemirovsky
59d295e6f5
Fix typo in url (#19510) 2021-12-17 10:01:30 +01:00
pancake
d24bf5b654 More build fixes, googlefuzz integration, add r_asm_cpus() api via the wip 'al' command 2021-12-17 00:15:38 +01:00
pancake
9986b6e464
Remove asm.ebc and merge disasm into the anal ##refactor 2021-12-16 18:27:45 +01:00
pancake
3ad5693518
Initial implementation of r2pm.c ##r2pm 2021-12-16 12:47:40 +01:00
Dennis Goodlett
847f567be7
Add longest field to RSearch ##search 2021-12-16 12:47:23 +01:00
junchao-loongson
fb7778c395
Add basic support for loongarch ##ports 2021-12-16 12:46:18 +01:00
Dennis Goodlett
df32fd1725
Add r_search_upate_read API ##search 2021-12-16 12:45:48 +01:00
Lazula
6cc9402ee9
Fix formatting for some esil function calls (#19503) 2021-12-15 08:59:00 +01:00
pancake
03732b1312
Dont depend on case-sensitive FS to load the DLL sdbs ##bin (#19502) 2021-12-14 17:19:51 +01:00
Sergi Àlvarez i Capilla
87f28192a8 Fix master werror issue adding a default switch block 2021-12-14 16:26:03 +01:00
Sergi Àlvarez i Capilla
0f6ec113d2 Fix bug in panels spotted by codeql 2021-12-14 12:26:06 +01:00
Sergi Àlvarez i Capilla
cc217494b2 Disable the disassembler logic in the asm plugin for 8051 ##asm
* Avoid compile+link the same code twice for asm & anal
2021-12-14 10:16:58 +01:00
Sergi Àlvarez i Capilla
350c269901 Bind anal into rasm2 2021-12-14 00:32:45 +01:00
gogo2464
720f7f86c7
Handle registers on push on 8051 ##assembler 2021-12-13 23:45:18 +01:00
Sergi Àlvarez i Capilla
f50678328b Address dead code in widechar search spotted by coverity 2021-12-13 23:43:29 +01:00
Sergi Àlvarez i Capilla
4982055f30 Fix the last covs reported in pyc/avr/aao 2021-12-13 23:07:41 +01:00
Claudemirovsky
aceedaefea
Fix libr_lang linking issue ##build 2021-12-13 11:24:23 +01:00
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
Sergi Àlvarez i Capilla
1499a9337f Fix last covs related to the py marshall code 2021-12-09 18:00:58 +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 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
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
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
pancake
4e4efef0f7
Improve the snow experience in panels mode ##cons 2021-11-29 00:42:10 +01:00
pancake
99d7b1f7a2 Fix #19443 - Fix the pyc tests and marshall uaf
* Fix memleaks when parsing invalid pyc type objects
* Sometimes valgrind logs are nicer than asan ones
2021-11-28 22:36:11 +01:00
pancake
17743efd42 Fix #19446 - null derefs in the x509 parser ##crash 2021-11-28 22:18:11 +01:00
pancake
4327d8322f
Bring back the mingw32 builds ##windows
* Massage conflicting function signatures spotted by mingw
* Fix the spp visibility issue
* Enable 32 and 64bit mingw builds in the CI
2021-11-28 22:10:51 +01:00
pancake
bf7ecde2cd Fix 319443 - pyc uaf marhall bug fixed properly 2021-11-28 02:13:25 +01:00
pancake
e9e5d9c7e1 oopsie 2021-11-28 01:58:54 +01:00
pancake
8e2e9c73e4
Fix so-1 in runofthemill (#19445) 2021-11-28 01:50:29 +01:00
pancake
7ffe8ecaf2 Fix #19443 - UAF in marshall null object ##crash 2021-11-28 01:07:14 +01:00
pancake
0505cac914 Fix #19442 - Fix heap underflow in pyc marshalling ##crash 2021-11-28 00:39:01 +01:00
pancake
a0fd446a7b Fix #19444 - Null derefs in PE signature logic ##crash 2021-11-28 00:36:08 +01:00
condret
c80d1dd49a Fix meson-linux-spaces build 2021-11-24 19:29:16 +01:00
slowhand99
652c24b096 Changes to be committed:
modified:   meson.build
2021-11-24 19:29:16 +01:00
slowhand99
ba1a0c1134 Changes to be committed:
modified:   libr/asm/meson.build
2021-11-24 19:29:16 +01:00
condret
081d6f903c Use r_strbuf_setf instead of sdb_fmt in jd8dis.c 2021-11-24 19:29:16 +01:00
condret
5c3f647180 Fix meson build 2021-11-24 19:29:16 +01:00
Ashwin Kumar
850e4a0806 Update libr/asm/arch/jdh8/jdh8dis.c
Co-authored-by: pancake <pancake@nowsecure.com>
2021-11-24 19:29:16 +01:00
slowhand99
32f5322756 Replace sdb_fmt with snprintf
modified:   libr/asm/arch/jdh8/jdh8dis.c
2021-11-24 19:29:16 +01:00
slowhand99
8156f33083 Implemented suggested changes modified: jdh8dis.c 2021-11-24 19:29:16 +01:00
slowhand99
b6e7f437c5 Implemented suggested modifications
modified:   libr/asm/arch/jdh8/jdh8dis.c
2021-11-24 19:29:16 +01:00
slowhand99
3776e618a7 Changes to be committed:
modified:   libr/asm/p/asm_jdh8.c
	Updated TODO
2021-11-24 19:29:16 +01:00
slowhand99
6b519408d5 Changes to be committed:
modified:   asm/arch/jdh8/jdh8dis.c
	Updated TODO
2021-11-24 19:29:16 +01:00
slowhand99
6b9d11908d Changes to be committed:
modified:   asm/arch/jdh8/jdh8dis.c
	Updated TODO
2021-11-24 19:29:16 +01:00
condret
7345d1f5e1 Fix build and codingstyle for jdh-8 disassembler 2021-11-24 19:29:16 +01:00
slowhand99
8c861b38f2 Changes to be committed:
modified:   libr/asm/arch/jdh8/jdh8dis.c
2021-11-24 19:29:16 +01:00
slowhand99
cd1b1aaeec Changes to be committed:
modified:   libr/asm/arch/jdh8/jdh8dis.c
2021-11-24 19:29:16 +01:00
slowhand99
a38f37dd23 Changes to be committed:
modified:   libr/asm/arch/jdh8/jdh8dis.c
2021-11-24 19:29:16 +01:00
slowhand99
bed0bac310 Changes to be committed:
modified:   jdh8dis.c
2021-11-24 19:29:16 +01:00
condret
67db06009f Add jdh-8 asm-plugin template 2021-11-24 19:29:16 +01:00
Lazula
0d7fa44e6f Add tab completion for aliases 2021-11-24 01:16:52 +01:00
pancake
120f43583a Improve rabin2 help message and manpage 2021-11-22 11:25:56 +01:00
pancake
6c186b5029 Honor rabin2 -p to change io->va 2021-11-22 11:25:56 +01:00
pancake
74b6e0f71c Add extra null check to avoid crash on bad asm plugins 2021-11-22 10:58:42 +01:00
meme
fbfebef9e6
Add Plan 9 symbol parsing ##bin
All function and data symbols are now parsed and loaded into radare2. As
well, the BSS segment is now also loaded as zeroed virtual memory.
2021-11-22 01:51:30 +01:00
pancake
3e7c2d3df7 Fix pcV output to print const buffers 2021-11-22 00:36:31 +01:00
pancake
2705580602
Add eco! and eco* and sort eco listing ##cons 2021-11-21 23:14:04 +01:00
aviciano
5a0bc927e7
Fix #16178 - Rename the r_anal_fcn* apis to r_anal_function* 2021-11-21 20:18:46 +01:00
meme
592e6407d6 Improve Plan 9 support ##bin
Currently support for Plan 9 binaries is limited to i386 and even then
it doesn't work properly (certain sections won't load, the base address
is wrong, etc.)

With these changes, all architectures including ones from 9front are
supported.
2021-11-21 20:15:00 +01:00
pancake
183e360dd1
Winapi all the things (#19427) 2021-11-20 20:22:35 +01:00
condret
932682ea8a Liberate RSpaces from old rbtree api 2021-11-20 01:02:53 +01:00
meme
ded8189deb
Add bin_xtr.xtr_pemixed for PE user plugin ##build (#19426) 2021-11-19 08:21:09 +01:00
Dennis Goodlett
f2373443c0
Fix NULL node warning in VV ##graph 2021-11-18 23:42:58 +01:00
pancake
e77b0e7f67 Fix PE Metadata header name parsing (.net related) ##bin 2021-11-18 23:41:09 +01:00
Sergi Àlvarez i Capilla
060479f7e8 Fix null deref in macho rebasing function 2021-11-18 21:30:07 +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
1ddf20d6b1
Fix zj vars output ##signatures (#19420) 2021-11-18 10:41:41 +01:00
Dennis Goodlett
99d23d7492
Show prev nodes in graph.few ##graph
* Fix u and U in graph
2021-11-18 10:36:03 +01:00
Rick de Jager
18a693028f
Fix missing bounds check in dwarf_langs (#19419) 2021-11-17 17:05:38 +01:00
Dennis Goodlett
717b547cd2
Fix use of NULL obj in graph (#19416) 2021-11-17 01:10:19 +01:00
Dennis Goodlett
cef64fbbb0
Add binary search alg to pvector ##util (#19414) 2021-11-16 23:56:21 +01:00
pancake
b779f1c44c
Allow NULL in RPrint.hexdump() (#19415) 2021-11-16 23:50:51 +01:00
condret
8f38d16ace Add r_crbtree_foreach 2021-11-16 20:01:40 +01:00
Sergi Àlvarez i Capilla
645835794b arm64's NAND isnt supported in capstone4 2021-11-15 18:10:04 +01:00
condret
eb301fdea0 Use new rbtree api to store relocs 2021-11-15 03:12:19 +01:00
pancake
d76201ce7f Fix w32 dp and ood regressions 2021-11-14 22:53:59 +01:00
pancake
7362d74ae4
Use more join_paths along the meson 2021-11-14 22:25:05 +01:00
pancake
8b227868b8
Fix the windows CI workflows
* Use ninja -j2 in the CI, seems like there are less resources for windows
* Add windows configure+make+run CI workflow
* Use more join_paths()
2021-11-14 21:09:42 +01:00
pancake
514d53eb82 Fix some warnings spotted by msvc 2021-11-14 19:15:14 +01:00
pancake
288d127caf Just disable the sdb-cgen in meson for now 2021-11-14 18:55:49 +01:00
pancake
e344564013 Fix return type in var.c 2021-11-14 18:22:10 +01:00
pancake
657524aabc More meson simplifications 2021-11-14 02:35:57 +01:00
pancake
e5f8f9fa3d Add 'make clean' for windows 2021-11-14 02:04:05 +01:00
pancake
e9c6584417 Fixes for the meson-sdb-cgen 2021-11-14 02:02:34 +01:00
pancake
4c9fac84a0
Generate bin/d the same way as other sdb paths with meson ##build
* Add -Dwasan=true for meson to compile with msvc's address sanitizer
* Clear the prefix dir before installing, so we ensure it's more realistic
2021-11-14 00:57:35 +01:00
pancake
3e032073a3
Fix null name maps, workaround msvc-asan compiler crash and acp/utf/wchar fixes for w32 2021-11-14 00:50:54 +01:00
pancake
075c0c0108
Do not show vars that aren't accessed (#19403) 2021-11-13 21:12:10 +01:00
aemmitt-ns
bd901a3861
Improvements on the arm64.v35/cs plugins ##esil
* fix arm.v35 conditional sets, cs arm64e ESIL, add q0-31 aliases
* add default to prevent warnings
2021-11-12 16:37:02 +01:00
Dennis Goodlett
93f4ec40de
Add help message for zac ##signatures 2021-11-12 10:45:53 +01:00
Sergi Àlvarez i Capilla
3111f11a86 Fix two minor covs 2021-11-09 13:27:42 +01:00
Sergi Àlvarez i Capilla
5130b924b8 Implement 'fc.' command to set a color to all the flags in current offset 2021-11-09 13:25:27 +01:00
Dennis Goodlett
b7a3516820
Fix bugs in types validator ##signatures (#19392) 2021-11-09 09:06:17 +01:00
Sergi Àlvarez i Capilla
e642b43b0f Fix another aaft uaf crash 2021-11-08 12:24:08 +01:00
pancake
8ae0aa38c8
Fix wasi builds and update wapm package in the new dist/wapm ##build 2021-11-08 10:45:35 +01:00
pancake
9fcf40eab8
Fix assert crash in unit test (#19386) 2021-11-08 10:11:08 +01:00
Sergi Àlvarez i Capilla
1abeb989e3 Fix 2 covs and minor cleanup in rbtree 2021-11-08 03:17:03 +01:00
condret
74a3fbd46b Add r_io_map_add_bottom ##io 2021-11-07 21:11:05 +01:00
Sergi Àlvarez i Capilla
52cb0dda6b Add disasm+decompiler side by side api for the codemeta api ##disasm 2021-11-07 00:44:22 +01:00
Dennis Goodlett
5a34189196
Fix validation of next sigs ##signatures (#19380) 2021-11-06 08:07:25 +01:00
Dennis Goodlett
70ddf62757
Fix afv outputing commands when not in "*" mode (#19381) 2021-11-06 08:06:34 +01:00
Dennis Goodlett
b34d8c8703 Fix leak in sig serialization ##signatures 2021-11-06 08:05:28 +01:00
condret
21f8e7a7e7 Fix bug in "om"-command 2021-11-06 02:47:11 +01:00
Sergi Àlvarez i Capilla
e87d914f24 Fix null deref in r2 -c 'oc 3' - ##crash
Thanks @enovella for that valuable handfuzzing :D
2021-11-05 16:49:12 +01:00
Sergi Àlvarez i Capilla
782e26c27e Fix #19377 - Heap overflow in of command without arguments 2021-11-05 16:21:05 +01:00
Sergi Àlvarez i Capilla
b12bfc5cd8 Fix bluy dark color scheme 2021-11-05 16:07:00 +01:00
Sergi Àlvarez i Capilla
bd0ba742c2 Make aaft a bit slower but safer 2021-11-05 15:31:27 +01:00
Sergi Àlvarez i Capilla
0833ffbd6d Fix last covs 2021-11-05 12:48:53 +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
Dennis Goodlett
7c27574b5c
Simplify deserialization of byte ##signatures
* New API to get fist hex bytes in str ##util
2021-11-05 10:13:56 +01:00
pancake
07a4b25adc Dont sync capstone all the time 2021-11-05 10:08:23 +01:00
pancake
020d2e01d4 Fix truncated string issue in the sixref plugin 2021-11-05 01:13:58 +01:00
Dennis Goodlett
f0ffdde6b6
Fix minor leak when adding vars (#19375) 2021-11-04 13:00:47 +01:00
condret
7a0412b743 Fix mapslit in r_io_map_add ##io 2021-11-03 17:55:39 +01:00
condret
44e3ff56ce Remove r_io_map_new from public API ##io 2021-11-03 17:55:39 +01:00
Dennis Goodlett
b00d8c6e0f
Add more information to var ##signatures 2021-11-03 12:59:06 +01:00
pancake
4de636fdc0 Fix #19178 - UAF in aaft when anal.detectwrites is enabled ##crash 2021-11-03 00:15:57 +01:00
pancake
0fa18220f3
Optimize 'aaft' command, still far from fully optimized ##anal
* aaa takes 1.8s instead of 2.1s in /bin/ls
2021-11-02 22:54:51 +01:00
Sergi Àlvarez i Capilla
c79a32b450 Indent fixes for anal.dwarf_process 2021-11-02 19:03:54 +01:00
Sergi Àlvarez i Capilla
13f9ca23a2 Check if ax[ft] argument is valid before showing xrefs to 0 ##anal 2021-11-02 19:03:45 +01:00
Sergi Àlvarez i Capilla
e8c96eabb3 Implement axtm, axfm and add helps for axf? and axt? ##anal 2021-11-02 19:03:45 +01:00
Sergi Àlvarez i Capilla
49cdf48c37 Use r_str_ndup in another bound check in dwarf ##bin 2021-11-02 18:44:08 +01:00
Sergi Àlvarez i Capilla
e736c85478 Fix assert in asan test shortening the path when corrupted dwarfs 2021-11-02 16:43:41 +01:00
Sergi Àlvarez i Capilla
046fcdb97c Fix #19327 - Comment dead code to fix a warning 2021-11-02 15:15:34 +01:00
Sergi Àlvarez i Capilla
0f743e088d Fix DWARF unit tests 2021-11-02 14:56:38 +01:00
Sergi Àlvarez i Capilla
7c3e4a6137 Fix null esil issues on avr without aeim 2021-11-02 12:23:38 +01:00
Sergi Àlvarez i Capilla
d896c81566 Fix assert spotted in the asan ci for aao 2021-11-02 12:20:08 +01:00
pancake
67b97621d1
Wrong bounds initializing dwarf dies (tests_64901) ##crash
Reported by giantbranch of NSFOCUS TIANJI Lab
2021-11-02 11:58:25 +01:00
pancake
f209fcb903
Improve debug message when misleading a function name ##anal 2021-11-02 11:48:28 +01:00
Dennis Goodlett
5be4f6c092
Add serialization API for vars ##anal 2021-11-02 11:04:35 +01:00
junchao-loongson
22aaab56ed
Remove useless signal definition erroring on MIPS platform (#19357) 2021-11-02 09:08:13 +01:00
pancake
652497ad0d
Fix oobread in z80 disassembler (tests_65081) ##crash
Reported by giantbranch of NSFOCUS TIANJI Lab
2021-11-02 07:52:10 +01:00
pancake
c344c8a662
Fix oobread crash in the ELF parser (tests_64931) ##crash
Reported by giantbranch of NSFOCUS TIANJI Lab
2021-11-02 01:04:13 +01:00
pancake
4e9e95fc69
Fix oobread crash in DWARF's parse_die (tests_64926) ##crash
Reported by giantbranch of NSFOCUS TIANJI Lab
2021-11-02 00:56:12 +01:00
pancake
467ca68d48
Save and check the reg arena size when peekpoking (Fix tests_64923) ##crash 2021-11-01 22:38:53 +01:00
Sergi Àlvarez i Capilla
d8cf7cfa02 Fix r_buf lifecycle in mdmp 2021-11-01 22:21:53 +01:00
rhl120
41d07dc27a Write r_vc_checkout in terms of r_vc_reset to make it shorter 2021-11-01 15:18:57 +01:00
Sergi Àlvarez i Capilla
0f656c90a4 Fix oobread crash in DWARF parser (tests_64922) ##crash
Reported by giantbranch of NSFOCUS TIANJI Lab
2021-11-01 10:35:33 +01:00
RHL120
3247b917e2
Use r_file_new in rvc.c (#19346) 2021-11-01 08:44:49 +01:00
Sergi Àlvarez i Capilla
03322e7614 Fix oobread crash in dwarf parser with non-null terminated strings ##crash 2021-11-01 08:43:44 +01:00
Sergi Àlvarez i Capilla
637f4bd1af Fix oobread crash in DWARF parser (tests_64924) ##crash
Reported by giantbranch of NSFOCUS TIANJI Lab
2021-11-01 00:49:50 +01:00
Sergi Àlvarez i Capilla
0f770102a5 Fix crash when elf symbol initialization fails ##bin
Reported by giantbranch of NSFOCUS TIANJI Lab
2021-10-30 16:53:20 +02:00
Sergi Àlvarez i Capilla
4aff1bb002 Fix oobread crash in the analysis loop with corrupted ELFs (tests_64928) ##crash
Reported by giantbranch of NSFOCUS TIANJI Lab
2021-10-30 14:11:29 +02:00
Sergi Àlvarez i Capilla
59a9dfb60a Fix uaf crash in aaft (tests_64927) ##crash
Reported by giantbranch of NSFOCUS TIANJI Lab
2021-10-30 14:11:29 +02:00
Sergi Àlvarez i Capilla
65448811e5 Fix UAF in aaft (tests_64923) ##crash
Reported by giantbranch of NSFOCUS TIANJI Lab
2021-10-30 12:09:00 +02:00
Sergi Àlvarez i Capilla
49b0cebfdf Fix oobread in VAX disassembler (tests_64920) ##crash
Reported by giantbranch of NSFOCUS TIANJI Lab
2021-10-30 12:09:00 +02:00
Sergi Àlvarez i Capilla
027cd9b727 Fix oobread crash in RAnal.hexagon (tests_64900) ##crash
Reported by giantbranch of NSFOCUS TIANJI Lab
2021-10-30 12:09:00 +02:00
RHL120
47ea6216ea
Add a clone command ##rvc 2021-10-30 09:35:43 +02:00
Sergi Àlvarez i Capilla
e1e6f3c754 Fix some warnings 2021-10-29 12:37:35 +02:00
pancake
6871d2178f free/fini methods should return void ##refactor 2021-10-29 12:20:24 +02:00
pancake
8a388f9f3e Dont loose scroll position when selecting new panels ##visual 2021-10-29 12:08:54 +02:00
Francesco Tamagni
bf3dd3ce15 Always init Mach-O options with defaults ##bin 2021-10-29 12:02:57 +02:00
condret
86d94018a1 Free maps on r_io_maps_fini ##io 2021-10-29 00:57:06 +02:00
condret
df66f72592 Remove RContRBTree API 2021-10-28 19:48:46 +02:00
condret
cbc017310c Use new rbtree API in esil_cfg 2021-10-28 19:48:46 +02:00
pancake
9539aa12f4 Fix buffer overflow in RConsPixel API affecting the braile renderer ##cons 2021-10-28 17:34:11 +02:00
Sergi Àlvarez i Capilla
db31f5539e Implement the 'nostr' filter query operation in RTable 2021-10-28 13:16:12 +02:00
Sergi Àlvarez i Capilla
55dfb5cae8 Fix metadata for some asm/anal ARM plugins 2021-10-28 13:16:12 +02:00
Francesco Tamagni
09e20cd53d
Add Support For dyld4 Atlas-style Shared Library Caches ##bin
* Fix signed overflow in r_buf_fread_at ##util
* Tweak "malformed export trie" debug logs
2021-10-28 12:46:38 +02:00
pancake
c90696c089
Random code cleanup in RCore 2021-10-28 12:19:02 +02:00
condret
ce75aeb287 Kill esil [], []= and related operations ##esil 2021-10-27 18:18:26 +02:00