Commit Graph

12588 Commits

Author SHA1 Message Date
Rene Laemmert
f355ad66a1 honor retn <num> in esil x86 cs (#7457) 2017-05-09 12:43:58 +02:00
pancake
6a9579097c Fix anal.timeout description 2017-05-09 11:09:11 +02:00
pancake
0b4e63c732 Support Java_*_init pattern for JNI libs 2017-05-09 04:09:27 +02:00
pancake
6f6c0db635 Do not use dynamic size arrays in stack. Fix crash in DEX 2017-05-09 04:01:06 +02:00
pancake
e0ea16c394 Honor cfg.log for analysis metadata (CC, ...) 2017-05-09 03:38:29 +02:00
pancake
c4b6da3eaa Support -e -s in #!vala 2017-05-09 03:22:47 +02:00
pancake
d7c2c717ea Fix deadlock in r_core_cmd spawned from V@ 2017-05-09 03:06:50 +02:00
pancake
d97c6fb7f5 Implement cfg.log and cmd.log 2017-05-09 02:58:39 +02:00
pancake
31468882cc Add support for #!python -e and other rlang plugins 2017-05-09 02:42:51 +02:00
pancake
50b798c837 Fix mingw32 build 2017-05-09 02:42:16 +02:00
pancake
4846d210e2 Fix cmd_log tests T command 2017-05-09 02:10:28 +02:00
alvarofe
1a67862a1f Refix oob in r_asn1.c 2017-05-09 01:35:29 +02:00
Khairul Azhar Kasmiran
3f506e0881 Fixed asm.cmtcol's off-by-one (#7452)
* Fixed asm.cmtcol's off-by-one

* Added a space
2017-05-08 20:21:56 +02:00
Marc
8bd2882979 Fix #7376 - segfault in dex (thanks to @marcograss for reporting) 2017-05-08 20:21:06 +02:00
soez
22c220c3e2 Update global_max_fast for dmh 2017-05-08 17:19:53 +02:00
radare
36dc6351cc Merge tms320c64x plugins into tms320, use e asm.cpu=c64x 2017-05-08 10:35:32 +02:00
radare
3ae837aa89 Identify Rust main symbol on mach0 (#7448) 2017-05-08 09:49:43 +02:00
radare
08429062f2 Fix inPLT check for function analysis 2017-05-08 03:51:36 +02:00
Srimanta Barua
a4d4002ce0 Reorganized shlr/gdb in preparation for gdbserver 2017-05-07 11:53:17 +02:00
Raúl Peñacoba
90938f9a73 Add missing free() in regcomp.c 2017-05-07 11:52:47 +02:00
Tzaoh
9a7415af04 Fix #7421 - Implementing px0 2017-05-07 11:51:58 +02:00
alvarofe
85d0513474 Avoid leak memory in r_asn1.c 2017-05-06 23:28:10 +02:00
alvarofe
a71a41bd5f Fix oob read in r_asn1.c
Variable used as length delemiter was user controlled producing oob
2017-05-06 23:23:21 +02:00
alvarofe
4e19275c1a Fix minor warnings while compiling 2017-05-06 22:56:50 +02:00
Raúl Peñacoba
1409a1e3c6 Add missing free() in cmd_anal.c (#7433) 2017-05-06 19:17:06 +02:00
Khairul Azhar Kasmiran
c64f560d9a Aligned callee info cmts (#7424) 2017-05-06 09:27:21 +02:00
Emily Bragg
da4aa29a8f errant 'break' was causing documentation never to be printed for afi (#7426) 2017-05-06 09:26:42 +02:00
Christopher Hewitt
aade860cc9 Reorder includes to provide missing BIGNUM definition (#7425) 2017-05-06 00:04:09 +02:00
Francesco Tamagni
7f345ab70b Fix arm64 ESIL: pass the correct param to arm64_reg_width (#7423) 2017-05-06 00:03:58 +02:00
pancake
64a0814180 Refix asm.bbline. thx @ret2libc for spotting it 2017-05-05 14:53:19 +02:00
pancake
d0d235423a Remove asm.spacy and integrate the logic into asm.bbline when no fcn is found 2017-05-05 12:48:52 +02:00
pancake
add5b90598 Add runmeson.bat for windows builds 2017-05-05 02:49:29 +02:00
qrux0
d9cad2220b Fix #7338 - afll? should explain the header abbreviations 2017-05-05 02:13:20 +02:00
pancake
4204fecce8 Fix #7406 - do not relsub on reg*x+base expressions 2017-05-05 02:11:02 +02:00
mrmacete
031e7a36dd Add internal flags setting for esil_sub 2017-05-05 00:51:22 +02:00
pancake
bf6965dbcb Fix null deref in r_str_const 2017-05-05 00:48:09 +02:00
pancake
0ac3477662 Use r_str_const to avoid dangling calling conventions in fcn->cc 2017-05-04 14:52:43 +02:00
Sven Steinbauer
028878f87a add thumb lsr op 2017-05-04 12:59:01 +02:00
h4ng3r
905cb24851 Fix some heap overflows in DEX 2017-05-03 22:04:13 +02:00
mrmacete
4e3936cb37 Fix: avoid modifying symbol names in bin/filter
- the duplication count is stored in RBinSymbol and used when emitting flags
- for class method names this duplication count is ignored, since the flag generation already prepends the class name to account for uniqueness
- bring back the duplication count for obj. / loc. / sym. flags and in is*
- in all other places (lists, midflags, ic, etc) the "real" names are shown instead
2017-05-03 14:28:48 +02:00
Anton Kochkov
9e1b757abb ARM64 - fix ESIL pstate flags 2017-05-03 11:34:38 +02:00
pancake
204da24d0e Integrate pss into the visual mode 2017-05-03 03:23:05 +02:00
pancake
5e641b2d68 Implement pss command to use it in cmd.visual or broken terminals 2017-05-03 03:05:01 +02:00
pancake
1707d0115c Honor cmd.visual in Visual title 2017-05-03 02:54:31 +02:00
pancake
2e774b50f6 Reduce false positives in strings. Maybe we should raise bin.minstr to 5 2017-05-02 22:49:02 +02:00
rene
d15e2d2a63 fixes segfault in aetr 2017-05-02 17:43:37 +02:00
Anton Kochkov
7c96bca809 ARM64: Fix ESIL of CMP 2017-05-02 15:19:50 +02:00
Anton Kochkov
2417833058 ARM64 ESIL - fix post-index STP/LDP 2017-05-02 15:19:50 +02:00
Sven Steinbauer
35dd3df74d Add mov.w thumb instruction (#7397)
FIX #7387
2017-05-02 15:19:15 +02:00
Khairul Azhar Kasmiran
082f58a6a5 Show refaddr only once in cmts (#7398) 2017-05-02 15:18:59 +02:00
pancake
3e0c7bc650 Support meson build for Linux (Requires meson 0.40) 2017-05-02 14:18:36 +02:00
pancake
60f9667654 Remove support for bjam build system
- Delete all Jamroot files
2017-05-02 05:48:40 +02:00
yetmorecode
1fc8a829b3 Added fss, fssj and fss* ans some minor improvements in fs (#7392) 2017-05-02 05:46:43 +02:00
Francesco Tamagni
e9b402b7f2 Add class name argument to ic 2017-05-02 05:44:46 +02:00
pancake
fa0409dab7 Fix crash in signatures and minor fix for meson 2017-05-02 05:43:44 +02:00
pancake
8edc242324 Remove judy and libzip unused code 2017-05-02 05:34:05 +02:00
pancake
fa671b9a16 Initial support for the Meson build system
- Integrated with current ACR
- Fix some stale fails got removed
2017-05-02 05:05:36 +02:00
yetmorecode
8c78bfa8c0 Export size field as long instead of string in fj (#7388) 2017-05-01 16:50:38 +02:00
pancake
773c0e122c Fix last cov 2017-05-01 15:59:24 +02:00
yetmorecode
344bdd0df6 Added size and machine where missing in iAj (#7384) 2017-05-01 14:11:24 +02:00
pancake
1d9a571fdd Remove dead code and fix ij on dex 2017-05-01 14:04:11 +02:00
Khairul Azhar Kasmiran
eff7cdb29c Put flag cmt first and show it only once (#7386) 2017-05-01 10:49:41 +02:00
pancake
7726cdb5ca Honor class/methods and flags to name functions 2017-05-01 03:56:01 +02:00
pancake
6fe53c4908 Load methods as flags when loading the bin 2017-05-01 03:55:43 +02:00
yetmorecode
56704cec34 Followup changes in cconfig.c to utilize SETOPTIONS for config nodes (#7377)
* Not printing config description in 'e var=?'
* Added ?? option to config nodes and multiple style fixes
2017-04-30 19:35:14 +02:00
Khairul Azhar Kasmiran
282956bded Align fcn name cmts (#7382) 2017-04-30 13:53:26 +02:00
Andry
8ff25b906d afll sorting fix (#7378 fix) (#7381) 2017-04-30 13:51:53 +02:00
Khairul Azhar Kasmiran
d2fd4c6727 Make push cmt a true cmt (#7379) 2017-04-29 14:54:28 +02:00
pancake
9d83647047 Aim to fix eco cga on windows 2017-04-28 23:01:37 +02:00
Khairul Azhar Kasmiran
2ca1f07052 Don't repeat flag in comment if already in disasm (CALL/MOV) (#7375) 2017-04-28 18:27:56 +02:00
pancake
71dc5b0588 Fix z regression introduced after refactoring 2017-04-28 17:16:45 +02:00
pancake
96cae18de6 Update to sdb-0.12 fixing some mem issues 2017-04-28 14:48:01 +02:00
pancake
c91339830e Initial implementation of dir.zigns and honor in zo 2017-04-28 14:37:30 +02:00
pancake
b3850be217 Lot of null derefs fixes in signatures and crypto
- Remove \r from crypto_des
- Initial work towards dir.zigns
2017-04-28 14:37:28 +02:00
Francesco Tamagni
ab7f7c9c3d Improve ESIL for arm64
- add implementations for MSUB, BFI, NEG
- fix BLR implementation
- move "tmp" register to avoid overlapping "sp" in register profile
2017-04-28 13:20:02 +02:00
radare
fae079d20c Set asm.midflags=2 by default
- Filter flags starting by hit or $
2017-04-28 05:50:04 +02:00
Marq Schneider
183938ef19 Add MIPS branch likely variants to MIPS CS analysis 2017-04-28 02:20:11 +02:00
yetmorecode
0a3d2ad085 Fixed regression in e* 2017-04-28 02:07:32 +02:00
yetmorecode
1ee1a3550e Added more JSON escaping 2017-04-28 02:07:32 +02:00
yetmorecode
3bcd98bb4f Added SETOPTIONS to cconfig.c and multiple style fixes 2017-04-28 02:07:32 +02:00
yetmorecode
ca56112550 Added ev and evj command 2017-04-28 02:07:32 +02:00
mrmacete
5398cc78f8 Fix arm64 movz and movk ESIL 2017-04-28 02:06:10 +02:00
pancake
96a6bd7d8f Update SDB from git fixing several vulns 2017-04-28 02:04:18 +02:00
alvarofe
884fb911ae Fix redirection to std[io|out|err] in rarun for mac 2017-04-28 00:18:45 +02:00
pancake
0072e0c0b7 More fixes for ASR/SAR on 32/64bit for x86, test against arm and thumb 2017-04-27 17:08:20 +02:00
pancake
23cba998d0 Refixes for >>>> on arm32 2017-04-27 16:46:24 +02:00
pancake
838b87f47e Fix >>>> and >>>>= esil instructions for 32bit 2017-04-27 15:29:44 +02:00
pancake
b3f7277ec6 Fix #7364 - uaf in pdi with ahi 2 on 48b96e74646c6c2e646c for x86 2017-04-27 15:18:49 +02:00
Giovanni
883422082d Fix PowerPC's SUBF esil and parse 2017-04-27 14:55:22 +02:00
pancake
51aaf24dc1 Implement >>>>= and fix SAR and SARX instructions for x86.cs 2017-04-27 14:28:56 +02:00
pancake
8435ac74f0 Disable callgraph access from visual graph to avoid slow interaction 2017-04-27 12:59:52 +02:00
Raúl Peñacoba
cce719a5af Fix conditional in str.c 2017-04-27 12:29:38 +02:00
mrmacete
64bed16da2 Add arm64 cset, cinc ESIL. Fix cmp, csel. 2017-04-27 12:08:22 +08:00
pancake
835319ae8f Delete temporary rarun2 profile when using r2 -X 2017-04-27 00:04:28 +00:00
pancake
02398e1e17 Implement r2 -X to specify custom rarun2 directives 2017-04-26 19:35:37 +02:00
Boris
d52ebcc386 Fix for pdi with ahi=2
* r_parse_filter works incorectly with already escaped buffer
* r_core_disasm_pdi refactoring
2017-04-26 19:07:11 +02:00
pancake
89620af34f Fix double free regression and realloc memleak 2017-04-26 17:06:30 +02:00
pancake
b282656bbb Improve error checking and fallback in the sandboxed http 2017-04-26 15:31:27 +02:00
pancake
a38eea5594 Revert "Fix #7315 - "ahi s" regression"
This reverts commit 47cd0577b2.
2017-04-26 15:30:44 +02:00
Giovanni
4a88e13e00 Add more standard SPR to pseudo for SPARC 2017-04-26 13:39:31 +02:00
pancake
82ad06df4b Fix afb and afb. inconsistencies 2017-04-26 13:37:31 +02:00
pachulo
47cd0577b2 Fix #7315 - "ahi s" regression
In radare/radare2@d9d83914 the fix for "r_parse_filter output for pc relative addrs when color is involved" broke the ahi command in some contexts.
2017-04-26 12:50:49 +02:00
Khairul Azhar Kasmiran
0f62a1d590 Fixed what caused #7315 (#7343)
* Fixed what caused #7315

* Minor formatting
2017-04-26 12:49:38 +02:00
0x0dada
92cde73473 Fix mode change to files ... (#7353) 2017-04-26 12:49:13 +02:00
pancake
5433af7cb0 Fix build and several queues covs from previous analysis 2017-04-26 12:47:27 +02:00
pancake
ff0d724c60 Fix latest covs from io 2017-04-26 11:33:26 +02:00
pancake
5270b781e7 Fix #7355 - json indent with color glitch 2017-04-26 11:21:52 +02:00
pancake
3c504de576 Do not format huge sections to avoid major pain in loading times 2017-04-25 18:28:04 +02:00
pancake
7d460bc3cf Fix build for old linuxes 2017-04-25 01:27:14 +02:00
pancake
e26ea1dbfb Fix msvc build of xtensa 2017-04-24 21:37:28 +02:00
condret
1ab91415e6 kill vio 2017-04-24 19:45:33 +00:00
pancake
6db6c6c72f Support background color in rgb mode for scr.html 2017-04-24 04:08:57 +02:00
Khairul Azhar Kasmiran
aef667a738 Show string cmt even if \t, \r or \n at start (#7341) 2017-04-23 10:47:24 +02:00
Maijin
8e63cba29a izj Documentation Fix #7340 2017-04-21 21:43:26 +02:00
Anton Kochkov
ece6eebc5b ARM64: Fix STP and LDP ESIL representation 2017-04-21 22:38:28 +08:00
Khairul Azhar Kasmiran
05d0b1a2c7 Fixed what caused #7268 (#7325) 2017-04-21 12:53:28 +02:00
skuater
c6fe8ac4c9 fix Pl command on win64 2017-04-21 10:12:39 +02:00
Michael Scherer
a6bc8798e3 Use the defined structure for r_debug_plugin_t
This should change nothing, just bring some consistency in
the codebase with others debug plugins.
2017-04-21 00:51:14 +02:00
Michael Scherer
4bf871af36 Fix error message, since that's the rap plugin, not the GDB one 2017-04-20 23:25:38 +02:00
pancake
e5cfb20adb Fix undefined behaviour in mach0 section 2017-04-20 16:27:24 +02:00
Anton Kochkov
babfae501c ARM64: Add conditions for branching 2017-04-20 12:26:12 +02:00
Anton Kochkov
228457d738 ARM64: Fix Branch instructions ESIL 2017-04-19 22:06:06 +02:00
Anton Kochkov
390a4de2c2 ARM64: Add ROR esil 2017-04-19 22:06:06 +02:00
Anton Kochkov
5f4dfdf473 ARM64 - Add unsigned extension 2017-04-19 22:06:06 +02:00
Anton Kochkov
013b20e2a3 ARM64 - Add signed extension 2017-04-19 22:06:06 +02:00
Anton Kochkov
b99cb8c2b0 Fix #6358 - Add CDQE support (#7313) 2017-04-19 09:21:29 +02:00
alvarofe
40babe0459 Fix oob read with dbh- command 2017-04-18 19:07:14 +02:00
pancake
4b77cb2c36 Fix undefined behaviour introduced after fix in regression 2017-04-18 17:22:32 +02:00
pancake
3bb3d6a324 Use RCons.printf in RCons.history to make !~... work 2017-04-18 16:38:27 +02:00
pancake
e076734fb9 Fix #7307 - Remove harmless warnings reported by a Debian user 2017-04-18 16:22:06 +02:00
Sven Steinbauer
841707dffe Add more str* ops for arm assembler (#7306)
* strh
* strd
* strexd
* strexh
* strb
* strbt

FIX #7251
2017-04-18 15:39:25 +02:00
Álvaro Felipe Melchor
13c91127af Fix minor issues by clang-analyzer (#7303) 2017-04-18 14:03:42 +02:00
pancake
d1e8ac62c6 Fix null deref and uaf in mach0 parser 2017-04-18 13:37:33 +02:00
Sven Steinbauer
03f0ad4187 Fix #7299 - Fix handling and output for arm bic op (#7302) 2017-04-18 13:00:37 +02:00
pancake
076ab1a023 Get ready for 1.4.0 - codename: no comments 2017-04-18 11:11:36 +02:00
pancake
2f8d25286a Fix #7300 - null deref in armass for mrc 2017-04-18 11:30:37 +02:00
pancake
8c656231c1 Several bug fixes in the android build scripts and other candies 2017-04-18 11:25:26 +02:00
pancake
4a6e880dc7 Fix build 2017-04-18 01:39:56 +02:00
pancake
0cd468ada4 Fix warnings in bin.wasm 2017-04-18 01:30:39 +02:00
pancake
16c73edfa5 Fix 3 null derefs and two overflows in java 2017-04-18 01:16:07 +02:00
pancake
ffe0da0fa1 Fix many more clang-analyzer null derefs and overflows 2017-04-18 00:38:24 +02:00
alvarofe
9686de1404 Refactor r_reg_arena_push to remove dead code 2017-04-18 00:59:49 +02:00
Álvaro Felipe Melchor
c65ba95cb9 Fix #7257 - bad process set up when -R in xnu + minor refactor 2017-04-18 00:35:10 +02:00
Adrian Herrera
f35f4b04c6 Fix JSON printing of exports (#7297) 2017-04-18 00:34:14 +02:00
pancake
5e209ecc92 Initial implementation of the anal plug for tms320c64x 2017-04-18 00:08:13 +02:00
pancake
85d2225e8a Fix build with capstone3 (tms320c64x is not available) 2017-04-17 23:50:51 +02:00
pancake
54f6efddde Upgrade capstone-next to get tms320c64x support and more fixes for SFC 2017-04-17 23:37:04 +02:00
pancake
acc2f19831 Fixes for the sfc plugin 2017-04-17 23:20:25 +02:00
usr_share
6d9db7e891 Implemented a sort-of-working SNES/SFC file format 2017-04-17 23:14:42 +02:00
pancake
5fc6dc30a8 Fix build 2017-04-17 23:06:44 +02:00