Commit Graph

971 Commits

Author SHA1 Message Date
pancake
f6440fc526 Fix several crashes in dalvik. Thanks nightmare! 2014-11-05 00:15:40 +01:00
pancake
3817068e17 Fix another tiny crash in mach0 2014-11-04 23:26:39 +01:00
pancake
a93d1d496e Fix crash in mach0 parser 2014-11-04 23:22:05 +01:00
pancake
cab0c6ae49 Fix crash in r_utf8_decode 2014-11-04 23:17:52 +01:00
Fedor Sakharov
4c3796a25c Do more proper boundary checking for relocs 2014-11-04 21:56:20 +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
Fedor Sakharov
7ee086326a elf: Fix a typo in elf.c 2014-11-04 13:59:54 +01:00
Fedor Sakharov
d9a78f33b4 bin: Load symbols before relocations 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
pancake
4790375679 Random enhacements for RHex apis and relocs 2014-11-04 02:16:40 +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
c2b54c1344 Fix reloc addresses in .o files 2014-11-03 15:59:58 +01:00
pancake
7b0ee3bad3 Fix coverity issue 2014-11-03 13:55:12 +01:00
pancake
7a1596ebbb Swap paddr <=> vaddr 2014-11-03 13:53:54 +01:00
Fedor Sakharov
6c3b502260 Re-implementation of relocations handling. 2014-11-03 13:43:49 +01:00
pancake
dcfb90ae94 Wip Fix r2 -d oo (workaround, because it's a race condition in fork+pid2path) 2014-11-03 11:47:51 +01:00
Maijin
3e3b222033 Add timestamp 2014-10-31 15:21:52 +01:00
inisider
230bb508a5 Add support of RBuffer instead of FILE
use r_buf_seek and r_buf_read
2014-10-31 02:01:01 +01:00
pancake
3aaa6e980c Control array boundaries for DEX classes to fix #1541 2014-10-28 16:59:23 +01:00
jvoisin
a60d82b800 Fix a lot of warnings for GCC
Less than 20 warnings remaining on my x86_64 GCC 4.9.1
2014-10-26 13:50:58 +01:00
pancake
a2c3647ad0 Somewhat better BoostJam support 2014-10-26 02:47:08 +02:00
pancake
e807868b78 Honor rabin2 -N minstrlen for -z,-zz,-zzz 2014-10-24 20:13:18 +02:00
pancake
131b9092c2 Implement rabin2 -zzz (dump strings to stdout, works on huge files) 2014-10-24 18:26:37 +02:00
pancake
8d815174af Add enums for elf for pfo 2014-10-22 02:30:37 +02:00
pancake
9c7518681c Add elf-32, 64 and pe32 bin/d format files 2014-10-21 14:44:39 +02:00
pancake
329bc84488 Add 'pfo' to open format description files 2014-10-21 11:49:33 +02:00
pancake
37bc6836e2 Remove noisy pdb messages 2014-10-19 13:53:54 +02:00
pancake
586e752da9 Avoid noisy DWARF4 debug printf 2014-10-19 12:43:27 +02:00
pancake
feb2e03bef PDB: errors to stderr, messages to rcons and use RSandBox.fopen()
- Fix some indentations
- Fix an overflow in filename
- Use R_FREE instead of handmade alternative
2014-10-18 19:49:56 +02:00
inisider
83fb5d6ee9 Fix all crashes for fuzz-pdb testsuite 2014-10-18 19:49:51 +02:00
inisider
04a8ad1e7d remove warnings PDB, null ptr checks and add print of ENUM 2014-10-18 19:49:36 +02:00
pancake
bbea37a4e1 Fix build and add some notes to the PDB parser 2014-10-18 19:49:31 +02:00
inisider
621d757487 rabin2: add pdb print infortmation option
Conflicts:
	binr/rabin2/rabin2.c
2014-10-18 19:49:26 +02:00
inisider
d547b037c9 Initial implementation of the PDB parser
* Contains 78 rebased commits

- add R_PDB struct
- add implementation of init_pdb_parser()
- add stub for init_pdb7_root_stream()
- add init_pdb_stream() function
- add functions for working with stream_file
- do fixes for stream_file_read
- add getting of sizes
- save streams to rlist
- add light implementation of read_root function
- add stubs for parsed_pdb_stream_init
- add parsing of pdb info stream
- start of parsing tpi header
- add stub for tpi stream
- fix stream file read. +stubs for eFIELD_LIST
- add parsing of lf_enumerate
- add parsing of lf_nesttype()
- add parsing of LF_METHOD
- add parsing of lf_member
- add some additional parsing of types
- fix some memory leaks
- add support of LF_METHOD and LF_MEMBER
- add support of LF_NESTTYPE
- add support of LF_ENUM
- add parsing of lf_structure
- add parsing of lf_pointer
- start of lf_array implementation
- back implementation of lf_array
- add implementation of LF_MODIFIER
- add implementaion of lf_arglist
- add implementaion of lf_mfunction
- add useful macros
- add implementation of lf_procedure
- add implementation of lf_union
- add free of sval and printf name of sval
- add implementation of LF_BITFIELD
- add implementation of LF_CLASS
- add implementation of LF_VTSHPAE
- start of refactoring
- finish refactor of the code
- fix memory leak issues
- some refactor of memory managment
- fix memory managment
- add supprot of ushort type
- add function for printing type name and value
- add API for getting leaf types members
- refactor of SType and STypeInfO
- add implementation of get_name/val/... for new types
- fix cast in some function of getting name, val, etc
- add stubs for resolving type
- add pointers to function for getting types
- add connections for types function pointers
- add stub for printing structures
- update memory manadgement and fix some problems in API for working with types
- add process of result from init_pdb function
- print more info about structure
- refactor of printing structure info
- Revert of 9fa8e7083c

refactor structure info printing

more pretty print

refactor code

add parsing of dbi header

add structure stabs for dbi stream

add parsing of dbi_ex_headers

add free for dbi stream

finish parsing of dbg stream

add stubs for streams from dbg stream

add fpo parsing

add free for fpo stream and do some refactor

add parsing of gdata stream

add parsing of pe stream

add parsing of fpo new stream

add fpo new stream

add omap stream parsing

add implementation of printing gvars

add setting parameters for pdb_parser

delete unused comments

delete unused comments
2014-10-18 19:49:22 +02:00
pancake
da866539ee Fix 'oo' bug (sync rcorefile and riofile lists), Better 'ob' 2014-10-17 00:04:52 +02:00
pancake
8e381135e4 Add Shdr and struct sizes, fixes for ELF64 with r2 -nn
- Remove debug printfs in 't'ypes
2014-10-16 03:46:58 +02:00
pancake
0e0dc63aa8 Fix r2 -d problem not loading syms. Redo the ASLR/PIE again 2014-10-15 15:41:02 +02:00
pancake
42232354a7 Add 'ai' - address info, Enhace 'ad' (support patterns and sequences)
- ai shows: exec,read,write,flag,func,stack,heap,reg
- Add r_reg_regset_get()
- Implement r2.cmdj in r2.js
2014-10-15 02:24:22 +02:00
Skia
8e7c4c67be Fix double bitfield and double enum in pf 2014-10-13 16:29:03 +02:00
pancake
9201d86558 Fix crash in elf parser 2014-10-11 01:25:45 +02:00
pancake
745f4018e8 Fix several DEX crashes found by Joxean's fuzzer 2014-10-09 13:47:57 +02:00
pancake
abd7bcda90 Hackaround for pie bins 2014-10-08 01:54:09 +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
Skia
6e0285ab90 Fix pf 2014-10-07 17:59:58 +02:00
pancake
f5b578e851 Add some more mach0 headers for r2 -nn 2014-10-05 15:58:31 +02:00
pancake
5cf6900cf9 Fix symbol list on some MACH0 files 2014-10-04 17:44:33 +02:00
pancake
a58789782d Finally fix the brainfuck emulator 2014-10-03 20:05:33 +02:00