Anton Kochkov
0ca9630806
Add TE header pf parsing
2015-04-19 14:29:55 +03:00
Anton Kochkov
7e79b198b1
Fix some more Coverity issues
...
Fix CID 1171365
Fix CID 1211169
Fix CID 1230038
Fix CID 1295063, 1295062, 1295061
Fix CID 1295070
Fix CID 1295068
Fix CID 12950067
2015-04-19 04:53:08 +03:00
Anton Kochkov
1479aeca8e
Fix a few Coverity issues
...
Fix CID 1205204
Fix CID 1171365
Fix CID 1135001
Fix CID 1134921
Fix CID 1134848
Fix CID 1134840
Fix CID 1134824
Fix CID 1267983
Fix CID 1230038
2015-04-19 03:15:29 +03:00
pancake
997dda6e5b
Add support for iOS-simulator and static-OSX builds
2015-04-14 17:14:43 +02:00
pancake
2aecde26d2
Tons of free candy. See details below:
...
- Fix arm-thumb ESIL for the SUB instruction
- Handle Java imports as symbols in code analysis
- Invoke Java instructions reference the imports now
- Fix 71 crashes reported by jn
- Affected bin modules: elf, mach0, java, te, pe, dex
2015-04-13 00:57:32 +02:00
pancake
f9d6ff2f2b
Fix some travis warnings
2015-04-12 18:00:40 +02:00
pancake
acd5e4b999
Fix dalvik<->dex class and method name resolutions
2015-04-12 05:13:51 +02:00
jvoisin
882a43994c
Two simple coverifix
2015-04-11 21:07:12 +02:00
Anton Kochkov
2e8363fdb6
Fix more leaks
2015-04-11 13:46:33 +03:00
pancake
f8d3e50b57
Some aesthethic changes for REIL
2015-04-11 05:18:00 +02:00
pancake
3a214bcfdb
Another fix for DEX
2015-04-11 05:04:51 +02:00
pancake
6ab06a15ba
Various fixes for DEX and Dalvik support
2015-04-11 04:33:37 +02:00
Anton Kochkov
1a481ca473
Fix possible segfault in ELF parsing
2015-04-11 02:14:13 +03:00
Anton Kochkov
5a0bde5a01
Coverity fixes
2015-04-11 01:29:28 +03:00
condret
375427cb8c
fix 2 warnings, low hanging tits
2015-04-08 13:20:26 +02:00
pancake
2cb6afd48b
Fix crash in bin_fs reported by jn
2015-04-08 01:31:39 +02:00
ninjahacker
d1351cf836
Added initial zimg support
2015-04-06 22:31:06 -04:00
pancake
0b04317bdb
Sdb memoization in RBin speedups DEX loading
...
Avoid some memdupping in the dex parser - needs more work
2015-04-06 00:59:55 +02:00
Jeffrey Crowell
29d583df60
fix some warnings
2015-04-01 21:10:49 -04:00
condret
2eec10e7b1
fix bin-load for gb
2015-03-29 00:50:13 +01:00
pancake
7292fbab40
Fix PE and Brainfuck crashes related to RBinInfo
...
- Fix warn in radiff2
2015-03-27 17:18:15 +01:00
pancake
dff11411cc
RBinInfo is now dynamically allocated
2015-03-25 14:49:33 +01:00
pancake
f4e3f593d4
Add dexdump.sh to import DEX info into r2, VF now fits in screen
...
And 'C' toggles color! a use-after-free has been fixed too
And more instructions are now recognized by the analysis
2015-03-24 03:23:56 +01:00
pancake
515b2e77bc
Fix about 40 COVs related to memleaks and buffer overflows
2015-03-21 01:27:54 +01:00
condret
afa5bb3c42
fix some gb-related stuff
2015-03-19 23:45:24 +01:00
condret
ce6dfda8f9
add basic mem-init info for gb
2015-03-18 15:16:17 +01:00
pancake
c03eff8af0
Fix memleak in previous commit
2015-03-14 03:47:35 +01:00
Jaume Delclòs Coll
b9c0efb926
Gameboy Advanced -> Game Boy Advance
2015-03-03 15:55:32 -05:00
pancake
5f9d275bb8
Support ELF ARM PLT and mark symbols as Thumb from RBin
2015-02-26 02:48:54 +01:00
jvoisin
a4ba5f64f5
Even more Coverifix
2015-02-19 00:27:00 +01:00
jvoisin
123a77c022
Coverifix
2015-02-11 19:05:28 +01:00
pancake
6c1bbe5607
Fix #2048 - DEX imports expose class name
2015-02-06 19:32:45 +01:00
pancake
33fcd7fbcf
Enhacements for DEX sections and ignore methods at 0 (wip)
2015-02-06 18:53:11 +01:00
pancake
1ea6a79d81
Fix null deref when failing to load a fatmach0
2015-02-04 02:40:48 +01:00
jvoisin
249fb839fe
Coverifix
2015-01-30 22:51:01 +01:00
pancake
d1a21cd059
Fix uninitialized access issue in bin.xbe
2015-01-29 02:14:09 +01:00
jvoisin
1a17b5b420
Coverifix++
2015-01-27 16:03:18 +01:00
jvoisin
9681c6fcf7
More coverity
2015-01-25 14:35:46 +01:00
jvoisin
ce9ece1177
Coverifix++
2015-01-16 00:56:54 +01:00
jvoisin
759e3b24b5
Fix two trivial warnings
2015-01-13 03:05:11 +01:00
jvoisin
4fd6ce62d5
Fix some gcc warnings
2015-01-13 02:07:44 +01:00
Julien Nabet
164bbc7333
Some cppcheck reports fixed:
...
(warning) Logical disjunction always evaluates to true: regnum < 32 || regnum > 31
(style) Same expression on both sides of '||'
(style) Same expression on both sides of '&&'
(style) Expression is always false because 'else if' condition matches previous condition at line 180
2014-12-28 04:20:14 +01:00
pancake
f495b5031a
Handle ET_REL ELF relocs, asm.cpu for arm.cs: v8, mcortex
2014-12-28 03:53:39 +01:00
skuater
7c05d505a0
Fix symbol impot names(PE EXE)
2014-12-27 06:07:39 +01:00
pancake
eafb616765
Do not use sym.exp (by skuat)
2014-12-26 22:45:29 +01:00
inisider
f18988f21f
fix pdb downloader
2014-12-23 15:06:42 +01:00
skuater
2ef956e2d5
Resolve PE import Ordinal names from RBin
2014-12-23 10:35:00 +01:00
pancake
49446b27c0
Fix #1848 - crash in dex parsing
2014-12-18 01:17:16 +01:00
pancake
5f42271ff4
Fix #1839 - Fix crash in dalvik flagname parser
2014-12-16 22:05:09 +01:00
pancake
391676dc39
Cleanup the pdb_downloader function (-40LOC)
2014-12-14 23:04:50 +01:00
pancake
262b0cfd55
A fix for a MACH0 crash
2014-12-11 19:57:01 +01:00
pancake
fa4df53077
Another overflow in DEX
2014-12-11 17:47:04 +01:00
pancake
aec5472781
Fix another DEX uleb crash
2014-12-11 17:43:33 +01:00
pancake
a0e811cfd2
Fix another DEX/uleb related crash
2014-12-11 17:39:23 +01:00
pancake
30d1b07b6d
Fix another crash in DEX
2014-12-11 17:33:56 +01:00
pancake
acade3fee7
Fix more crashes on DEX
2014-12-11 17:21:15 +01:00
pancake
9e38b64f6a
Enforce 64k method limit for DEX
2014-12-11 17:03:34 +01:00
pancake
d1585fafa1
Fix some PE crashes
2014-12-11 02:08:29 +01:00
inisider
155997598f
Add initial support to download PDB files (NodeJS helper)
2014-12-10 17:01:32 +01:00
pancake
a8dc744f48
Fix #1811 - Corrupt ELF header crashes r2 - reported by @crowell
2014-12-09 04:19:16 +01:00
pancake
18ef89dfa0
Fix lot of overflows in the dwarf parser
2014-12-04 01:28:29 +01:00
pancake
6f011c840e
Fix w32 build
2014-12-03 23:01:20 +01:00
pancake
3a31198ffd
Fix #1702 - Revert and fix the dwarf/dex crashes related to uleb overflows
2014-12-01 23:44:20 +01:00
pancake
eeb539aab0
Fix warnings in pebble
2014-11-30 18:51:25 +01:00
pancake
e35d55e18a
Add initial support for Pebble apps
2014-11-30 16:53:36 +01:00
Riccardo Schirone
aaa822f03b
More work on mach0 format parser
...
* use segment instead of sections
sections are optional. it should be better to rely on segments
* remove r_bin_mach0 prefix
make the source code easier to read. considering this is a plugin, it's
completely separated from other stuff and we can rename things without
problems.
* remove MACH0_ prefix from static functions
* fix a mistake. we should check segs, not sects
* get right entrypoint also for LC_THREAD
* fix logic to retrieve entry offset/addr
first it computes the virtual entrypoint address and then it finds the
offset in the file through addr_to_offset
2014-11-24 11:57:54 +01:00
Riccardo Schirone
590a18ea23
libr/bin/format/mach0: check filetype in r_bin_mach0_get_baddr
2014-11-23 11:06:10 +01:00
Riccardo Schirone
c1441b6ef2
libr/bin/format/mach0: fix baddr
2014-11-23 11:06:09 +01:00
pancake
41b6f99ec1
Revert "Fix several crashes in dalvik. Thanks nightmare!"
...
This reverts commit f6440fc526 .
Conflicts:
libr/bin/dwarf.c
libr/bin/p/bin_dex.c
2014-11-19 12:14:23 +01:00
pancake
8b58fe1ef2
Fix XBE loading and Yara tests
2014-11-19 00:42:57 +01:00
jvoisin
acd93d1b37
Fix some cppcheck warnings
2014-11-15 21:48:13 +01:00
pancake
c7e2edc6aa
Remove reloc warnings from elf parser
2014-11-10 14:16:14 +01:00
pancake
b40bce8284
Fix all latest Coverity issues
2014-11-07 10:52:44 +01:00
pancake
0142915fb7
Minor code cleanup for the elf parser
2014-11-06 02:12:55 +01:00
pancake
0764d0bc15
Fix two crashes in the ELF parser
2014-11-05 17:02:08 +01:00
pancake
7af9bf009a
Fix some more crashes for the Java CLASS and XBE RBin parsers
2014-11-05 02:09:00 +01:00
pancake
f6440fc526
Fix several crashes in dalvik. Thanks nightmare!
2014-11-05 00:15:40 +01:00
pancake
8e78ebfee5
Fix crash in elf relocs
2014-11-04 16:16:47 +01:00
Fedor Sakharov
277f2e8a68
Add symbol reference to RBinReloc and print it in disasm
2014-11-04 13:59:54 +01:00
pancake
1eccc191e0
Fix the r2 -d oo issue with more referer fields
2014-11-04 10:30:28 +01:00
Fedor Sakharov
424e16626d
Do not fail if reloc is not converted
2014-11-03 20:52:39 +01:00
Fedor Sakharov
5080f4993c
Get the got_addr for relocs correctly
2014-11-03 20:52:39 +01:00
Fedor Sakharov
615930ff79
Implement some reloc types for R_X86_64
2014-11-03 20:52:39 +01:00
pancake
7b0ee3bad3
Fix coverity issue
2014-11-03 13:55:12 +01:00
Fedor Sakharov
6c3b502260
Re-implementation of relocations handling.
2014-11-03 13:43:49 +01:00
pancake
3aaa6e980c
Control array boundaries for DEX classes to fix #1541
2014-10-28 16:59:23 +01:00
pancake
745f4018e8
Fix several DEX crashes found by Joxean's fuzzer
2014-10-09 13:47:57 +02:00
pancake
9f962a05ab
Fix r2 -zz and rabin2 -zz, also set default minstrlen for ELF/ELF64
2014-10-07 22:55:10 +02:00
pancake
a58789782d
Finally fix the brainfuck emulator
2014-10-03 20:05:33 +02:00
pancake
664ae46dc5
Should fix #1457 - ELF rpath oob read
2014-10-01 19:59:50 +02:00
pancake
0248e53fb6
Add scr.visual, Fix BinBios section loading (rva issue)
2014-09-28 03:27:22 +02:00
pancake
95bb7bb74e
Define and use R_NOTNULL in RBinPlugin.load_bytes
2014-09-28 01:43:08 +02:00
Alberto Ortega
6c722b704a
fix unused var warning in bin_elf.c
2014-09-28 00:16:44 +02:00
Alberto Ortega
8449eafe3d
Fix warning and minor change in bin_ninds.c
...
* First title concat is a copy now
2014-09-26 17:34:33 +02:00
condret
63dc90699f
fix identation and prevent a few tiny memleaks that could occur if R_NEW0 fails
2014-09-25 21:46:24 +02:00
Alberto Ortega
de73ac8670
Add Nintendo DS ROM loader plugin
2014-09-25 00:04:37 +02:00
Y. Sapir
d42dbf55d2
Fix some compile warnings.
2014-09-24 13:20:37 +02:00
Skia
baf8a068b7
Fix CID 1240150, 1240149, 1240151
2014-09-23 10:25:18 +02:00
pancake
7e1875e4ff
Fix some warnings
2014-09-22 19:45:14 +02:00
pancake
ac22f9e25c
Fix several COFF parsing crashes. Bring back /B
2014-09-20 19:28:56 +02:00
pancake
143033b5d6
Add PE DOS header struct in r2 -nn (via maijin)
2014-09-20 13:27:54 +02:00
Jonathan Neuschäfer
4f7526d721
Add "const" in two places
2014-09-18 18:56:57 +02:00
pancake
dec5580bf4
Fix some ELF OOB crashes (thanks @maijin for reporting)
2014-09-17 00:09:00 +02:00
pancake
63f00d0b0f
Implement working ESIL backend for Brainfuck. Requires manual init
2014-09-13 02:24:50 +02:00
pancake
4bcb57955f
Initial test exposing elf headers into Sdb and fix crash in bin-any
2014-09-08 04:17:38 +02:00
pancake
a62e8603f7
Fix read on freed memory in bin/p/bin_any.c
2014-09-08 02:23:26 +02:00
pancake
d809200fa2
Fix more memleaks
2014-08-29 16:42:00 +02:00
pancake
67171b86a5
Hackaround to get r2 -B0 working.
2014-08-28 00:19:51 +02:00
deeso
689d29e444
Remove the TODO from libr/bin/p/bin_any.c
2014-08-25 09:10:53 -05:00
jvoisin
052d576ae6
coverifix
2014-08-24 19:40:08 +02:00
pancake
dbc1625777
Fix build
2014-08-23 01:53:58 +02:00
Adam Pridgen
e3aa90d4be
changed default arch from 'x86' to ''
2014-08-23 01:52:33 +02:00
Adam Pridgen
6a5a91f9c9
added type enumeration with lib magic in bin_any.c plugin
2014-08-23 01:52:33 +02:00
pancake
1386bbd2b8
Fix crash in elf parser (rbinfile != rbin != rbinobj)
2014-08-19 11:37:17 +02:00
pancake
87afa5cc06
Workaround to get tiny.elf loaded properly
2014-08-19 00:05:14 +02:00
jvoisin
702ac741b9
More coverifix
2014-08-17 21:04:12 +02:00
pancake
4b7e3cdd3f
Fix CID 1231791
2014-08-17 20:22:30 +02:00
pancake
a0570b4144
More fixes related to paddr/vaddr on PE/ELF/XBE
2014-08-15 12:47:05 +02:00
pancake
5a66d7a4d4
Fix #1203 - ELF64 symbol addresses.
2014-08-15 03:55:37 +02:00
pancake
9a55e866b0
Fix rabin2 -Z . Implement it for DEX too.
2014-08-07 01:00:04 +02:00
pancake
ebc691d47e
Fix crash when loading COFF files
2014-08-05 02:11:19 +02:00
condret
424cf30430
return R_TRUFAE for load_bytes
2014-08-04 23:20:47 +02:00
pancake
b2a4e24f8a
Fix PE64 identifcation issue.
2014-08-04 19:08:29 +02:00
jvoisin
f7b05fe65d
Coverifix rampage!
2014-08-04 01:21:38 +02:00
jvoisin
942dba7efd
Makes davispuh happy
2014-08-02 02:22:07 +02:00
pancake
3eb4b44bfb
Fix other elf tests after the previous regression
2014-07-30 11:14:22 +02:00
pancake
8d2d8eae93
Fix avr symbol addressing issues
2014-07-29 03:16:12 +02:00
jvoisin
5c61d6f2d7
Fix some coverity issues.
2014-07-24 18:46:46 +02:00
jvoisin
8fdfefb080
Fix coverity issues (and some PE tests \o/)
2014-07-24 02:05:17 +02:00
pancake
7e06e13b3b
Fix #1133 - gdbr warnings, and some other
2014-07-21 18:19:31 +02:00
pancake
314ab38a78
Fix all latest coverity issues
2014-07-21 17:51:20 +02:00
pancake
cf64a5dd75
Fix #1117 - Bring back rabin2 -c
2014-07-17 09:40:35 +02:00
pancake
381d86de2a
Fix null deref and bad indent
2014-07-17 05:49:20 +02:00
LemonBoy
6d83b07224
Prettify the mach0 baddr method
2014-07-11 23:32:44 +02:00
LemonBoy
0acf0b1dd2
Various fixes to stop the vaddr translation madness
2014-07-11 23:32:44 +02:00
LemonBoy
37409c3f34
COFF/MZ improvements
2014-07-11 23:32:44 +02:00
pancake
f986ad51a1
More link order fixes
2014-07-09 11:30:18 +02:00
pancake
740a421e81
Fixes for the new linking order
2014-07-09 11:00:41 +02:00
pancake
feee9f62c9
Fix re100.exe PE crash
2014-07-08 22:59:38 +02:00
pancake
2b6816a13e
Fix invalid memory access for mach0s
2014-07-06 00:32:21 +02:00
pancake
9368fc7253
Bump capstone again and fix some warns
2014-07-02 17:14:32 +02:00
pancake
3dfadc0b30
Fixed several issues on PE/ELF/MACH0
...
- relocs, entry0 vaddr and baddr
- fix tiny.elf crash (null deref on *bin ptr)
2014-06-27 01:20:54 +02:00
pancake
1533c31a2f
Fix #1071 - rename constants
2014-06-25 18:02:36 +02:00
pancake
4d6f59f52b
Fix build again
2014-06-25 04:29:59 +02: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
50f30ce907
Make the MZ loader use non-CS relative offsets. Fixes #1044
2014-06-21 12:54:29 +02:00
Jonathan Neuschäfer
6790d8d432
Fix out-of-bounds read in COFF and P9 file recognition
...
(In check_bytes, that is.)
2014-06-21 01:39:27 +02:00
pancake
e60552452d
Fix coverity issues
2014-06-17 10:29:15 +02:00
Joshua Roys
62b2c60031
Fix #1031 - incorrect call offsets calculated in DOS EXEs
...
Also fix the incorrect MZ entrypoint calculation.
2014-06-15 22:40:55 +02:00
Jonathan Neuschäfer
8f49aad1f7
Fix out-of-bounds read in the PE loader (check_bytes)
...
While at it also change the magic from hexpairs to "MZ" and "PE".
2014-06-15 12:08:22 +02:00
Jonathan Neuschäfer
4c612db79b
a few cleanups in bin and lang
...
* libr/bin/bin.c: remove duplicate condition (xtr && xtr)
* libr/bin/p/bin_elf.c!libs: use r_list_newf
* libr/lang/p/Makefile: add empty "clean" target to silence make warning
2014-06-14 02:14:08 +02:00
pancake
8330ea59fc
Fix stale pointer issue in RBinELF. Add r_mem_dup
2014-06-14 00:04:40 +02:00
pancake
3e5eb05eda
Fix PE exports parsing (adapted inisider patch) and some code cleanup
2014-06-13 16:00:39 +02:00
pancake
63ae19c650
Implement RBinInfo->is_stripped for MACH0 files
2014-06-10 20:50:48 +02:00
jvoisin
0612c9c593
minor cleanup (thanks @LemonBoy )
2014-06-10 18:04:37 +02:00
pancake
11080c54c4
Skip build errors of dynamic static plugins
2014-06-05 16:14:33 +02:00
pancake
6883f74d57
Add info/elf.relro sdb instance
2014-06-05 15:38:33 +02:00
pancake
1686073c8b
Implement RBinInfo.nx check for ELF (need tests)
2014-06-05 15:26:46 +02:00
pancake
be7ae52faa
Hackaround dupped dynplugins builds
2014-06-05 04:32:47 +02:00
pancake
00d283a398
Fix all latest coverity issues
2014-06-04 23:57:24 +02:00
LemonBoy
a00abae9d3
fix #977
2014-06-04 01:37:02 +02:00
Maijin
71b212dfa5
Refactor dll_characteristics for PE
2014-05-31 19:32:52 +02:00
Anton Kochkov
f028985765
Fix CID 1216468
2014-05-31 02:22:17 +04:00
pancake
c225694c7c
Fix build and several coverity issues
2014-05-29 15:27:18 +02:00
pancake
8d663ceb94
Some rework on RBin.baddr and laddr to make it work again
...
Not all fileformats return correct data in Sections, this is
why sometimes the relocation with baddr (needed for aslr) fails
on mach0 for example. This code needs to be redesigned and fixed.
2014-05-29 00:49:28 +02:00
LemonBoy
2fc7c4d34a
fixes the xbe loader to handle dodgy files
2014-05-28 21:49:09 +02:00
LemonBoy
8c7984e350
basic sanity checks when loading the thunk import table
2014-05-26 21:00:34 +02:00
LemonBoy
90df6195e1
xbe loader
2014-05-26 20:07:24 +02:00
pancake
810b976b73
More regression fixes for baddr on ELF and MACH0
2014-05-26 12:04:07 +02:00
pancake
98d33eb084
Fix several segfaults found by matalaz in PE, MACH0 and COFF
2014-05-23 14:34:27 +02:00
pancake
d11a2b42da
Add more sdb entries for bin/pe
2014-05-21 22:52:12 +02:00
deeso
2c0f1531de
Fixing part of the elf tests
2014-05-21 15:02:07 -05:00
jvoisin
7f0c542df6
Fix some warnings in bin_pe (and likely an import-related bug)
2014-05-21 16:04:46 +02:00
pancake
c0750f62a8
List .rela.text relocations, still incomplete
2014-05-21 03:46:31 +02:00
pancake
ac60b07b19
Swap no-seh condition
2014-05-21 03:23:30 +02:00
pancake
a1224b2156
Refactor rva > vaddr and offset > paddr.
...
That change may make mixing vaddr and paddr more visible
2014-05-21 03:18:00 +02:00
pancake
ea874fcdd7
Fix #947 - PE libs not working
2014-05-20 22:05:06 +02:00
pancake
302d4c245c
Show pe.seh value in 'sdb'
2014-05-20 01:53:14 +02:00
pancake
644acb8590
Add rabin2 -k to query sdb info, sdbize MZ debug printfs
2014-05-19 01:42:36 +02:00
pancake
ca18aedb94
Add Capstone SystemZ and SPARC disassembler and analysis plugins
2014-05-17 02:53:37 +02:00
Anton Kochkov
6b56999020
Fix CID 1214308
2014-05-17 03:39:42 +04:00
Anton Kochkov
c33835add1
Fix CID 1214323
2014-05-17 03:28:00 +04:00
Anton Kochkov
0267c89bc5
Fix CID 1214327
2014-05-17 03:22:00 +04:00
Anton Kochkov
9f0fba11f3
Fix CID 1214307
2014-05-17 03:19:03 +04:00
Anton Kochkov
2ff3b1d312
Fix CID 1214321
2014-05-17 03:11:51 +04:00
Anton Kochkov
4b94e61661
Fix CID 1214326
2014-05-17 02:33:02 +04:00
Anton Kochkov
137ca311fc
Fix CID 1214306
2014-05-17 02:27:50 +04:00
pancake
41692b70e6
Fix regression: PE baddr, update uncrustify
2014-05-16 02:46:07 +02:00
Adam Pridgen
19760814be
Fix CID: 1214312
2014-05-15 08:33:45 -05:00
Adam Pridgen
ccd69e569e
Fixing how virtual addresses are assigned to elfs
2014-05-15 00:02:41 -05:00
pancake
587c5f51c2
Implement MACH0- crypto and UUID inside Sdb bin/<fd>/info
2014-05-14 05:48:03 +02: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
jvoisin
1ec978e844
Fix relocs for PE
2014-05-14 02:58:13 +02:00
pancake
031b6495c4
Fix RBin DEX header check (blame @jvoisin)
2014-05-12 17:20:56 +02:00
pancake
962ac8d307
Fix all java warnings
2014-05-12 10:16:15 +02:00
pancake
bd82919761
Iinitial warning cleanup
2014-05-12 04:06:40 +02:00
jvoisin
ac9354d455
Add NX/ASLR detection for PE
2014-05-09 19:25:31 +02:00
jvoisin
86ad83c2df
Add canary detection for Windows
2014-05-09 17:18:07 +02:00
jvoisin
4dd5fbe7ec
Fix CID 1212091 and refactor check_bytes
2014-05-09 16:53:19 +02:00
jvoisin
77fb4aadea
Fix CID 1212090
2014-05-09 15:50:39 +02:00
jvoisin
822088e159
Fix CID 1135051
2014-05-09 15:45:42 +02:00
jvoisin
48c72e9fa0
Fix CID 1212095
2014-05-09 00:52:48 +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
deeso
03cff1625a
Fixing missing get_vaddr function in bin plugin elf64
2014-05-06 23:51:22 -05:00
Fedor Sakharov
99f8ab6b81
Cherry-pick cmd_meta refactoring for CL
...
- Adds CL* and CL-* commands
- Fix invalid free
- dwarf: Use | as file line delimeter in addrinfo sdb
- Move CL to separate function and use info from sdb
- Move filter_line to a separate function
2014-05-05 01:03:05 +02: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
3adcb54f17
Overhauled how files are loaded. Now *all* files use an IO plugin the default one is mmap'ed
2014-05-01 20:13:57 -05:00
jvoisin
6420ff29db
Fix CID 1134955
2014-05-01 19:08:10 +02: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
jvoisin
09060466a6
Fix CID 1134860
2014-04-30 20:37:23 +02:00
Anton Kochkov
b541c014eb
Fix CID 1171365
2014-04-30 02:34:45 +04:00
pancake
7216d9772c
Fix linkage in OSX
2014-04-28 22:51:42 +02:00
deeso
ce7f33480e
fixing warnings (not the unused ones) in various files
2014-04-28 12:58:35 -05:00
Adam Pridgen
c3d6664756
Adding multi-bin support for files that contain multiple objects and lots of other fixes in libr/bin
2014-04-28 12:11:14 -05:00
jvoisin
698d6d340f
Add canary detection for ELF
2014-04-28 14:45:02 +02:00
Anton Kochkov
f7c8f1cf96
Fix CID 1134970
2014-04-27 05:25:21 +04:00
Anton Kochkov
3dafba2512
Fix CID 1134874
2014-04-27 05:25:21 +04:00
Anton Kochkov
c511700337
Fix CID 1134865
2014-04-27 05:25:21 +04:00
Anton Kochkov
607f6886bc
Fix CID 1134864
2014-04-27 05:25:21 +04:00
Anton Kochkov
64cedbc578
Fix CID 1134829
2014-04-27 05:25:21 +04:00
pancake
ce4e6de42f
Implement RBin.Symbols for PE
2014-04-26 04:25:13 +02:00
pancake
eec8512e8b
Fix linkage
2014-04-21 19:31:30 +02:00
Fedor Sakharov
219a8497d0
Move size() out of ifdef for elf so it works for elf64
2014-04-21 19:22:37 +04:00
Fedor Sakharov
6c5505b39d
Use sdb to store dwarf lineaddr info
2014-04-21 19:22:37 +04:00
pancake
a5fc0fd92a
Fix dblfree in dex
2014-04-07 17:09:10 +02:00
pancake
bd7f7cb74c
Fill symbol type bin info for coff
2014-04-05 02:09:45 +02:00
Adam Pridgen
3048a34783
Trying to fix mem-leaks, and allow updating of bin object infos
2014-04-03 14:04:07 -05:00
condret
27d7725950
Code clean up and fix o+
2014-03-26 22:32:45 +01:00
pancake
a727663f98
Add radiff2 -a and -b flags
2014-03-19 10:41:13 +01:00
pancake
f80d659912
Fix java linkage
2014-03-18 00:15:10 +01:00
pancake
53edf7c17d
Merge RCmd inside RCore
2014-03-18 00:05:44 +01:00
pancake
8fb6b41f32
Fix linkage
2014-03-12 17:50:36 +01:00
condret
b202b05774
Add support for GBA roms and update GB opcode table
...
see http://gbdev.gg8.se/wiki/articles/CPU_Instruction_Set
2014-03-12 15:32:29 +01:00
pancake
7c8daf1e70
Refactoring RBinMeta into RBinDbgInfo
2014-03-10 02:27:32 +01:00
pancake
110934227e
Autodetect lang="msil" in .NET PE binaries
2014-02-26 01:13:14 +01:00
pancake
d25cafe4d4
Check Java version in RBin's check(), cleanup (-44LOC)
2014-02-22 00:19:16 +01:00
Fedor Sakharov
dff9e0d420
coff: Remove debug prints.
2014-02-20 14:01:49 +04:00
Fedor Sakharov
d31c3623cc
coff: Let's support TI coff and tms320 files.
2014-02-20 13:39:05 +04:00
Fedor Sakharov
1dafb6b029
coff: Use beginning of .text section if no entry point specified.
2014-02-20 13:39:05 +04:00
Fedor Sakharov
35e84450a3
Adds some fixes to support x86, amd64 and h8000 together.
2014-02-20 13:39:05 +04:00
Fedor Sakharov
7da39c208e
coff: Try to detect coff. Only h8300 now.
2014-02-20 13:39:05 +04:00
Fedor Sakharov
ead69073ed
coff: Small fixups and coff bin object free implementation.
2014-02-20 13:39:05 +04:00
Fedor Sakharov
906bb8b3ff
coff: Implement optional header, symbols and sections.
2014-02-20 13:39:05 +04:00
Fedor Sakharov
7a76f2f3e1
coff: Initial commit
2014-02-20 13:39:05 +04:00
pancake
25809a0887
Fix some warnings and indentations
2014-02-20 03:08:12 +01:00
pancake
987addf9c0
Fix build
2014-02-18 03:09:28 +01:00
pancake
693653068e
Fix strings and main offsets in PE
2014-02-13 01:48:15 +01:00
pancake
1390d9f2d5
Add length and size fields in RBinString
2014-02-11 00:08:12 +01:00