Commit Graph

27577 Commits

Author SHA1 Message Date
pancake
691bdd0472 Initial implementation of the aavr command ##search
* Find relative references using Apple's Swift pointer mangling
* Add aav? help message
2022-03-27 12:23:58 +02:00
pancake
42d05b7bd1
Add support for parsing swift metadata from macho binaries ##bin
* __const section is formatted as dwords
* Fix swift5 symbol demangling on iOS / macOS
2022-03-27 11:13:07 +02:00
Sergi Àlvarez i Capilla
7a310d863f Add pfW for signed short format ##print 2022-03-26 12:26:40 +01:00
Sergi Àlvarez i Capilla
2bcfbd6aef Fix help message for pxd 2022-03-26 11:23:05 +01:00
pancake
3760bfcd8d
Add tests for the code tokenizer and fix <<= assignments ##util 2022-03-26 10:35:13 +01:00
pancake
83bfc83c9f
Add support for Visual Studio 2022 (community+enterprise) ##build
* add rule in the CI
2022-03-26 00:56:54 +01:00
max-lv
7043983bd2 Fix PPC ESIL of addis instruction ##esil 2022-03-25 23:01:26 +01:00
Sergi Àlvarez i Capilla
5abd6faf47 Fix undefined behaviour bugs in serpent crypto algorithm ##crypto 2022-03-25 22:14:18 +01:00
Sergi Àlvarez i Capilla
bbff894e22 Add rahash2 -J for simplified single object name=hash output ##tools 2022-03-25 22:14:18 +01:00
Sergi Àlvarez i Capilla
3c9bef2f29 Allow rahash2 -a to be passed multiple times ##tools 2022-03-25 22:14:18 +01:00
pancake
0fd97c27a7
Assume all machos are made by clang ##bin 2022-03-25 13:43:49 +01:00
Sergi Àlvarez i Capilla
b914887fcd Add missing r_util/r_token.h file for meson builds 2022-03-24 15:25:59 +01:00
pancake
467a2ecaab Run 'aap' before 'aae' on arm64 binaries in 'aaa' ##analysis
* No need for `aaaa` to get more functions and xrefs!
* aaef is executed instead of `aae`. so it will miss refs
2022-03-24 14:55:20 +01:00
Sergi Àlvarez i Capilla
6f644c307f Honor baddr=0 in RBin, as it's done for RIO ##bin 2022-03-24 10:18:52 +01:00
Sergi Àlvarez i Capilla
d4ce40b516 Fix oobread in symbols header parsing ##bin 2022-03-24 10:12:05 +01:00
Sergi Àlvarez i Capilla
9bcc98f4a6 Improve arc plugin description 2022-03-23 17:27:19 +01:00
Sergi Àlvarez i Capilla
7234cf5b8c Fix double-free in RCore.free 2022-03-23 15:46:49 +01:00
Sergi Àlvarez i Capilla
607134947e Honor esil.maxsteps in more commands and stop earlier when no =PC ##esil 2022-03-23 13:02:55 +01:00
Sergi Àlvarez i Capilla
969e1c141e Break emulation when register profiles don't provide enough info 2022-03-23 13:02:55 +01:00
Sergi Àlvarez i Capilla
4abf7bf9ba Add esil.maxsteps to avoid infinite emulation loops ##esil 2022-03-23 13:02:55 +01:00
Lazula
6c868bb010 Last improvements for this patch 2022-03-23 11:53:03 +01:00
Lazula
879fbbbb35 Improve flag autocompletion 2022-03-23 11:53:03 +01:00
Lazula
626fd46553 Improve file redirect autocompletion 2022-03-23 11:53:03 +01:00
Lazula
5d4f8f83ca Improve #! autocomplete when tabhelp is enabled 2022-03-23 11:53:03 +01:00
Sergi Àlvarez i Capilla
7412ed4869 After release version bump 2022-03-23 11:52:05 +01:00
Sergi Àlvarez i Capilla
50b8813f1d Fix w64blob artifact name for the release
* Fix meson -Dplugins=arm reg profile issue
* Fix an infinite loop when emulating with no valid regprofile
2022-03-22 20:06:43 +01:00
Sergi Àlvarez i Capilla
866a80ffbb Release 5.6.6 2022-03-22 17:42:38 +01:00
Sergi Àlvarez i Capilla
3c54a8d7a2 Publish r2blob-w64 on release and fix artifact name ##ci 2022-03-22 17:39:37 +01:00
pancake
0052500c1e
Fix heap OOB read in macho.iterate_chained_fixups ##crash
* Reported by peacock-doris via huntr.dev
* Reproducer 'tests_65305'

mrmacete:
* Return early if segs_count is 0
* Initialize segs_count also for reconstructed fixups

Co-authored-by: pancake <pancake@nopcode.org>
Co-authored-by: Francesco Tamagni <mrmacete@protonmail.ch>
2022-03-22 16:56:27 +01:00
aemmitt-ns
0be8f250c8
Add ESIL for x86 SSE float instructions ##esil 2022-03-22 15:47:18 +01:00
pancake
db253cab01 Fix #19833 - Fix asserts in aor 2022-03-22 14:56:02 +01:00
pancake
44b081b6a1 Fix back scrolling in the decompiler pane in panels ##visual
* Half revert b5311e975f
2022-03-22 12:38:14 +01:00
pancake
cdde8abf05 Add missing 'OK' in the preconfigure script 2022-03-22 12:21:39 +01:00
pancake
19ae07accf Implement 'aeb' using APIs instead of commands ##esil 2022-03-22 12:01:50 +01:00
pancake
c8ae21f68f
Only build library archives when -Dblob is provided ##build
* Lowers the amount of objects from 2400 to 1500
2022-03-22 11:59:13 +01:00
pancake
82794237d7
Update sdb and fix some more unused return value warnings 2022-03-22 11:12:43 +01:00
pancake
60182bb63a Add missing export cflags in sys/user 2022-03-22 09:44:10 +01:00
pancake
801dd326a0 Remove the hexagon from anal ##analysis
* Too large (2.2MB) and too slow to build, time explosion with -O2
* It's outdated and not maintained, better use r2ghidra one
* Move this code into extras (or the updated one)
* Still available via r2pm
2022-03-22 01:04:34 +01:00
Lazula
ea207c528e Fix dxr and use it in dd 2022-03-21 23:40:27 +01:00
pancake
3d572e31cc printf => echo 2022-03-21 19:01:03 +01:00
pancake
a7ce29647f Fix UAF in aaaa on arm/thumb switching ##crash
* Reported by @peacock-doris via huntr.dev
* Reproducer tests_65185
* This is a logic fix, but not the fully safe as changes in the code
  can result on UAF again, to properly protect r2 from crashing we
  need to break the ABI and add refcounting to RRegItem, which can't
  happen in 5.6.x because of abi-compat rules
2022-03-21 18:46:53 +01:00
pancake
d22d160c45 Fix minor memleak in pf 2022-03-21 17:57:07 +01:00
pancake
dc3e8fff06 Fix signed shift bug (UB) in dalvik analysis plugin 2022-03-21 17:14:59 +01:00
pancake
41d1926923
Save sp,bp,src,dst in heap outside the loop ##anal (#19848)
* Fix an UAF on thumb/arm analysis, but there's still another one more problematic
2022-03-21 17:03:57 +01:00
pancake
ad2df6a14c Fix undefined behaviour in RVector, RPVector, RInterval and container_of ##fix
* All those basic primites were based on wrong assumptions
* Added more return_if preconditions on several anal functions
2022-03-21 12:04:14 +01:00
pancake
69815e22e4
Fix #19838 - Show pins in the disassembly as comments ##disasm 2022-03-20 10:49:53 +01:00
pancake
f69c5824a1 Use R0 instead of A0 in the ret0 pin 2022-03-20 10:28:29 +01:00
Lazula
e85ad664a6 Remove unused update variable in __print__decompiler_cb() 2022-03-19 04:05:44 -05:00
Sergi Àlvarez i Capilla
8a68ef26d4 Fix last memleaks spotted by coverity scan 2022-03-18 16:39:06 +01:00
Sergi Àlvarez i Capilla
c7ef0af76a Improve panels prompt drawing the bottom box line one line above ##visual 2022-03-18 16:35:38 +01:00