Commit graph

735 commits

Author SHA1 Message Date
pancake
ccfee9fcca Fix many important issues reported by clang-analyzer 2015-11-22 11:27:45 +01:00
pancake
88038a85ad Fix some RBinSymbol->name issues and drop null defs (-211LOC) 2015-11-22 01:09:02 +01:00
pancake
94089be030 Fix bin.smd loading 2015-11-12 12:58:33 +01:00
Jeffrey Crowell
6ea16a56f4 fix some crashes in the NES bin
cc @mossberg
2015-11-12 13:46:56 -05:00
pancake
ad74a6ec6b Move msil and mdmp into radare2-extras, add r2pm pkgs 2015-11-11 11:07:32 +01:00
pancake
495d209a61 Fixes for elf64-pie main identification 2015-11-10 13:00:19 +01:00
pancake
2e9cc2f1b2 Fix issues with DEX flags and class methods 2015-11-09 21:47:11 +01:00
pancake
e37ada9096 Fix some asan issues with latest rbin changes in dex 2015-11-09 18:51:45 +01:00
pancake
164dcada3b More RBin memory usage optimizations 2015-11-09 12:12:18 +01:00
pancake
45de9bc433 Shrink Imports and Strings RBin memory footprint 2015-11-09 04:41:31 +01:00
pancake
baf63a0cba Reduce RBinSymbols memory (smaller footpronum) 2015-11-09 03:41:07 +01:00
pancake
8f48a3b9a7 Fix AVR disasm regression and bin.elf=avr forces 16bit mode 2015-11-05 09:20:47 +01:00
pancake
3d43555a06 Fix #3649 - minidump segfault 2015-11-05 01:47:29 +01:00
pancake
f735557b4e Fix @revskills 0d27cc crash in bin.sms 2015-11-04 19:33:04 +01:00
pancake
dd47aba9a2 Fixes for sys/static.sh 2015-11-01 10:26:38 +01:00
pancake
0648cea3e5 Refactoring of the minidump code for portability and -1500LOC 2015-10-31 17:27:46 +01:00
pancake
a9cbb745aa Fix mdmp linkage 2015-10-31 12:05:10 +01:00
pancake
dced145038 Fix RBin.SMS warns 2015-10-31 11:59:14 +01:00
Dāvis
0494d5fce8 Add support for Windows Minidump (mdmp) files 2015-10-31 11:59:09 +01:00
Anton Kochkov
20c8b7a815 Fix the build 2015-10-31 01:31:19 +03:00
shengdi
d336072850 Initial support for SMS roms 2015-10-30 20:16:12 +01:00
pancake
f03a2a80c8 Some more fixes for SMD and m68k 2015-10-29 14:16:30 +01:00
pancake
97233ecbae Fix #3431 - Implement support for SMD roms 2015-10-29 13:55:03 +01:00
Álvaro Felipe Melchor
7404abda73 Fix crash a84c559 by revskills 2015-10-29 12:57:06 +01:00
pancake
4756e610d9 Add RBin.srcdir and dir.source for asm.dwarf 2015-10-29 12:37:14 +01:00
pancake
7a1b6516c1 Fix java class crash reported by @revskills (db3d80b14..) 2015-10-24 13:20:55 +02:00
pancake
1b88200e31 Add support for 'interpreter' in RBin, ELF and MACH0 2015-10-22 02:13:26 +02:00
condret
c39f33bc77 fix a -Wunused warning 2015-10-22 00:40:29 +00:00
pancake
366ba23b30 Fix ab88f42f9b mach0 crash (reported by @revskills) 2015-10-21 23:46:41 +02:00
Álvaro Felipe Melchor
748564683e Fix #3518 2015-10-20 23:52:34 +02:00
pancake
1b5cd887ce Disobey rabin2 -B if bin is not pie, enhace dmm* and mach0 2015-10-19 02:41:21 +02:00
Álvaro Felipe Melchor
fc5c56edd2 Fix oob in xbe 2015-10-18 22:23:18 +02:00
XVilka
720341c2df Improve -fPIC handling, take 2 2015-10-09 22:24:15 +03:00
Álvaro Felipe Melchor
3423bedc1d Fix covs 2015-10-01 18:36:46 +02:00
pancake
1f165c6012 Fix some compilation warnings 2015-10-01 18:33:37 +02:00
pancake
8c445baa19 Better MBN/SBL header checks 2015-09-29 00:52:05 +02:00
pancake
5ecd98305e Add support for MBN/SBL roms, fix 11acb8392, binsect->has_strings 2015-09-29 00:42:31 +02:00
Maijin
b73fb41cfc Add mem to nes plugin 2015-09-27 17:44:10 +02:00
pancake
8f79f82048 Fix 0576be2359 2015-09-25 10:49:27 +02:00
jvoisin
0576be2359 Small optimizations and coverity-- 2015-09-25 01:51:29 +02:00
pancake
d1f3dc3e08 Some more fixes for exports and PE 2015-09-23 15:01:36 +02:00
Maijin
d298ca5dbc Initial support for NES file 2015-09-20 20:10:03 +02:00
pancake
ec0b19e5f8 Fix thumb entry assumption (thx @ret2libc) 2015-09-17 11:13:34 +02:00
Jeffrey Crowell
9f892f1eed fix some COV 2015-09-17 00:48:07 -04:00
pancake
f10c8ec075 Fix #3296 - Thumb ELF entrypoint assumption 2015-09-17 01:32:13 +02:00
pancake
ae3af810a6 Initial support for Wii/GC DOL binaries 2015-09-16 12:59:52 +02:00
pancake
b86bf19c85 Fix #3051 - Honor CFLAGS everywhere and fix some windows/android warnings 2015-09-14 20:43:11 +02:00
pancake
49975ccf95 Fix #3286 - Use stdbool.h 2015-09-14 02:08:31 +02:00
Riccardo Schirone
879182515d core/bin: rebase only READABLE sections 2015-09-10 23:22:26 +02:00
Riccardo Schirone
6a517aa66b bin/p: add CGC bin format plugin 2015-09-08 23:22:07 +02:00
jvoisin
fbe8b6d938 Once again, clang-analyzer strikes! 2015-09-04 15:12:42 +02:00
jvoisin
dba909b1dd Fix yet-another-batch of clang-analyzer issues 2015-09-01 23:24:11 +02:00
pancake
58d6827bbb Honor R_SYS_BITS in r2 - 2015-09-01 03:41:08 +02:00
jvoisin
e0e170c3c5 Fix various clang-analyser issues 2015-08-28 18:29:31 +02:00
Riccardo Schirone
18eaf1c8c5 format/elf: fix paddr2vaddr and vaddr2paddr conversions 2015-08-26 18:30:33 +02:00
Riccardo Schirone
af20357c2a util/str: fix order of mrwx permissions/flags 2015-08-26 15:25:32 +02:00
Riccardo Schirone
eeef82c2b8 bin: use R_BIN_SCN_MAP flag when a section should be mapped by IO
- io/section: filter sections by looking at R_IO_MAP flag
- util/str: consider (m)apped flag when printing/parsing srwx info
2015-08-26 14:12:46 +02:00
Riccardo Schirone
5663e41177 bin/format/pe: fix imports vaddr
the RVA in the PE header doesn't consider the base address, so we
have to add it in the vaddr field.
2015-08-23 23:33:00 +02:00
inisider
3b378c50ac some refactor and fix code style 2015-08-10 13:48:48 +02:00
inisisder
eca3a781c0 objc class parser code refactoring 2015-08-10 13:48:47 +02:00
inisisder
d8af00ea36 add parsing of objc classes from binary 2015-08-10 13:48:47 +02:00
yetmorecode
54a59efe1d Fixed #3057 - Incorrect physical size in ELF phdr* sections 2015-08-09 13:38:51 +02:00
Álvaro Felipe Melchor
050c2fe9f8 Fix some COVS 2015-07-25 01:26:54 +02:00
David Kreuter
fecb914de8 CID 1216466 Dereference before null check /libr/bin/p/bin_dex.c 2015-07-15 00:39:07 +02:00
pancake
bdfbc4f076 Fix several COVs, and build issues related to appveyour 2015-07-13 11:21:21 +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
Jonathan Neuschäfer
523aa3af5c add .version to all plugins 2015-07-12 19:05:33 +02:00
pancake
a04ead741a Enhace the ARM Thumb pseudo disassemble 2015-07-09 02:00:16 +02:00
pancake
6587c7afab Fix overlapped constant pool region in dex 2015-07-09 01:38:43 +02:00
pancake
7a937e46e1 Fix warns and a cov in arm64 2015-07-08 17:06:55 +02:00
pancake
38defdce3b Fix dex parser segfault and binclass output 2015-07-06 02:50:36 +02:00
pancake
d054008b17 Implement class methods for DEX and make icj 2015-07-06 02:38:54 +02:00
pancake
c10bcdfbea bin.filter class names and hashify raw bytes in name 2015-07-06 00:58:51 +02:00
pancake
c6daf8549f Fix listing classes for DEX binaries 2015-07-06 00:05:03 +02:00
pancake
6ed4d5a94b Comment the mach0's symtab parser, rabin2 -u and more 2015-07-05 03:25:20 +02:00
pancake
cfb8de7c4d Fix DEX entrypoint address to section.code 2015-07-05 00:11:42 +02:00
pancake
cdf56a63f8 Add bin.filter=true config var to avoid dupped symbols and imports 2015-07-04 23:42:48 +02:00
Jeffrey Crowell
be0c7cf457 fix crash on r2 -d empty_file
closes #2846
2015-06-27 11:49:39 -04:00
pancake
b10aa5a0a2 Initial support for loading Android ART binaries 2015-06-17 11:14:41 +02:00
Oleksii Kuchma
0c57a435fc Rewrite MZ bin plugin
* Add const modifiers, fix function call style
* Add checking and using dos_file_size
* Fix number of arguments in load_bytes.
* Add check for NE, LE and LX executables.
* Fix function declaration for btree_traverse.
2015-06-08 22:18:21 +02:00
Álvaro Felipe Melchor
78d5a78609 Fix COVS 2015-06-04 21:27:41 +02:00
pancake
c0b1e5fad3 Fix iOS build 2015-06-04 04:30:48 +02:00
jvoisin
7c096bb1f4 Fix various coverity issues 2015-06-01 21:10:37 +02:00
pancake
22c9b3f0fe Fix #2628 flags offset hashtable issue and Fix #2607 ELF relocs 2015-05-29 00:51:57 +02:00
ampotos
313a4f7fca Fix all problem on remaining in the omf loader except the baddr of the
entry point (because the baddr display is compute with vaddr - paddr
and this value if incorrect for omf file)
2015-05-26 17:55:24 +02:00
Jeffrey Crowell
1fab1e2338 fix relocation on amd64 elf
closes #2607
2015-05-23 10:37:19 -04:00
pancake
e26f86d654 Fix null deref issue in last mach0 commit 2015-05-23 11:43:32 +02:00
pancake
2353737e17 Fix #2602 - Detect Canary and Go in MACH0 binaries 2015-05-23 10:55:44 +02:00
ampotos
b764fb8d93 Fix syntax rules
Fix potential segfault when a malformed omf file is loaded
(malformed omf are going to be pr on radare2-regression)
2015-05-23 10:12:56 +02:00
pancake
d59de8f570 Fix indentation in OMF plugin (-111 LOC) 2015-05-22 13:23:26 +02:00
ampotos
44fd8b2555 omf loader is working but in 32bits omf file the vaddr take the value of the paddr in sections and for both 16 adn 32 bits file vaddr is take as offset to pd command instead of paddr (or i misunderstand how it suppose to work) 2015-05-22 12:47:19 +02:00
pancake
a168075c35 Fix for ASLR ELF entrypoint 2015-05-19 10:58:40 +02:00
pancake
a295e9a6d5 Enforce DEX null checks and fix fuzz regressions 2015-05-11 20:21:08 +02:00
pancake
c687641b17 Fix rbin regression by fixing compiler warnings 2015-05-11 20:04:00 +02:00
pancake
4ced532d69 Tons of fixes and cleanups to make the java tests happy 2015-05-11 18:23:38 +02:00
pancake
b4a11cb3cf Fix main symbol align for thumb 2015-05-06 02:42:35 +02:00
pancake
1bdf7430a8 Handle thumb on MACH0 binaries in a better way + tests 2015-05-05 11:44:00 +02:00
pancake
64103c815c Fix #2466 - Several crashes in XBE loader 2015-04-29 23:40:05 +02:00
pancake
f9300f4ba5 Fix pebble initialization warnings 2015-04-29 11:33:33 +02:00
pancake
c2a0949e0e Fix #2437 - Fix invalid Pebble app header crash 2015-04-25 04:12:55 +02:00
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