Commit Graph

1540 Commits

Author SHA1 Message Date
pancake
7a8d2a4f75 Update sdb from git 2018-07-19 16:36:27 +02:00
Riccardo Schirone
c932d1abff
meson fixes (#10743)
* r2pm/meson.build: install r2pm
* meson.build: use system libraries when available
* travis: add fedora-sys to the list of things to test
* bin_nso.c: still include lz4.c when not on meson
* Dockerfile.travis: add required system dependencies to dockerfile
* meson.build: split zip_dep in libzip and zlib dependencies
* shlr/meson.build: zip needs zlib
2018-07-17 23:01:40 +02:00
pancake
5553f2ec34 Fix warning in type cast 2018-07-17 17:43:20 +02:00
pancake
9c83d304cc Fix several bugs in java class parser and recent changes in the disasm loop 2018-07-16 13:06:24 +02:00
pancake
29801802d1 Upgrade capstone 2018-07-16 09:43:33 +02:00
pancake
4eec87cdf6 More warnings fixed 2018-07-14 10:58:19 +02:00
pancake
2c85194e7a Fix some warnings 2018-07-14 10:45:55 +02:00
Riccardo Schirone
02f9ddefd1
plugins on meson build (#10716)
* asm: use path macros whenever possible
* meson.build: sync asm and bin plugins with Makefile
* shlr/meson.build: apply capstone patches
2018-07-13 18:19:56 +02:00
Riccardo Schirone
7572f315ea
meson improvements (#10617)
* meson.build: fix meson build when not on git
* meson.build: make capstone a dependency
* meson.build: make r_magic library optional
* meson.build: capstone include is already in the dependency
* meson.build: use dependencies instead of manual linking + includes
* meson.build: add travis
* flag/meson.build: include sdb dependency
* travis-script: print messages based on install system
* io/meson.build: add sdb as dependency
* syscall/meson.build: missing sdb dependency
* {parse,config}/meson.build: add sdb dependency
* travis.yml: pass INSTALL_SYSTEM var to docker
* {bin/shlr}/meson.build: add sdb_dep to r2java and bin
* install meson and ninja-build in r2-travis docker
* travis.yml: allow meson build to fail for now
* anal/meson.build: add sdb and java dependencies
* egg/meson.build: add sdb dependency
* travis.yml: meson build env should be also in the includes list
* core/meson.build: add java dep
* meson.build: use dependencies also to create main r2 dependency
* rasm2/meson.build: replace link_with with dependencies
* rasm2/meson.build: add sdb as dependency
* meson.builds: convert link_with to dependencies and fix tabs
* travis-script: change meson install prefix and set PKG_CONFIG_PATH
* travis-script: add lib64 to LD_LIBRARY_PATH
2018-07-09 16:58:38 +02:00
radare
dbd046be1e
Upgrade capstone (#10660) 2018-07-09 09:23:09 +02:00
pancake
cdbdcaf47b Fix #10602 - oobread crash in java parser 2018-07-04 17:14:04 +02:00
pancake
a55eda166d Fix #10595 - Fix another oobread in the java parser 2018-07-04 17:09:39 +02:00
pancake
ddc9d0a1ef Fix #10596 - oobread in java parser 2018-07-04 17:04:57 +02:00
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