613 Commits

Author SHA1 Message Date
pancake
9f0d7e44d3 Fix some issues reported by coverity 2014-01-15 01:56:28 +01:00
pancake
6368594942 Update sdb and dummy handle () in esil 2014-01-15 01:23:10 +01:00
Adam Pridgen
6058b7b4a8 coverity fixes 2014-01-14 10:40:18 -06:00
Adam Pridgen
415a77dca0 Java can now load multiple bins into radare space, and analyse the different bins.
See libr/bin/p.bin_java.c libr/anal/p/anal_java.c for the hacky details.
Fixed the coverity issue.
2014-01-12 17:36:47 -06:00
pancake
e5ad21d731 More cast issues fixed in shlr/java and anal 2014-01-10 18:24:47 +01:00
pancake
7894c8aa89 Honor CPPFLAGS or custom iOS builds and add missing parenthesis in anal_ex 2014-01-10 18:05:58 +01:00
Adam Pridgen
737664ae87 Added RBinBind to RAnal to facilitate information passing between processed bin and analysis 2014-01-10 10:20:23 -06:00
Adam Pridgen
9bdd742a43 Fix null pointer issues with java's use of sdb. Re-did the way keys for cp object, methods, and fields are entered into the sdb. Updated the way bin objects are referenced in asm and anal plugins for java. 2014-01-10 00:35:25 -06:00
Adam Pridgen
6e07c6a75a Fixed most warnings (excluding unused functions and vars) in class.* and p/anal_java 2014-01-09 10:13:35 -06:00
Adam Pridgen
79ffe311ec updated the way shlr java persists bin_objs, so that they can be used by other components. Mac OSX still broken, now its an SDB problem. 2014-01-09 07:43:13 -06:00
Vitezslav Cizek
7033a1de90 fix two off-by-one errors 2014-01-08 00:13:35 +01:00
Adam Pridgen
efcad51646 Fixing coverity issues and a potential buffer overflow in bb->op_bytes 2014-01-07 04:31:56 +01:00
Adam Pridgen
34e24736e5 fixed up usage of new for switch 2014-01-06 12:32:17 +01:00
Adam Pridgen
989bc540cf changing RAnalInfos to RAnalState 2014-01-06 12:32:13 +01:00
Adam Pridgen
b0593f9001 rename r_anal2 to r_anal_ex to fix namespace issues 2014-01-05 23:06:00 +01:00
Maxime M
a4d0f03999 Fix some Warnings WFormat 2014-01-05 01:05:04 +01:00
Adam Pridgen
9ce16534ed fixing coverity issues 2014-01-04 05:58:44 +01:00
pancake
6c2200c80b Fix build and some warnings 2014-01-04 02:06:36 +01:00
pancake
2475dc6d04 Optimize r_anal_reflines and r_anal_data_kind (disasm is now 7 times faster) 2014-01-04 01:59:23 +01:00
pancake
98053a806d Fix bjam build 2014-01-03 00:43:22 +01:00
pancake
7862df4fdd Fix build 2014-01-03 00:31:10 +01:00
Adam Pridgen
bd4521c897 Moved state struct into r_anal.h, and fixed a typo in anal2.c 2014-01-03 00:28:51 +01:00
Adam Pridgen
bc2ee1f869 Improved plugin analysis allowing plugin developers to define custom
analysis algorithms.
Java analysis plugin is re-written to leverage this capability.
Added some new R_ANAL types, and some of the respective operations and strings.
Updated io-component files to get file size and info
2014-01-03 00:28:46 +01:00
pancake
38fc28f960 Added more Jamroot files 2014-01-03 00:13:46 +01:00
pancake
dff0c2b838 Fix build 2013-12-31 15:38:27 +01:00
pancake
3b3bbbb916 Add more Jamroot files and move some plugs to r2-extras 2013-12-31 15:34:27 +01:00
pancake
dba63fbd3c Add some Jam files and merge rsign into ranal 2013-12-31 05:30:39 +01:00
BatchDrake
a627f9550a Fixed ESIL representation for RIP-relative addressing under x86 2013-12-26 18:08:07 +01:00
jvoisin
ecc1e8cd42 Update anal_8051.c
xvilka's request
2013-12-22 01:58:39 +00:00
condret
f308b454bb making code easier to read + regprofile
rst-vectors are calls, not jumps
2013-12-22 01:57:54 +01:00
condret
da637b62bf better bankswitch-comments
bankswitches can only be done in rombank00
2013-12-22 01:57:54 +01:00
condret
43c4352786 Create gb_makros.h 2013-12-22 01:57:54 +01:00
Adam Pridgen
77bc339184 Added cp_opj info into the sdb. CP Info is a primitive serialization that describes the file location, type, and values (dependant on type) in a dotted string format. 2013-12-22 01:56:18 +01:00
pancake
bf1d0ff08a Fix build and various random fixes 2013-12-20 04:32:38 +01:00
condret
4fdf22a9e7 Fix make-issue, caused by calling to r_io 2013-12-17 23:39:27 +01:00
pancake
72c2dc0f3c Fix anal_gb linking 2013-12-17 02:29:00 +01:00
condret
f4d1a3a589 GB bankswitch detect + autocomments, fix wrong opcode, update anal 2013-12-17 02:19:29 +01:00
condret
a5caa06d41 fix wrong jr-calculation (thx pancake) 2013-12-13 13:05:40 +01:00
condret
9123b44a65 Add missing ":"
Oooops
2013-12-13 12:23:21 +01:00
condret
cdcaa87406 Better analysis (inner-bank jumps and calls)
we still need some foo for bankswitches, to be faster and better. This can be done by a reg-profile in this file. I'll do this, but I have to read more about it.

But we also need a new R_ANAL_OP_TYPE, something like R_ANAL_OP_TYPE_JRET or R_ANAL_OP_TYPE_RJMP to follow the program-flow in scenarios like this:

We're in rombank23:
ld a, 7
call 0x2342     ; which is in rombank0(rombank0 is fixed)

in rombank0:
ld 0x2000, a    ; bankswitch
ret             ; bämmm! we return to somewhere else
2013-12-13 02:21:39 +01:00
condret
d8ed7c6b3b fix identation (thx XVilka) 2013-12-12 23:43:16 +01:00
condret
0004593937 fix 0xed
0xed is not a call see http://www.villehelin.com/mnemonics_z80_o.txt
2013-12-12 23:31:48 +01:00
condret
21a77cd893 add rst-vectors, crets 2013-12-12 19:34:47 +01:00
condret
4f5a1d7c68 add some comments and rst-vectors
sorry, i didn't thought nintendo would use the rsts, but they do ("super mario land" for example).
2013-12-12 19:24:59 +01:00
condret
cd202626f9 add rst-vectors, crets, 2 0xed-prefixed rets (reti, retn) 2013-12-12 19:02:26 +01:00
condret
40abd9c212 add all instructions with 0xcb-prefix 2013-12-12 02:15:15 +01:00
condret
a32eb132e7 fix wrong jr calculation 2013-12-12 02:13:21 +01:00
condret
7ce158acd3 Add anal-plugin for gb 2013-12-12 01:40:25 +01:00
Fedor Sakharov
c24bf9316d Refactoring of anal_ebc.c and a fix of pdf there. 2013-12-10 18:58:41 +01:00
pancake
c165361124 Add bin.bf for brainfuck and use static ESIL struct 2013-12-10 03:35:59 +01:00