Commit Graph

378 Commits

Author SHA1 Message Date
xarkes
926f024909 Improved MSVC support (WIP) 2017-05-09 14:25:57 +02:00
pancake
60f9667654 Remove support for bjam build system
- Delete all Jamroot files
2017-05-02 05:48:40 +02:00
pancake
16c73edfa5 Fix 3 null derefs and two overflows in java 2017-04-18 01:16:07 +02:00
pancake
a66cc10d46 Fix a huge list of null derefs from clang-analyzer 2017-04-17 22:02:04 +02:00
pancake
3081163a9e Fix two java crashes 2017-04-11 19:18:14 +02:00
pancake
6eff81c201 Those ones too 2017-03-13 03:53:27 +01:00
alvarofe
bc901a752a Fix some crashes in classes.c (java) 2017-03-12 22:08:22 +01:00
alvarofe
6874c11be2 r2-indent shlr/java/class.c 2017-03-09 00:00:09 +01:00
alvarofe
9ef422090d Fix oob read in java 2017-03-08 23:57:31 +01:00
pancake
2e758020d3 Two more fixes for emscripten 2017-01-19 23:55:16 +01:00
Marc
f78f2b2b16 add haddr for Java entrypoints (#6510) 2017-01-15 23:50:45 +01:00
pancake
ea5c83ce4e Fix a bunch of malloc(0) 2016-11-08 15:09:52 +01:00
pancake
be9df39f6f Fixed 40 null derefs reported by coverity 2016-10-20 15:02:25 +02:00
Álvaro Felipe Melchor
83dffe4e53 Fix oob read in java 2016-06-29 09:28:19 +02:00
pancake
7ff42b590f Fix build and bring back java memleak to avoid crash 2016-06-14 02:54:27 +02:00
pancake
93910d9ce0 Fix memleak in shlr/java 2016-06-14 02:04:26 +02:00
Álvaro Felipe Melchor
21d554846d fix mem leak java code 2016-06-09 18:27:55 +02:00
Álvaro Felipe Melchor
31c4c89e9f Fix #5071 & #5070 (#5084) 2016-06-08 13:14:36 +02:00
pancake
d3394d5a7a Fix latest 28 COVs 2016-06-02 03:19:31 +02:00
Sven Steinbauer
547f8bbc5c Infer fixes Round 2 (#4993) 2016-05-24 22:22:15 +02:00
Ahmed Mohamed Abd El-MAwgood
f7c47bf575 fixing all Use-after-free errors reported by llvm (#4924) 2016-05-18 11:41:12 +02:00
Joshua J. Drake
fad425ec06 Fix perror calls that already pass the function name 2016-05-14 08:42:56 +03:00
pancake
8ae1fc262c Fix CID-1354605 - memleak in java/class 2016-04-17 19:32:21 +02:00
pancake
66be16b433 Fix java disasm trailing space issue 2016-04-11 01:48:50 +02:00
Álvaro Felipe Melchor
67030c2137 Fix #4574 2016-04-10 23:30:46 +02:00
pancake
4e0a71c0c3 Fix #4573 - fix oobread in java disassembler 2016-04-10 01:23:18 +02:00
pancake
bb727ffe8d Fix 54c7e9df85 2016-04-10 00:46:34 +02:00
Jeffrey Crowell
54c7e9df85 fix #4562
really this java stuff is a mess...
2016-04-09 17:11:31 -04:00
pancake
6c1e2c3aef Aim to fix the tcc build 2016-02-28 22:39:44 +01:00
William Robinet
0c7cacc2dc Fix typos 2016-02-16 23:21:24 +01:00
pancake
44a86928cc Fix some of the warnings in #4013 2016-01-27 03:14:19 +01:00
pancake
e56be2fbd5 More multi-arch static build archive fixes for iOS/OSX/tvOS/WatchOS/*OS 2015-12-28 18:31:05 +01:00
jvoisin
3727f0794d Change the anti pattern if (A) free (A); for free (A); 2015-12-20 19:28:39 +01:00
alvaro_fe
a6e4d6b93e Fix #838 2015-12-16 11:40:23 +01:00
Álvaro Felipe Melchor
d8b269f11f Fix last covs 2015-11-24 21:53:25 +01:00
pancake
ccfee9fcca Fix many important issues reported by clang-analyzer 2015-11-22 11:27:45 +01:00
pancake
9056a608cb More Java build fixes 2015-11-20 16:53:58 +01:00
pancake
5f84e0953c More java cleanup and early fail to avoid overflows 2015-11-20 16:39:12 +01:00
pancake
f188ef836e Fix java build 2015-11-20 16:08:24 +01:00
pancake
b5b8d3db62 Some random code cleanup in Java code (-140LOC) 2015-11-20 16:00:35 +01:00
pancake
6e67049d6f Fix infinite loop, bring back the java crash to greenify 2015-11-20 14:46:23 +01:00
pancake
4d4db25181 Fix another java crash reported by @revskills 2015-11-20 00:42:44 +01:00
pancake
5f8c35a7dd Fix small warning 2015-11-13 22:38:07 +01:00
pancake
55800c1ed7 Fix r_str_ndup 2015-11-09 21:54:57 +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
eabffa1dba Fix 7cc0970 java crash 2015-11-05 12:49:27 +01:00
Álvaro Felipe Melchor
c928bd96c3 Fix issues reported by clang-analyzer 2015-11-02 18:22:14 +01:00
pancake
af083cd2a7 Let the java code leak until properly rewritten 2015-10-31 12:14:42 +01:00
pancake
691e0c8c1a Fix latest COVs 2015-10-31 12:06:40 +01:00
Álvaro Felipe Melchor
5543f73cb1 Fix some covs 2015-10-29 23:39:49 +01:00
Álvaro Felipe Melchor
0e21163f8e Fix crash java 5a1a113 by revskills 2015-10-25 16:59:06 +01:00
pancake
9ff2cb4e5b Fix #java #parser regression introduced in 7a1b6516c1 2015-10-25 02:31:42 +02:00
pancake
0c1345028f Fix 8338cc1424 from @revskills 2015-10-24 23:36:26 +02:00
pancake
2ecc0f9a02 Fix crash for another @revskills fuzzed java class 2015-10-21 23:54:38 +02:00
pancake
2fab2fcdbe Fix java crash 2015-10-21 15:42:36 +02:00
pancake
78cb412a6d Fix a null deref in some class fuzz case 2015-10-21 12:48:16 +02:00
Anton Kochkov
5a3dab0a86 Fix the build 2015-10-10 00:27:42 +03:00
XVilka
720341c2df Improve -fPIC handling, take 2 2015-10-09 22:24:15 +03:00
Anton Kochkov
82eed6f2a5 More standard C and TCC fixes 2015-10-06 01:29:26 +03:00
Anton Kochkov
6204f2a59d Remove erringly written semicolon in structure 2015-10-06 00:46:44 +03: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
pancake
a5655dff9b A bit dsojson leak just to avoid a crash 2015-09-01 18:44:37 +02:00
pancake
7157cf92b7 Fix some covs 2015-09-01 11:24:09 +02:00
pancake
9c8c017f40 Fix #3192 - dsojson double free and code cleanup (-34LOC) 2015-08-31 21:58:59 +02:00
pancake
4322640635 Fix class method naming 2015-08-26 15:00:30 +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
jvoisin
145d8dd5ae Fix a few warnings 2015-08-18 16:21:21 +02:00
pancake
6ced6fa8b4 Refix binfile path issue and remove unused code in dsojson 2015-08-16 22:41:58 +02:00
pancake
9e08fb0c26 Update sdb and fix shlr/sdb race condition 2015-07-15 00:52:23 +02:00
pancake
e2c9783402 shlr/ build fixes 2015-07-14 12:50:36 +02:00
pancake
90529aa80b Some more appveyour changes 2015-07-14 00:44:09 +02:00
pancake
bdfbc4f076 Fix several COVs, and build issues related to appveyour 2015-07-13 11:21:21 +02:00
pancake
a9e5043d14 Fix build 2015-04-02 18:35:04 +02:00
jvoisin
0c144f16bc Even more coverifixes 2015-06-02 22:59:30 +02:00
Álvaro Felipe Melchor
d4fc6d46f5 Fix java regression 2015-05-29 18:40:50 +02:00
pancake
8d44eca10a Fix #2593 - crash in java class parser 2015-05-29 14:15:10 +02:00
pancake
acd2ab9cb5 Fix w32 build. UINT macro redefined by windows 2015-05-29 09:49:47 +02:00
pancake
f60a8f361b Fix Java disassembler for Mac t.anal/java/java 2015-05-29 02:46:49 +02:00
Álvaro Felipe Melchor
6b5460c6a4 CID 1297911 2015-05-22 12:46:14 +02:00
pancake
bf1e8b88cc Fix huge analysis times for Java 2015-05-19 10:58:44 +02:00
Álvaro Felipe Melchor
f2d740a12a Fix #2561 2015-05-12 23:22:29 +02:00
Álvaro Felipe Melchor
4723a56839 Fix #2553 2015-05-12 23:22:29 +02:00
pancake
85993e5aba Bump sdb again to get initial grep support 2015-05-12 03:08:38 +02:00
pancake
16271e2c95 Fix all java broken tests. Still more to work on 2015-05-11 18:30:06 +02:00
pancake
4ced532d69 Tons of fixes and cleanups to make the java tests happy 2015-05-11 18:23:38 +02:00
pancake
170b881617 A bit Java Class parsing cleanup (still a huge mess) 2015-05-11 16:44:31 +02:00
pancake
5d1ff72c56 Fix #2453 - Fix crash in Java CLASS parser 2015-04-29 23:55:03 +02:00
Álvaro Felipe Melchor
72b30d01b9 CID 1295060
CID 12950549-52
2015-04-26 22:40:42 +02:00
pancake
db7dd25920 Fix #2434 - Add INFINIT/NAN for non-c99 compilers 2015-04-25 04:22:44 +02:00
pancake
5187d37c13 Fix latest covs 2015-04-15 12:13:50 +02:00
Jeffrey Crowell
7a9ac6ae54 coverifix! 2015-04-13 00:43:42 -04:00
Álvaro Felipe Melchor
c9ba88136d Fix java section perms 2015-04-13 01:34:05 +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
Kamil Rytarowski
345403f0ea Honor zip configure linkage 2015-02-23 01:07:05 +01:00
jvoisin
a61ea4e70a Coverifix++ 2015-02-19 01:53:11 +01:00
jvoisin
a4ba5f64f5 Even more Coverifix 2015-02-19 00:27:00 +01:00
jvoisin
2f6793a262 Coverifix 2015-02-18 00:29:35 +01:00
jvoisin
a193e54eac Coverifix 2015-02-17 00:34:51 +01:00
jvoisin
123a77c022 Coverifix 2015-02-11 19:05:28 +01:00
jvoisin
5ad3afb628 Coverifix 2015-02-11 17:55:25 +01:00
pancake
dc75cb2320 Fix the rest of base64 warnings 2015-02-10 00:05:18 +01:00
jvoisin
16cac50319 Coverity++ 2015-01-24 11:24:55 +01:00
jvoisin
a8937732b8 Fix all 'warning: function declaration isn’t a prototype [-Wstrict-prototypes]' 2015-01-13 03:40:35 +01:00
pancake
64e9254b82 Fix #1840 - Fix formating for type Java CP values 2014-12-18 01:54:04 +01:00
pancake
65b580dbfc Fix #1833 - AFL crash in r_bin_java_read_next_attr_from_buffer 2014-12-16 22:36:53 +01:00
Sébastien Duquette
e45a8a3a0b fix for issue #1834, handle NULL pointer return value from r_bin_java_read_next_attr_from_buffer() 2014-12-16 00:09:27 +01:00
pancake
59d2bb69a6 Fix static build 2014-12-07 19:45:43 +01:00
pancake
7af9bf009a Fix some more crashes for the Java CLASS and XBE RBin parsers 2014-11-05 02:09:00 +01:00
pancake
151cbf4d9b Fix some more out of buffer accesses in the java class parser 2014-11-05 01:43:23 +01:00
pancake
dd131e15d0 Fix stack exhaustion bug in Java class parser 2014-11-05 01:31:33 +01:00
pancake
e93b0727c2 Fix crash in Java CLASS parser 2014-11-05 01:21:05 +01:00
pancake
514b120a94 Fix a read-out-of-bounds bug in the java class parser 2014-10-09 14:05:31 +02:00
pancake
8a3b127fb4 Fix crash in Java class parser (thanks Joxean) 2014-10-09 13:56:27 +02:00
deeso
55fe0a9e9a Added command that 'bruteforces' the parsing of a class file in a blob of data 2014-09-20 19:46:21 +02:00
jvoisin
86c3d0e70f Fix some trivial coverity issues 2014-09-20 15:56:34 +02:00
pancake
4c4173769b Revert "Fixing the issue where file size exceeds size of an integer":
3adb00621b
e2afa84443
0761955fdb
17cc18fad0
135c62fb5d
2014-09-20 15:33:59 +02:00
Adam Pridgen
135c62fb5d Fixing *most* warnings related to the change in r_file_slurp 2014-09-17 22:37:54 -05:00
deeso
f3ff9caa14 Java unmangling lacked a 'short' type. fixed 2014-09-13 18:19:34 -05:00
pancake
b73ad255e8 Do not use stdint 2014-09-13 17:47:56 +02:00
deeso
083394175c Adding JSON output for the java prototypes
- Created a simple JSON string builder lib so its
  easier to build the JSON strings.
- Fixed errors and missing symbols on Mac Build
2014-09-13 17:37:11 +02:00
Anton Kochkov
ab1a7e992b Fix Mingw32 building, again 2014-08-15 16:51:51 +04:00
deeso
684b459c20 Bug in the code flipped jump and case value of the switch op, remove dangling in_switch key, and add a formal "case" op-type
and changed some strings back to "static" from "R_API"
2014-08-13 03:12:23 +02:00
jvoisin
975daf00f5 Coverifix 2014-07-30 22:26:13 +02:00
jvoisin
8fdfefb080 Fix coverity issues (and some PE tests \o/) 2014-07-24 02:05:17 +02:00
jvoisin
431ba75557 Fix some coverity issues 2014-07-21 23:14:25 +02:00
Anton Kochkov
445dde9ba8 More improvements for cygwin and mingw32 building 2014-07-10 02:21:41 +04:00
Anton Kochkov
17b07d4623 Remove -fPIC for cygwin builds - stage 2 2014-06-25 21:32:03 +04:00
pancake
097cd2b04b Fix android build 2014-06-25 04:57:41 +02:00
pancake
18cc1af08c libr_java must be PIC 2014-06-25 04:50:05 +02:00
pancake
b3b5bfe8f3 Minor fix 2014-06-25 04:33:42 +02:00
pancake
046b014dee Make bin/core java plugins use libr_java.a 2014-06-25 04:25:38 +02:00
pancake
1a3ffef8b4 Fix static build 2014-06-25 04:11:43 +02:00
pancake
377b5bb2fe Clean a huge list of warnings 2014-06-25 02:07:38 +02:00
pancake
a1224b2156 Refactor rva > vaddr and offset > paddr.
That change may make mixing vaddr and paddr more visible
2014-05-21 03:18:00 +02:00
Anton Kochkov
12037a14aa Fix CID 1214298 2014-05-17 03:44:05 +04:00
pancake
962ac8d307 Fix all java warnings 2014-05-12 10:16:15 +02:00
pancake
bd82919761 Iinitial warning cleanup 2014-05-12 04:06:40 +02:00
pancake
216c183b6e Remove tons of useless 'if (x) free (x)' 2014-05-09 17:40:28 +02:00
deeso
8802b42ca0 removed some unused variables, and grouped unused functions which happen to be used by different components 2014-04-30 20:42:05 -05:00
deeso
4dbc9916e8 Fix double assignment. 2014-04-29 23:38:35 -05:00
deeso
ce7f33480e fixing warnings (not the unused ones) in various files 2014-04-28 12:58:35 -05:00
deeso
f5310ee921 Fixed Java warnings relating to parameters not being void * for free functions 2014-04-25 20:34:19 -05:00
deeso
5f6f8064d9 Fixed some issues in bin/dwarf.c and Fixed 1205194, 1205193, 1205192, 1205202, 1205203, 1205204, 1205205, 1205209, 1205208, 1205207, 1205206 2014-04-25 15:14:57 -05:00
deeso
dd07844436 Fixing some Null Dereference Bugs courtesy of coverity 2014-04-22 18:39:17 -05:00
Adam Pridgen
ea94ae5c2c Fix CID: 1204243, 1204247, 1204246, 1204245, 1204244 2014-04-20 23:55:50 -05:00
deeso
e1378efd69 in shlr/java/code.c changing BYTES_CONSUMED 'volatile' to 'static volatile' 2014-04-20 17:28:02 -05:00