Commit graph

61 commits

Author SHA1 Message Date
phix33
fa57dc0681 Fix signed/endian branch-target analysis in vax, dalvik, xap, arm.gnu and java ##arch 2026-05-30 03:52:13 +02:00
pancake
422894a901
Dead java code removal -1100LOC 2026-04-11 12:13:08 +02:00
pancake
0f413e9a58 Solve w64 warnings casting enums to ut32 2026-01-09 14:23:45 +01:00
pancake
948fc82425
Simplify some more java apis 2026-01-04 16:23:28 +01:00
pancake
21330a31bf
Remove globals from the java library -350LOC ##refactor 2026-01-02 14:08:45 +01:00
pancake
ef07eda1d9 Fix Java glitch caused by invalid logic handling switch tables ##arch 2024-12-11 10:28:48 +01:00
satk0
ebd8bf9042
Replace r_return_val_if_fail with uppercase alternative 2024-08-05 12:26:32 +02:00
pancake
8e90149867 Fix #22523 - 1 byte oobread in the java disassembler ##crash 2024-01-04 16:53:09 +01:00
pancake
697f50e96b off by one check 2023-10-19 18:22:49 +02:00
pancake
1bdda93e34 Fix oobread in the java disassembler ##asan
* Causes UB when performing analysis, not exploitable
* https://huntr.com/bounties/bbfe1f76-8fa1-4a8c-909d-65b16e970be0/
* Reported by @gandalf4a
2023-10-19 17:50:11 +02:00
pancake
b1c1219886 Mark java tests as broken until the arch refactor is done ##arch 2023-06-21 21:20:10 +02:00
pancake
beaf261fb7 Fix another oobread in the java bin parser 2023-06-18 11:33:16 +02:00
pancake
f6bbef2767 Fix two more oobreads in the java parser 2023-06-17 22:44:23 +02:00
pancake
30c55703ea Fix oobs in the java parser, use RLOG and stop earlier ##crash 2023-06-17 22:33:15 +02:00
pancake
878fb589ab Fix some oobreads in the java and dalvik disassemblers 2023-06-17 19:04:09 +02:00
pancake
d72e6a65ae Fix 1byte oobread bug in the java decoder spotted by arch 2023-06-07 13:09:41 +02:00
pancake
d6d14b2a71 Add spacing linting checks for public function signatures 2022-07-27 10:34:24 -04:00
pancake
8c80cfe7d9 Fix #20405 - Multiple fixes and improvements in projects ##projects
* io maps are now saved and restored
* add an extra test and review/update others
* Use omu in om* and run o*;om* in P
* Better handling multiple P subcommands and help msg
* Use more R_LOG instead of eprintf
2022-07-05 10:56:04 +02:00
pancake
d93c452768
Merge asm.java into anal.java ##refactor
* Exposes an asm.assembler bug so we disable that for now

Co-authored-by: Richard Patel <me@terorie.dev>
Co-authored-by: pancake <pancake@nopcode.org>
2022-07-03 11:15:20 +02:00
Alexis Ehret
21c98d60ac Remove all dead assignment detect by clang sa (#310) ##rizin 2021-01-19 05:37:17 +01:00
pancake
160fc95e66
Use (void) instead of () in function signatures (#17026) ##refactoring
* Use (void) instead of () in function signatures
* Add test to avoid further contributions to commit the same mistake
2020-06-14 16:08:32 +02:00
Florian Märkl
3ead80cca8 Remove Custom Analysis for Java (#15817) ##anal 2020-01-16 11:25:49 +01:00
Ziyaddin Sadigov
d4dd6fd5e6 Fix typo regarding byte size (#9067) 2017-12-27 18:33:58 +01:00
pancake
770f3e752f Fix #7932 - Support relative addresses in java assembler 2017-07-17 12:17:53 +02:00
pancake
87fe418092 Fix #7706 - Enhance the Java assembler 2017-06-24 19:58:48 +02:00
pancake
66be16b433 Fix java disasm trailing space issue 2016-04-11 01:48:50 +02:00
pancake
4e0a71c0c3 Fix #4573 - fix oobread in java disassembler 2016-04-10 01:23:18 +02:00
pancake
f60a8f361b Fix Java disassembler for Mac t.anal/java/java 2015-05-29 02:46:49 +02:00
pancake
1a3ffef8b4 Fix static build 2014-06-25 04:11:43 +02: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
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
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
deeso
98e5d1af93 Fixing a bug, where the BYTES_CONSUMED in the java analysis was not updated 2014-04-19 22:45:03 -05:00
Adam Pridgen
d876dec7ee Adding java command to help identify external calls, reads, and writes 2014-04-02 17:02:23 -05:00
Adam Pridgen
6bc694f873 Added colorization to pdn and added a dead code warning if all the bytes in a method are not consumed during analysis. 2014-04-01 16:22:56 -05:00
pancake
6a835f159d Fix static link 2014-03-18 01:36:54 +01:00
pancake
25809a0887 Fix some warnings and indentations 2014-02-20 03:08:12 +01:00
Adam Pridgen
8f72843498 Refactoring java constant pool resolution 2014-02-18 22:29:03 -06:00
Adam Pridgen
27674ad03e Fixed Java crashes and case statements for anal and print disasm by adding
a reset_counter (added to RAnalPlugin) or reset method address at the beginning
of each print disasm or analysis.  Also fixed a bug in reflines.c/disasm.c,
s.t. lines will be respected when printing disasm.
2014-02-15 09:42:14 -06:00
Adam Pridgen
c3d551c024 Adding #%d in place of WTF for more informative java disasm 2014-01-13 18:48:56 -06:00
Adam Pridgen
20ac1d48e3 fixed an overflow condition in java utf8 strings 2014-01-12 22:47:34 -06:00
Adam Pridgen
9bdd742a43 Fix null pointer issues with java's use of sdb. Re-did the way keys for cp object, methods, and fields are entered into the sdb. Updated the way bin objects are referenced in asm and anal plugins for java. 2014-01-10 00:35:25 -06:00
pancake
cded178fdb Fix 80 warnings and 1 segfault in shlr/java 2014-01-09 16:18:25 +01:00
Adam Pridgen
bc2ee1f869 Improved plugin analysis allowing plugin developers to define custom
analysis algorithms.
Java analysis plugin is re-written to leverage this capability.
Added some new R_ANAL types, and some of the respective operations and strings.
Updated io-component files to get file size and info
2014-01-03 00:28:46 +01:00
Adam Pridgen
9494c5b405 Fixed coverity defects 2013-12-24 19:06:00 -06:00
Adam Pridgen
77bc339184 Added cp_opj info into the sdb. CP Info is a primitive serialization that describes the file location, type, and values (dependant on type) in a dotted string format. 2013-12-22 01:56:18 +01:00
Adam Pridgen
ddf540d0ab Squashed merge of @deeso's pullreq for the Java RBin plugin
Added basic interpretation of java access flags for classes, fields, and methods
Added a visibility_str to RBinSymbol and RBinClass, and updated getters in Java
Added minstrlen to bin_java plugin struct
Fixed bin->minstrlen not being set in r_bin_init_items
Fixed iinc instruction.
2013-12-17 02:23:16 +01:00
Adam Pridgen
1289476120 Cleaning up functionality and fix some bugs for Java 2013-12-06 05:42:35 +01:00