Commit graph

115 commits

Author SHA1 Message Date
Maijin
675b582fa7 Replace arch by bf Fix #8758 2017-10-31 17:24:53 +01:00
pancake
fb4294c36b Fix #8000 - null deref in pkcs7 2017-07-24 15:32:05 +02:00
pancake
902ce266e5 Java have a linkable import table too 2017-07-24 10:28:48 +02:00
radare
941008b5dd Initial optimization for DEX
* Avoid unnecessary copies of the lines info for DEX
* Return NULL instead of empty strings
* Honor bin.dbginfo for all file formats
* Reduce the number of false positive strings
* Use r_buf_get_at instead of r_buf_read_at to avoid memory copies
2017-07-21 19:48:29 +02:00
pancake
ac3c7406b8 Fix last covs 2017-07-21 19:03:20 +02:00
pancake
2829d9e398 Detect kotlin in java classes 2017-07-19 13:55:05 +02:00
pancake
40b87865a8 Fix listing methods of classes in Java bins 2017-05-29 01:18:04 +02:00
Álvaro Felipe Melchor
825caa96bc Fix #6955 - get rid of .check in RBinPlugin and RBinXtrPlugin 2017-04-13 11:54:28 +02:00
pancake
56aeb2a6e3 RBinPlugin.load boolified 2017-03-17 03:52:43 +01:00
pancake
6a9c4a652c Refactor get_sdb(RBinObject) -> get_sdb(RBinFile) + r2-indent 2017-03-15 00:21:37 +01:00
pancake
1a5dbf3ccb Boolify rbin's check + check_bytes callbacks and fix null deref in dex 2017-03-08 23:16:46 +01:00
Damien Zammit
af0a865d9f WIP - Totally remove host endianness dependence
- Adds endian aware functions
- Removes references to host endian
- Uses binary detected endianness else tries LE and restricts by RAsmPlugin
- Fixes gdb debugger endianness when debugging BE qemu gdbserver

Signed-off-by: Damien Zammit <damien@zamaudio.com>
2016-05-04 23:42:17 +10:00
NaveenBoggarapu
4c04b98b47 few memory leaks fixed 2016-04-13 21:55:48 +02:00
pancake
d629165ec8 Remove unnecessary = NULL in bin/p/*.c 2016-03-27 23:02:29 +02:00
pancake
7a1b6516c1 Fix java class crash reported by @revskills (db3d80b14..) 2015-10-24 13:20:55 +02:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
Jonathan Neuschäfer
523aa3af5c add .version to all plugins 2015-07-12 19:05:33 +02:00
pancake
4ced532d69 Tons of fixes and cleanups to make the java tests happy 2015-05-11 18:23:38 +02:00
pancake
dff11411cc RBinInfo is now dynamically allocated 2015-03-25 14:49:33 +01:00
pancake
a8dc744f48 Fix #1811 - Corrupt ELF header crashes r2 - reported by @crowell 2014-12-09 04:19:16 +01:00
pancake
046b014dee Make bin/core java plugins use libr_java.a 2014-06-25 04:25:38 +02:00
pancake
1a3ffef8b4 Fix static build 2014-06-25 04:11:43 +02:00
pancake
377b5bb2fe Clean a huge list of warnings 2014-06-25 02:07:38 +02:00
LemonBoy
a00abae9d3 fix #977 2014-06-04 01:37:02 +02:00
Adam Pridgen
19760814be Fix CID: 1214312 2014-05-15 08:33:45 -05:00
deeso
1fbc7f2168 Added load_bytes, Pushed curplugin down to RBinObj, Reworking the RBinFIle loading to accomodate RBinObj reworked how all bins are loaded. Needed to hack IO to make
this work with rbinfiles and rbinobjects.

Conflicts:
	libr/bin/bin.c
	libr/bin/p/bin_te.c
2014-05-13 21:54:18 -05:00
pancake
962ac8d307 Fix all java warnings 2014-05-12 10:16:15 +02:00
deeso
4ad0f2a400 Tweaking bin plugins so that they can check bytes along with a binfile and fixed extraneous * in buf.c and r_util.h 2014-05-08 14:09:10 -05:00
Adam Pridgen
bd297f6788 reworked how bins environmnent variables are set (e.g. io.va, arch, bits, etc.) and fixed some more mach0 regressions 2014-05-04 17:15:55 -05:00
deeso
8802b42ca0 removed some unused variables, and grouped unused functions which happen to be used by different components 2014-04-30 20:42:05 -05:00
deeso
ce7f33480e fixing warnings (not the unused ones) in various files 2014-04-28 12:58:35 -05:00
Adam Pridgen
3048a34783 Trying to fix mem-leaks, and allow updating of bin object infos 2014-04-03 14:04:07 -05:00
pancake
53edf7c17d Merge RCmd inside RCore 2014-03-18 00:05:44 +01:00
pancake
7c8daf1e70 Refactoring RBinMeta into RBinDbgInfo 2014-03-10 02:27:32 +01:00
pancake
d25cafe4d4 Check Java version in RBin's check(), cleanup (-44LOC) 2014-02-22 00:19:16 +01:00
pancake
987addf9c0 Fix build 2014-02-18 03:09:28 +01:00
pancake
1f1367382b Add 'aos' to sdb-ize the esil, file.suppress_warnings renamed to file.nowarn 2014-01-31 02:02:51 +01:00
pancake
6e8073a67f Fix @b: command suffix for 'pd' and fix issue with malformed mach0 2014-01-29 02:42:22 +01:00
pancake
5ff6065335 Bump for new sdb 2014-01-23 01:56:35 +01:00
Adam Pridgen
db1bb1a089 Changed the location of RBinObject, and created RBinFile to conform similarly to
RCoreFile, where RBinFile contains meta information for RBinObjects.  Now
RBinFiles are swapped out along with the RCoreFile when the priority is changed.
2014-01-20 02:44:25 +01:00
Adam Pridgen
285e9ee1ef Moving the bin_obj (internal format into RBinObject proper 2014-01-17 12:41:37 -06:00
pancake
a34f3d5434 Fix #534 - segfault when loading some ELF, MACH0 and PEs 2014-01-14 03:48:38 +01:00
pancake
1b3c2fed4f Fix bin_java deinit 2014-01-14 03:26:48 +01:00
pancake
15c069aa2d Fix build 2014-01-14 03:08:07 +01: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
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
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
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
Roi Martin (@nibble_ds)
3f5ebd9d16 Fix #458 - Negative baddr
Fix r_bin_get_vaddr() (needs further testing due to changes in r_io)
2013-12-19 19:43:44 +01:00
Adam Pridgen
ddf540d0ab Squashed merge of @deeso's pullreq for the Java RBin plugin
Added basic interpretation of java access flags for classes, fields, and methods
Added a visibility_str to RBinSymbol and RBinClass, and updated getters in Java
Added minstrlen to bin_java plugin struct
Fixed bin->minstrlen not being set in r_bin_init_items
Fixed iinc instruction.
2013-12-17 02:23:16 +01:00