David CARLIER
260a9e64cc
Couple of leak fixes, div by zero avoidance. ( #12338 )
2018-11-27 15:46:56 +01:00
radare
d05292e485
Fix 80 warnings coming from gcc8.2 ( #12280 )
2018-11-22 22:11:43 +01:00
dav1901
8e7aea3198
Minor cleanups ( #12231 )
2018-11-19 22:55:34 +01:00
dav1901
9b0fbf1ee4
Minor code cleanups - free/R_FREE/etc
2018-11-13 00:23:49 +01:00
Stefan Ilic
4e8eed0158
RBinSection now lives in the heap ##refactor
2018-11-05 11:52:40 +01:00
Riccardo Schirone
936512916b
Another RBin API cleanup ##bin
...
* remove R_API from functions not used outside of RBin module
* move not-exported functions to a separate private header
* move bin_private in i/private.h
* fix and use R_IPI
* fix mips_assemble
2018-11-05 11:25:31 +01:00
pancake
5a0ca70d7e
Fix a null assert in java parser and bring back the libr.pc.acr
2018-10-15 22:14:54 +02:00
David CARLIER
036db696d1
Fix couple of leaks. ( #11716 )
2018-10-02 15:24:27 +02:00
David CARLIER
da3d1bb4cc
Fixing few leaks. ( #11707 )
2018-10-02 00:21:29 +02:00
pancake
41ec949204
Fix #11112 - Rename {srwx,flags,perms} to perm. (-21 LOC)
...
Unify R_IO, R_BIN, R_BP, .. into R_PERM_* using 1 letter syntax
2018-09-22 11:31:45 +02:00
radare
51cb301641
Fix clusterfuzz-testcase-minimized-ia_fuzz-5672100065443840.dms ( #11602 )
2018-09-21 08:51:36 +02:00
David CARLIER
1eae637f4b
Fix #11424 attempt. ( #11451 )
...
Deduplicate java function entries.
2018-09-08 18:28:54 +02:00
Paul I
620affc89e
Fix some warnings ( #11152 )
2018-08-20 14:52:02 +08:00
David CARLIER
c6f0342a41
Java plugin: add human readable version. ( #11118 )
...
When possible adding this to the lang value
of the javac compiler used with.
2018-08-17 12:25:42 +02:00
David CARLIER
ada6a28ed9
Fix #11102 Attempt. ( #11108 )
...
When attributes are not read from Java class, there
is a risk of pointer dereference when freeing
afterwards.
2018-08-16 11:04:01 +02:00
Khairul Azhar Kasmiran
672b2a3850
Add hvaddr to iee(j) output; haddr -> hpaddr ( #10899 )
...
* iee(j): add hvaddr
* haddr -> hpaddr
* Minor realignment
2018-08-04 08:17:37 +08:00
pancake
7b66d5f9dd
Java undefined opcodes must be lowercase
2018-08-01 00:57:36 +01: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
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
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
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
Paul I
7e9f982849
Meson: some cleanup ( #10076 )
2018-05-16 10:24:35 +02:00
Riccardo Schirone
170f80d1d7
Remove R_BIN_SCN_MAP flag ( #9744 )
2018-03-22 22:10:07 +01:00
Paul I
69e655fd49
Meson: enable Propeller and Java ( #9639 )
2018-03-09 20:05:47 +08:00
Giovanni
397d6b1211
Fixed shlr java warnings and thread regression warning ( #9447 )
2018-02-21 05:03:03 +01:00
Ziyaddin Sadigov
d4dd6fd5e6
Fix typo regarding byte size ( #9067 )
2017-12-27 18:33:58 +01:00
pancake
0b1e8eaecc
Fix almost all warnings from the msvc build
2017-12-19 00:18:39 +01:00
pancake
702afebc66
Fix Windows build and a bunch of scary warnings
2017-11-06 03:23:21 +01:00
Giovanni
2740763886
Merging all cov fixes ( #8377 )
...
* 1356272 Resource leak
* 1356452,1356450 Resource leak
* flavour + strdup and fixed mistake
* 1361500 Resource leak
* 1360784 Resource leak
* 1367821 Resource leak
* removed missing allocated vars
2017-08-29 13:15:47 +02:00
alvarofe
bbca2d3dff
Trap before in anal_java to avoid continue execution
2017-08-29 00:12:14 +02:00
Giovanni
52826ff3ef
7 more coverity bugs fixed ( #8306 )
...
* 1379842/1379836 Resource leak
* 1379834 Resource leak
* 1379742/1379747/1379748/1379749/1379750/1379747/1379760 Resource leak
* 1379752 Resource leak
* 1379751 Double free
* 1379743 Use after free
* 1379624 Uninitialized scalar variable
* 1379332 Out-of-bounds read
2017-08-26 13:08:53 +02:00
Giovanni
7b40f7aed1
16 more bugs fixed. most are mem leaks. ( #8307 )
...
* 1379261/1379262 Resource leak
* 1379258/1379249 Resource leak
* 1379020 Resource leak
* 1351565/1351564 Logically dead code, 1379019 Uninitialized scalar variable, 1379014 Operands do not affect result
* 1379017 Resource leak
* 1379016 Resource leak
* 1379015 Resource leak
* 1377414 Resource leak
* 1376336 Resource leak
* 1375800 Resource leak
* 1373505/1373509/1373504 Resource leak
* 1373496 Resource leak
2017-08-24 17:20:39 +02:00