Commit Graph

35 Commits

Author SHA1 Message Date
jvoisin
16cac50319 Coverity++ 2015-01-24 11:24:55 +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
f268f23a3d Fix download problems for PDB 2014-12-24 19:14:02 +01:00
inisider
cf384484e8 code refactor 2014-12-23 21:33:08 +01:00
inisider
4841f1e5df Fix bug #1897 2014-12-23 15:17:41 +01:00
pancake
391676dc39 Cleanup the pdb_downloader function (-40LOC) 2014-12-14 23:04:50 +01:00
inisider
f9048c2a44 Add init function of PDB downloader 2014-12-12 15:31:05 +01:00
inisider
ee429365a7 Add JSON support to the PDB parser 2014-11-21 11:28:12 +01:00
jvoisin
acd93d1b37 Fix some cppcheck warnings 2014-11-15 21:48:13 +01:00
inisider
ee1c3b4282 Initial support of pf structs for PDB
- some initial work for build format flag
- add comment with types that need to add
- refactor and support of pf structs
2014-11-13 09:41:20 +01:00
pancake
7e046459f6 Fix some buffer overruns in the PDB parser 2014-11-09 20:01:03 +01:00
pancake
40f202c7ee Fix issue bad string filtering in PDB symbol names 2014-11-09 18:11:03 +01:00
pancake
d973a5d2e6 PDB honors rabin2 -B and -r 2014-11-08 00:23:04 +01:00
Oleksii Kurochko
d0ae63ff23 fix some memory leaks and logic problem 2014-11-07 23:18:54 +01:00
Oleksii Kurochko
58ee5d9455 fix memory leaks in init_pdb7_root_stream() 2014-11-07 23:18:54 +01:00
pancake
1c4886ed6f Check malloc return value in PDB 2014-11-07 11:20:54 +01:00
pancake
960f26fbfa Another PDB fix 2014-11-07 11:13:55 +01:00
pancake
2f03d1dbb6 Fix another crash in PDB 2014-11-07 10:57:14 +01:00
pancake
2352c6a105 Fix out-of-bounds buffer access in PDB 2014-11-07 10:43:59 +01:00
pancake
d9cb7d65fd Fix another crash in PDB 2014-11-07 10:37:18 +01:00
inisider
6b6fadf4dd correct fix of 'invalid write' errors 2014-11-07 09:50:38 +01:00
inisider
c16f59d55e fix invalid writes errors 2014-11-07 09:50:38 +01:00
inisider
b0f0ae4749 fix invalid read errors 2014-11-07 09:50:38 +01:00
pancake
7904ff3058 Fix another crash in the PDB parser 2014-11-05 00:53:08 +01:00
pancake
86676f1a14 Initialize allocs in pdb.c to avoid some crashes in the parser 2014-11-05 00:49:23 +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
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
a2c3647ad0 Somewhat better BoostJam support 2014-10-26 02:47:08 +02:00
pancake
37bc6836e2 Remove noisy pdb messages 2014-10-19 13:53:54 +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