Commit graph

64 commits

Author SHA1 Message Date
Sven Steinbauer
8da8ad740f Cleanup fixes
* For commit comments and compiler errors
* Fixes for PR comments
* fix some "infer fixes" commits

Signed-off-by: Riccardo Schirone <sirmy15@gmail.com>
2016-05-23 11:25:44 +02:00
pancake
6261fe32fb bugfixes + testsuite for the Internal Swift demangler 2016-05-03 04:31:36 +02:00
pancake
d2fb776e8f Enhancements in demangler performance and for relocs 2016-04-23 02:02:03 +02:00
pancake
c2b151f8c8 Fix a lot more covs 2016-03-31 13:21:51 +02:00
pancake
273b20294e Add support for swift-demangle if found in PATH 2016-03-24 00:20:59 +01:00
Álvaro Felipe Melchor
9feae374f4 Fix oob read when demangling stripped binary 2016-03-13 19:19:03 +01:00
Riccardo Schirone
5d08aee9af bin/demangle: fix possible SEGV when dereferencing binfile 2016-02-18 13:52:31 +01:00
Álvaro Felipe Melchor
feaaab517b demangle afl and disassembly 2016-02-11 01:32:36 -06:00
pancake
40e08dbd89 Get rid of _Bool 2015-12-01 12:39:12 +01:00
pancake
b5333accaa Fix objc demangle crash (thx @revskills) 2015-11-22 21:56:23 +01:00
pancake
baf63a0cba Reduce RBinSymbols memory (smaller footpronum) 2015-11-09 03:41:07 +01:00
Jeffrey Crowell
20d1886a5a fix a bunch of memleaks 2015-11-01 00:47:16 -04:00
Álvaro Felipe Melchor
7498ddff58 Fix crash demangle in objc reported by revskills 2015-10-29 12:57:06 +01:00
pancake
45c7c923af Better dtc, demangling support. Handle RABIN2_LANG, and more c++ autodetect
* r_name_filter(len:-1) strlens the string
* Show symbol names in `dtc` (calltracer)
2015-10-19 13:21:12 +02:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
inisisder
553e20c3d9 fix segfault and memory leaks 2015-08-10 13:48:48 +02:00
inisisder
d8af00ea36 add parsing of objc classes from binary 2015-08-10 13:48:47 +02:00
Jonathan Neuschäfer
ecf6792318 Fix #2927 and random code cleanups
- asm_dcpu16: remove an obsolete comment
  It was obsoleted in 5285d1bdea.
- Indentation fixes
- fix a few typos
- remove "#define NEW_ESIL"
- move comment about r_bin_filter_name to the right place
- README.md: Add V810 to the list of supported architectures
- Also, de-duplicate LH5801
- Add attribution to randomart.c, fixes #2927
2015-07-12 19:20:36 +02:00
pancake
45a83dc38a Detect Rust binaries in RBinLang for name demangling 2015-06-29 11:22:05 +02:00
Álvaro Felipe Melchor
ccef928dfe Fix some COVs 2015-06-28 20:15:35 +02:00
pancake
1e4638d27e Add -D <lang> all to demangle symbols via rabin2 2015-06-22 11:36:28 +02:00
Álvaro Felipe Melchor
1c7feb2240 Fix some infers 2015-06-20 17:33:09 +02:00
jvoisin
ca883330b0 Fix 3 CID 2015-02-21 22:28:49 +01:00
pancake
e2fd3ae96f Add missing demangler names in array 2015-02-19 22:56:49 +01:00
inisider
208aa0ce8a fix merged problems 2015-02-19 22:49:44 +01:00
inisider
d61353de78 MSVC demangling functions and templates
Contains 13 commits:
- add parsing og operator name codes
- add stubs for parsing function and function params
- remove uunsed code
- add initial printing of demangled functions
- fix some issues according to new testsuit
- add parsing of types abbreviation
- add support of abbreabiation of names
- fix some memory leakage
- small fix for parsing of storage class code for return
- add #undef for macro GET_VAR...
- fix some output for operatorXX()
- add parsing of templates
- isolate abbr. name list for templates
2015-02-19 09:32:21 +01:00
pancake
31e08131d1 Handle RBin demanglers from plugins and support D language 2015-02-11 02:05:22 +01:00
pancake
098d0ec1de Initial implementation of --without-gpl 2015-02-07 01:50:25 +01:00
pancake
c2febd2ffc Drop some noisy magic rules 2015-02-06 23:59:19 +01:00
inisider
cad09fa595 Add Microsoft C++ demangler
- Contains 20 commits:
- init work of demangler
- add some comments
- add parsing of name, class_name, namespace of objects(class and global)
- refactor
- add parsing of some type codes
- add skeleton of state machine for type code parsing
- add parsing of standard type for type codes state machine
- add parsing of type codes: _{J,K,T,Z,W}
- add parsing of types __m** and union
- add parsing of type codes: _m***, struct *
- add parsing of W type codes: enums...
- refactor getting of namespaces and name variables
- add class type code parsing
- add parsing of long double and bool
- add parsing of X * const volatile
- add parsing of * and & ( Q, R, S, A )
- add parsing of array
- integrate some initial part of microsofr demangler to rabin2
- fix some small bugs
- add parsing of variable storage class and do some small fix
2015-02-06 22:50:30 +01:00
pancake
75c322b613 Add bin.lang, rabin2 -D and iD commands to demangle from commandline
- Fix some warnings in windbg
- Minor fix for ARM analysis (wip)
2015-01-10 01:00:01 +01:00
pancake
2ff77e67c7 Fix crash for unknown demanglers 2015-01-02 19:27:31 +01:00
pancake
ded8790518 Initial support for Swift symbol and imports demangling 2015-01-02 04:32:53 +01:00
pancake
67d92749fe Fix a crash in the ObjC name demangling 2014-11-05 01:51:50 +01:00
pancake
2abe699f85 Handle demangled relocs 2014-09-24 12:09:36 +02:00
pancake
8ff5625b6d Minor enhacement for bin.demangle and handle relocs demangling 2014-09-24 11:47:32 +02:00
Fedor Sakharov
8f4b2cdf5b Fix cpp names demangling 2014-09-24 02:08:18 +02:00
pancake
98d33eb084 Fix several segfaults found by matalaz in PE, MACH0 and COFF 2014-05-23 14:34:27 +02:00
pancake
13d0c246eb Fix invalid free in mach0 parser 2014-05-23 13:40:09 +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
pancake
213edb513f Fix all segfaults spotted by my fuzzing tests on MACH0 2014-05-06 12:48:21 +02:00
Anton Kochkov
212e4ebfb6 Fix CID 1208741 2014-04-28 22:45:04 +04: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
Anton Kochkov
f7c8f1cf96 Fix CID 1134970 2014-04-27 05:25:21 +04:00
pancake
7c8daf1e70 Refactoring RBinMeta into RBinDbgInfo 2014-03-10 02:27:32 +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
Maijin
fc122be3ce Resource leaks fixes CID 1134970 2014-01-17 00:13:01 +01:00
pancake
da0c52203b Fix null deref in demangle loop for java classes (thanks l0gic!) 2013-05-14 03:13:49 +02:00
pancake
4cf83c6a63 Detect more c++ bins, demangle symbols and fixes in udis86
Better detection of c++ bins
Handle symbol/import name mangling as code comments
Fix visual menu 'VT'
Fix udis86 call analysis
2013-04-16 03:24:47 +02:00
pancake
2264763336 Fix some bugs reported by clang-analyzer 2013-02-25 11:09:24 +01:00