Commit Graph

12873 Commits

Author SHA1 Message Date
Srimanta Barua
06aae3080e Added kill signal for gdb client 2017-05-25 15:41:07 +02:00
armijnhemel
12275461d0 Set flag to also demangle flags 2017-05-25 15:40:50 +02:00
pancake
582863189d Update sdb from git 2017-05-25 15:14:23 +02:00
pancake
3a262ba5d7 Fix file containing (null) issue in dwarf 2017-05-25 15:14:18 +02:00
Ren Kimura
83dadbc9aa Clean up snap code. (#7592)
* Clean up snap code.

* Add malloc checks
2017-05-25 13:48:36 +02:00
Giovanni
715884816d improvements of asm.pseudo for x86 (jmp,test,cmp,etc..) (#7589)
* improvements of asm.pseudo for x86 (jmp,test,cmp,etc..)
* jne/jeq optimized and fixed swap
2017-05-25 01:09:34 +02:00
Giovanni
1602fa8025 Now working PPC pblr and fixed b/bc jumps (#7588) 2017-05-24 16:31:07 +02:00
pancake
c086364c4a Fix infinite loop in p- with r2 -- 2017-05-24 13:48:09 +02:00
pancake
e0d116780c Fix possible null deref in nro 2017-05-24 13:09:20 +02:00
Ren Kimura
31ab3c998f Fix #7585 - Compile warnings 2017-05-24 12:17:45 +02:00
Ayman Khamouma
29aae4dd9b Fix multiple plugins loading support (#7584) 2017-05-24 12:17:20 +02:00
Ayman Khamouma
14f93d72d9 temporarly only check handler when using it (#7583) 2017-05-24 00:33:43 +02:00
pancake
4bd1d0d9cd Introduce the anal->cmdtail and enhance anal.jmptbl with it
* Reduce false positives of switch tables detection
* Add flags for the jmptable, the cases and the bb using it
* cmdtail introduces some recursivity problems that may be fixed using the api more c
* Increased CMD DEPTH from 10 to 100
2017-05-23 23:55:22 +02:00
pancake
1661a3d39d Optimize asm.slow with bin.relocs 2017-05-23 23:54:11 +02:00
Stanisław Drozd
6be7cc1f90 Fix a simple bug in r2pm; make r_bin_get_size() behavior more intuitive (#7582)
* r2pm: remove "set -e" to fix the later gmake check
* bin.c: return 0 on missing object in r_bin_get_size()

When running "radare2 --", commands like iZ  would normally print
UT64_MAX (0xfff... or -1) when o is NULL, which seems misleading.
Besides, the function's return value is unsigned anyway.
2017-05-23 23:00:33 +02:00
Ren Kimura
d3f5773219 Add new trace session format 2017-05-23 19:37:11 +02:00
pancake
2e8be3913d Fix #7569 - Show comments in pxa too 2017-05-23 15:53:58 +02:00
pancake
079fb3e379 Fix #7559 - Fix possible null deref in r_lib_open_ptr 2017-05-23 15:26:17 +02:00
Ayman Khamouma
49d56a8a4c Add drlj subcommand (#7557) 2017-05-23 14:18:35 +02:00
pancake
b717ce05fc Add p==? and honor colors in p== 2017-05-23 13:38:19 +02:00
Giovanni
2a5731c857 fixed pdc mistake (#7576) 2017-05-23 12:49:56 +02:00
pancake
da72aa7b88 Fix uaf in dp- 2017-05-23 12:26:21 +02:00
pancake
9e19118eff Fix latest covs 2017-05-23 11:24:04 +02:00
Raúl Peñacoba
5fa1013a4f bin_sfc.c: fix NULL dereference when R_NEW0 fails (#7548)
* bin_sfc.c: fix NULL dereference when R_NEW0 fails

* Update bin_sfc.c
2017-05-23 11:12:49 +02:00
Ayman Khamouma
ce99a1123c Check file provided before performing any operation on oc command - #7539 (#7564) 2017-05-23 11:11:59 +02:00
Rene Laemmert
c5c2168c32 honor noreturn in aab and removed non exact cases from aab (#7575) 2017-05-23 10:13:51 +02:00
pancake
f8fc38710f Load .py, .js and .lua at startup time 2017-05-23 04:12:13 +02:00
Marc
ae1aef88b9 Add align info in payloads #7376 (#7574) 2017-05-23 03:01:45 +02:00
pancake
c506c8ebd7 Fix help messages in eco white 2017-05-23 03:00:21 +02:00
Srimanta Barua
d3958f00e4 Initial stub for gdbserver support
* Renaming functions, reorganizing code, adding temporary hack for closing gdbserver
2017-05-22 19:37:48 +02:00
pancake
747b30b428 Fix dmi and its help 2017-05-22 15:24:28 +02:00
Ayman Khamouma
9ae1526bbb Fix remaining glitches with recursive help #7528 (#7562) 2017-05-22 02:54:26 +02:00
pancake
7c7a151a2c Make anal.strings unset bin.strings and run aar, fix zoom.byte=? 2017-05-22 02:27:33 +02:00
pancake
f5ec70a8f1 Fix help for /A 2017-05-22 01:08:54 +02:00
pancake
74971add35 Honor MMX and SSE op.family for x86.cs 2017-05-22 00:56:24 +02:00
armijnhemel
114b266830 fix binding reporting for WEAK symbols (#7555) 2017-05-21 22:04:35 +02:00
pancake
0c6cd8cbc8 Better white theme for calls 2017-05-21 03:33:03 +02:00
Xiangyu Zhu
ad2cf6e58b bug in varsub in att syntax (#7552)
Sorry I only considered the case where a minus sign is before `oldstr`, actually this should be the correct way to handle that so arguments like `8(%rbp)` and `28(%rbp)` will work too.
2017-05-21 03:05:06 +02:00
pancake
df2015e64c Fix some covs memleaks in anal/sign 2017-05-20 23:35:49 +02:00
SkUaTeR
75626dde48 Implemented SAR using new esil command REPEAT (#7542) 2017-05-20 22:15:08 +02:00
Antonio Sánchez
3f8dee8113 Fix #7545 - Miss misspelled word in wtf! 2017-05-20 17:31:47 +02:00
pancake
238c10788f Fix #7541 and #4766 - Implement search.in=dbg.program and dbg.trace.libs 2017-05-20 15:03:17 +02:00
pancake
70852bb66f Remove | in asm.bbline and fix some glitches when no analysis found 2017-05-20 14:38:03 +02:00
Frefreak
642062d58e refine asm.varsub for att syntax and code refactoring (#7538) 2017-05-20 13:53:24 +02:00
Simone Ferrini
2a573ac402 Fix #7527 - read block after s- and s+ 2017-05-20 13:23:46 +02:00
Simone Ferrini
71de3c477d [dietline] Fixed command history regression (#7535) 2017-05-20 12:40:43 +02:00
Ren Kimura
de259c83d1 Add diff-style memory snapshot 2017-05-20 12:37:45 +02:00
pancake
815b9c0171 Copypaste z80 regprofile from gb 2017-05-20 12:16:02 +02:00
pancake
cdade1c93d Implement the new REPEAT keyword for ESIL 2017-05-20 00:18:57 +02:00
pancake
71dd42525b Fix #7505 - Make clear that we dont do anything with that node 2017-05-19 13:48:24 +02:00
pancake
10cae38182 Fix #7506 - Fix load_bytes for NRO 2017-05-19 13:46:58 +02:00
pancake
2d2ddf9594 Fix last covs 2017-05-19 13:43:33 +02:00
Tobias Gross
a4b311ebac Fix lea instruction not displayed right (#7529) 2017-05-19 13:32:03 +02:00
pancake
cce6265fcb Do not reload relocs on every pd with bin.relocs 2017-05-19 12:43:12 +02:00
pancake
1e89a9a5d6 Fix #7510 - debugging in mac hides the output 2017-05-19 00:39:33 +02:00
Ayman Khamouma
e02ecd426a Fix #7509 - update blocksize when calling r_core_print_disasm_instructions with nb_bytes parameter (#7526) 2017-05-19 00:36:18 +02:00
Ayman Khamouma
a9a0c7e385 Fix #7524 - Fix help messages for recursive help parser (#7525) 2017-05-18 23:13:18 +02:00
pancake
d1e1524bc2 Fix #7470 - No more infinite loops in pdR 2017-05-18 22:54:54 +02:00
xarkes
ccc39a88cf Added .appveyor.yml to the repo and better config (#7474) 2017-05-18 16:50:52 +02:00
Rene Laemmert
894d083127 avoid setting the value if the node-value is the exact same pointer (#7520) 2017-05-18 16:33:48 +02:00
Simone Ferrini
dc669f165b [linux_heap_glibc] Implemented dynamic global_max_fast resolution (#7512) 2017-05-18 11:56:06 +02:00
pancake
792d2e2ff2 Honor color palette in pxa 2017-05-18 11:43:26 +02:00
pancake
98f03c1ff0 Fix varsub regression on intel syntax 2017-05-18 02:11:49 +02:00
pancake
8926ef0e6b Support r2 -B for NES roms 2017-05-18 01:34:14 +02:00
pancake
21aa34726e Fix #7516 - Honor asm.syntax=att for x86 varsub and relsub 2017-05-18 01:01:34 +02:00
pancake
a4a27b64cf Set all ec keys in the cga theme 2017-05-18 00:06:15 +02:00
pancake
0668d04488 Honor color theme in p=, add palette rainbow primitives in RCons 2017-05-18 00:01:16 +02:00
pancake
6111637a66 Fix stack overflow in a race condition inside V@ 2017-05-17 23:48:05 +02:00
SkUaTeR
66628139d1 Add changes to compile more plugins with MSVC 2017-05-17 23:42:22 +02:00
pancake
0f6d3bad92 Add bin.relocs config var 2017-05-17 22:01:27 +02:00
Ayman Khamouma
a68254d76a add pib command for basic block level disassembly (#7508) 2017-05-17 08:28:57 +02:00
Frefreak
1ac364b056 Fixes RBin issues in ood 2017-05-16 15:52:28 +02:00
pancake
ff38defb1a Initial implementation of the flame column graphs in p== 2017-05-16 03:09:06 +02:00
Andry
a0d25a79e4 Fix #7356 - i~{} messes up the thing (#7385) 2017-05-15 22:32:46 +02:00
Giovanni
07ba47823b Remove annoying print 2017-05-15 22:32:17 +02:00
pancake
cda2454011 Fix #7498 - use after free in zignatures 2017-05-15 22:10:47 +02:00
pancake
ec9967e684 Remove unused variable in gnu arm disassembler 2017-05-15 22:06:56 +02:00
Giovanni
e9d22a4e15 pdc improvements (still not perfect) 2017-05-15 21:56:46 +02:00
alvarofe
9f8a1586e8 Fix memleak in resource code 2017-05-15 18:34:54 +02:00
alvarofe
c80221d0c9 Fix mapping when imageBase is greater than bin->size PE 2017-05-15 18:26:00 +02:00
Khairul Azhar Kasmiran
8bb1b9674c Fixed signed char right shift in r_str_escape_ (#7497) 2017-05-15 17:13:32 +02:00
pancake
72433d1465 Add support for setend ARM instruction 2017-05-15 16:53:08 +02:00
pancake
8ccedf3973 Add workaround for a pdf fix 2017-05-15 14:40:43 +02:00
pancake
03275401c9 Fix #7473 - pdf boundaries 2017-05-15 13:02:56 +02:00
pancake
f5948a9124 Fix #7495 - Avoid always-false conditionals 2017-05-15 12:53:05 +02:00
soez
edba3d11f0 Fix max_global_fast again 2017-05-15 12:05:44 +02:00
alvarofe
d74ff6bac1 Fix mem leak in resourece pe 2017-05-15 10:34:19 +02:00
pancake
4e8e66a6cc Show offset in psb and add psbq to only print strings 2017-05-15 01:28:28 +02:00
pancake
0361dd09cb Fixes for the readme, and properly setup capstone for meson 2017-05-15 01:17:29 +02:00
Álvaro Felipe Melchor
99c90aad56 Add resource support into radare for PE files 2017-05-15 01:00:49 +02:00
Florian Märkl
6e1595d513 Set prj.name before saving a project to save that value correctly (#7485) 2017-05-14 23:17:37 +02:00
Adrian Herrera
c7cc81e197 Add S.j command to print current section in JSON (#7490) 2017-05-14 23:16:35 +02:00
pancake
478095b6e8 Fix meson build on macOS 2017-05-14 23:15:07 +02:00
SkUaTeR
9a1337512a meson.build fixes to build with MSVC 2017-05-14 23:06:00 +02:00
pancake
2b4ef99e94 Fix history up issue reported by @jduck 2017-05-14 22:59:02 +02:00
pancake
9c356a9448 Fix #7492 - Properly Handle x/ argument as address 2017-05-14 22:36:06 +02:00
Khairul Azhar Kasmiran
a4ab7cdcda Use r_str_escape for str flag cmts (#7483)
* Using r_str_escape for str flag cmts

* Escape '"' and '\'

* Escape ESC

* Properly escape Windows UTF-16 2-byte chars
2017-05-14 09:50:01 +02:00
Adrian Herrera
b0b1c7ff05 print empty json list when there are no xrefs (#7487) 2017-05-13 22:38:34 +02:00
pancake
ea2751993f Show all flags in data refs, not just the first one 2017-05-13 19:38:14 +02:00
pancake
02a905c5a4 Fix build on respectful compilers 2017-05-13 18:34:10 +02:00
pancake
6756662d3a Implement pxj, p8j, pxwj, pxhj and pxqj 2017-05-13 18:27:55 +02:00
pancake
1f34e3f450 Identify main for ELF arm64 binaries (tested on ubuntu-pinebook) 2017-05-13 17:38:53 +02:00
alvarofe
27282d50cb Use of r_read_ble32 to detect main in pe 2017-05-13 13:17:11 +02:00
pancake
7f7df81926 Fix memleak in PE entrypoint detection 2017-05-13 12:47:12 +02:00
pancake
842623c028 Enhance @@ foreach operator 2017-05-13 12:41:30 +02:00
pancake
02fa7b92e1 Enhance the white color theme 2017-05-13 05:28:30 +02:00
pancake
8c49c29900 Aim to fix va_copy issue in rcons 2017-05-13 03:35:01 +02:00
pancake
487cf1d703 Fix those aarch64 warnings 2017-05-13 03:00:39 +02:00
pancake
4d41c69742 Fix for @@c:/c to be compatible with @@/c 2017-05-13 02:35:31 +02:00
pancake
e1253e0efb Fix #7480 - do not create dirty files on project load 2017-05-13 02:20:06 +02:00
pancake
6a140bfc5b Support another main signature for PE 2017-05-13 02:14:01 +02:00
SkUaTeR
28f785daa0 MSVC compile correctly (WIP) 2017-05-13 00:42:00 +02:00
pancake
11e8da31ed Fix alignment issues in hotkeys hints in disasm 2017-05-13 00:40:50 +02:00
Maijin
13240358a7 enhance main detection for MSVC 2017-05-12 18:24:46 +02:00
Sven Steinbauer
d2a839ff30 Error on invalid immediate for arm mov (#7479) 2017-05-12 14:04:50 +02:00
pancake
ed5e999b86 Refactor fo command into an api for cfg.fortunes 2017-05-12 03:44:53 +02:00
pancake
52dc44bc50 Honor user settings after loading the project when no bin info is found in RBin 2017-05-11 23:02:51 +02:00
Florian Märkl
63ae409288 Fix cmd_help reading beyond input array for ?O (#7477) 2017-05-11 21:22:53 +02:00
Juan Pablo Canepa
7dcf4bf796 Removed unneeded message from build system (#7478) 2017-05-11 21:06:01 +02:00
pancake
cab7a3a378 Fix pdrj test and catch errors in pdR 2017-05-11 12:45:04 +02:00
pancake
847d3f1195 Add missing midcursor check 2017-05-11 12:49:03 +02:00
pancake
3bfadcd4a3 Fix #7458 - Implement asm.midcursor 2017-05-11 12:47:48 +02:00
pancake
aa8a5fdb30 Fix two memleaks in r_json and r_x509 2017-05-11 12:29:42 +02:00
pancake
9523beb3bf Initial implementation of pdR, the af-less pdr 2017-05-11 12:27:08 +02:00
pancake
a58e556c34 Fixes for capstone3 2017-05-10 22:53:31 +02:00
pancake
81f2f82cd3 Fix write(0) in radiff2 -x 2017-05-10 22:28:11 +02:00
SkUaTeR
1b5a746786 add more fixes to msvc build (#7468)
* add more fixes to msvc build

* more fixes
2017-05-10 22:12:49 +02:00
pancake
b24281c9c5 More fixes for mingw 2017-05-10 15:32:34 +02:00
pancake
ad54e9ddf1 Refix mingw32 build 2017-05-10 00:34:05 +02:00
pancake
1db8c637ae Fix meson build on macOS 2017-05-10 00:05:50 +02:00
SkUaTeR
beb80cfc16 Fixes for MSVC 2017-05-09 23:53:20 +02:00
pancake
69b4c61b8a Fix mingw32 build 2017-05-09 22:57:47 +02:00
alvarofe
a24dc27556 Move jni init function into entrypoints 2017-05-09 22:41:06 +02:00
Giovanni
72b643654d iCj - Signatures in JSON format 2017-05-09 14:43:07 +02:00
xarkes
926f024909 Improved MSVC support (WIP) 2017-05-09 14:25:57 +02:00
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
pancake
a66cc10d46 Fix a huge list of null derefs from clang-analyzer 2017-04-17 22:02:04 +02:00
pancake
e641318973 Fix a bunch of bugs reported by clang-analyzer 2017-04-17 19:59:14 +02:00
Pepe Vila
046a31cad4 ~? shows help 2017-04-17 17:15:20 +02:00
dx
8baa2643b3 Fix escaping of JSON unicode literals (#7294)
- revert 5f1efc9d (which adds double escaping with r_str_escape),
- re-apply 1c6a3138 (my previous commit)
- fix the recent commits 69a7e122 and 04ad4dcf to use r_str_utf16_encode
  instead of r_str_escape since the former produces "\u0000" and the
  latter produces "\x00" which is not valid JSON
- partially revert 8fd10e11 which had a hack to not escape backslashes
  followed by a u
2017-04-17 16:54:37 +02:00
dx
cde7747504 grep: Fix ~[x] with x higher than the total number of columns (#7284)
For example, "ii~[2]" didn't filter anything at all because the first
row only has one column
2017-04-17 13:54:16 +02:00
Anton Kochkov
82e41828ac Fix Cygwin build [2] 2017-04-17 19:30:39 +08:00
Anton Kochkov
a8d5b68320 Fix Cygwin build 2017-04-17 19:03:30 +08:00
pancake
8fd10e11aa Fix /xj and /j unicode escape issues 2017-04-17 12:57:04 +02:00
pancake
26f7c77a42 Fix latest covs 2017-04-17 12:43:56 +02:00
alvarofe
5f1efc9d68 Fix #7282 - escape data in /j output 2017-04-16 20:28:47 +02:00
Pepe Vila
8570f4fc5d fixed r_types.h use in wasm (#7292) 2017-04-16 19:37:15 +02:00
radare
eca157603e Revert "r_str_utf16_encode: escape backslash characters too (#7288)" (#7289)
This reverts commit 1c6a313821.
2017-04-16 11:48:26 +02:00
dx
1c6a313821 r_str_utf16_encode: escape backslash characters too (#7288)
That function emits backslash escaped unicode sequences, so backslashes
should be escaped too. This fixes invalid json issues in /j
2017-04-16 11:47:04 +02:00
pancake
04ff4a5195 Fix #6428 - Honor scr.color in ad command 2017-04-16 11:41:27 +02:00
pancake
07c77484ba Fix opsize in pij 2017-04-16 11:20:16 +02:00