Commit Graph

1527 Commits

Author SHA1 Message Date
pancake
aa04965546 Fix #10586 - Fix oobread in r_bin_java_enclosing_methods_attr_new 2018-07-04 16:59:50 +02:00
pancake
ad5699f63f Fix #10604 - another oobread crash in the java parser 2018-07-04 16:52:05 +02:00
pancake
862a089e43 Revert "Fix #10559 - Overflow in java class parser"
This reverts commit 9cc6dd8fb0.
2018-07-04 15:48:47 +02:00
pancake
afeac9bdca Fix #10603 - oobread crash in java class parser 2018-07-04 15:42:58 +02:00
pancake
812b96a66c Fix #10605 - Remove spaguetti and finish the null deref fix in the java class parser 2018-07-04 11:58:22 +02:00
pancake
d521ba905d Fix #10560 - oobread crash in java class parser 2018-07-02 13:11:19 +02:00
pancake
9cc6dd8fb0 Fix #10559 - Overflow in java class parser 2018-07-02 13:06:20 +02:00
pancake
18c9541216 Fix #10563 - Fix null deref in java 2018-07-02 13:02:59 +02:00
pancake
9d85d55b8d Fix #10561 - null deref in java 2018-07-02 12:56:07 +02:00
radare
e9ce0d64fa
Fix #10498 - Fix crash in fuzzed java files (#10511) 2018-06-27 13:56:59 +02:00
Brenton Morris
e25b62fb03 Fix a few memory leaks for windbg (#10504) 2018-06-27 00:57:56 +02:00
scrapbird
518f980f66 Storing thread entrypoint 2018-06-26 15:31:02 +02:00
scrapbird
c3ec296214 Implementing dpt for windbg plugin 2018-06-26 15:31:02 +02:00
Riccardo Schirone
2df06bd870 Fix ELF issue with null SHT entries (#10449)
* format/elf: extract function to avoid duplicated code
* format/elf: use ut64 to avoid errors in ELF32

Otherwise, while analyzing ELF32, -1 will be interpreted as the unsigned
value 0xffffffff, which is very different from -1 (0xffffffffffffffff).

* format/elf: fix symbols with shndx == SHT_NULL

Symbols with shndx == SHT_NULL should not be listed as symbols but they
should be available when other ELF structures (imports, relocs, etc.)
reference them.

This patch adds those symbols in the symbols_by_ord table but not to the
list of available symbols. Imports/relocs/etc. work by indexing symbols
by symbol index, so they are going to use the symbols_by_ord table and
make everything work.

Moreover, it refactors a bit the relocs function to avoid duplicated
code.

* bin: setimportd/setsymbold should clone the import/symbol
* bin/bin.c: free fields only when sym is not NULL
* format/elf: do not filter out symbols with size == 0 and consider sht_null symbols in shdr too.
* bin/bin.c: create R_STR_DUP macro and use it in _clone functions
* format/elf: when parsing symbols from phdr, stop at first UNK type/bind
* create some R_BIN defines to handle strings related to TYPE and BIND
  in RBinSymbols
* format/elf: add a doc
2018-06-26 13:48:53 +02:00
pancake
c979417eda Fix crash in hbo_class.c-6638_1.class 2018-06-25 09:28:20 +02:00
pancake
a1d79aab1a Fix crash in fuzzed java hbo_class-6223_2.class 2018-06-25 09:28:20 +02:00
pancake
367a541ea8 Fix null deref in fuzzed java classname for npe_r_class.c-1576_1.class 2018-06-25 09:28:20 +02:00
pancake
69371fa6f9 Fix crash in hbo_class-6223_1.class 2018-06-25 09:28:20 +02:00
radare
e766c7dfeb
Upgrade capstone from git (#10471) 2018-06-24 21:53:57 +02:00
pancake
5ba902b95c No imports with spaces on Java, even on error 2018-06-20 16:26:58 +02:00
pancake
19f6cea471 Fix #10409 - heap oobread in java class 2018-06-20 16:14:01 +02:00
pancake
2153021aea Upgrade capstone dependency 2018-06-19 14:48:42 +02:00
Francisco Lopes
21634c7f83 Add Windows 10 (April 2018 Update) WinDbg profile (#10333) 2018-06-16 18:20:03 +02:00
pancake
bceeb37213 Update capstone patch 2018-06-11 02:57:22 +02:00
pancake
afe3792d0f Force embed-bitcode on iOS builds
- Fix typo and improve ios-sdk build
- Don't let capstone set the -arch flags
2018-06-10 03:38:28 +02:00
David CARLIER
19160ff217 Fix macros redefinitions warning (#10284) 2018-06-07 09:41:55 +02:00
David CARLIER
a20078d171 Adding backtrace support to FreeBSD from 10.x release. (#10256) 2018-06-04 16:05:13 +02:00
pancake
d608edffeb Upgrade capstone 2018-06-03 18:17:32 +02:00
radare
f6a04b34c8
Optimize ls_empty() and r_list_empty() (#10244) 2018-06-03 02:20:28 +02:00
pancake
cbeff990a1 Fix last covs 2018-05-30 12:41:57 +02:00
pancake
9473ef7b75 Upgrade capstone 2018-05-30 11:06:56 +02:00
pancake
f933b7fe87 Upgrade sdb to fix a crash 2018-05-28 18:18:47 +02:00
David CARLIER
91d857386b Silent pointer arithmetic warning for capstone (#10206) 2018-05-28 11:03:19 +02:00
pancake
4a3057f9fc s/\r\n/\n/g 2018-05-21 22:13:07 +02:00
sivaramaaa
97de3ff035 Manage types enum more properly (#10139) 2018-05-21 01:54:50 +02:00
Giovanni
855eb16d93 Refactor evars asm.lines.* (#10085)
* asm.linesout > asm.lines.out
* asm.var.submin fix
2018-05-18 10:29:00 +02:00
Paul I
7e9f982849 Meson: some cleanup (#10076) 2018-05-16 10:24:35 +02:00
Jörg Thalheim
9656ba12aa meson: make git executable optional (#10092)
This is useful for reproducible offline builds
2018-05-16 08:32:26 +02:00
s1kr10s
b3e726d734 radare2_fix_xss (#10077)
This is reflected when the web service is used.

I have added an input filter for the invalid characters in the names of the files to analyze, using the encodeHtmlEntity() function, applied in the variable x[0].uri
2018-05-12 14:01:42 +02:00
pancake
e90fd02b97 Upgrade capstone to fix m68k bugs
Revert "Fix #9855 - Enlarge tmpbuf to 128 bytes because capstone code is crap"
- 11f99872f5.
Revert "Fix #9852 - Workaround to avoid capstone-m68k crash"
- 0607b97b01.
2018-05-11 12:51:36 +02:00
radare
9e08da0fa6
Improve build of libr.a and libr.dylib, fix and improve sys/ios-sdk.sh (#10046)
- Update spp and force hidden visibility
- Use R_API wisely
- RSys.prefix returns const things
- Use -install_name on Apple
- Fix merged lib visibility linking on Linux
- Use OSTYPE instead of BUILD_OS
- Honor crosscompiler-objcopy and support android like linux
- Add extra missing archives
- Fix for android
- Upgrade spp and sdb
- Skip libr. from symstall
- Add --enable-merged configure option
- Use --enable-merged on ios-sdk
- Upgrade sdb again for js0n
- Kill sys/ios-shell.sh
- Msvc dynamic build fix
2018-05-09 23:31:52 +02:00
Riccardo Schirone
46fcf21f97 shlr: update sdb (#9912) 2018-04-17 15:57:17 +02:00
Khairul Kasmiran
7ff5a48d78 asm.emu.* ⮕ emu.* 2018-04-14 10:49:08 +02:00
pancake
5cde546971 Fix aae on x86-64, improve Vx, add sys/rebuild.sh tcc, .. 2018-04-11 02:32:27 +02:00
pancake
1adac87918 Update sdb-1.1.0, update calls to sdb_fmt() 2018-04-10 23:52:47 +02:00
pancake
562bd8f65a Upgrade capstone from git 2018-04-10 10:25:26 +02:00
Paul I
6172ec25b1 Meson: fix missing libsdb files (#9803) 2018-04-04 21:58:42 +02:00
Paul I
8675e324ac Meson: add libr_shlr.a building/installation rule (#9789)
* Meson: add libr_shlr.a building/installation rule

* Meson: distribute *.lib/*.a files for Windows by default
2018-04-02 22:33:05 +02:00
Paul I
4f7687287f Meson: Some little fixes (#9783)
* fix shlr libraries names
* fix missing headers for Windows dist
* fix missing format files for Windows dist
* add <static_runtime> option
* add argument with list of additional meson options for sys/meson.py
2018-03-30 23:35:12 +02:00
FXTi
c3f1a5d853 Fix tt command, now support synthetic built-in type (#9777) 2018-03-29 13:22:20 +02:00