Commit Graph

419 Commits

Author SHA1 Message Date
pancake
43ff4852ff Revert "Dont dupe map file and name if not necessary ##debug"
* UnRevert RBinName
2023-11-06 09:27:52 +01:00
pancake
88c9dc3d32 Revert "Initial part of a large refactoring using RBinName, unified attributes ##bin"
This reverts commit 1a173e9d29.
2023-11-06 04:11:01 +01:00
pancake
1a173e9d29
Initial part of a large refactoring using RBinName, unified attributes ##bin
* More partial code cleanup with the awful java bin parser
* Some flags has changed, still more to rework, but getting in shape
2023-10-31 14:16:58 +01:00
pancake
c1a17af587 Initial implementation of RBinName and RBinAttr ##bin 2023-10-29 00:16:10 +02: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
5b49064e4c Add progressbar in 'aaa' when scr.demo is set ##analysis 2023-08-29 14:56:08 +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
Luc Tielen
6799fa41af Fix undefined behavior when reading java uints ##shlr 2023-06-05 14:26:41 +02:00
pancake
eb6f28b174 Filter out the java symbols that shouldnt be public in abidiff 2023-06-04 09:51:31 +02:00
Ildar Sadykov
2874ef7125
Implement r_str_tok_r without breaking abi
* reduce the strtok usage
2023-04-17 00:52:31 +02:00
pancake
ce02212bfe Migrate the sparc.gnu plugin ##arch 2023-04-09 01:48:18 +02:00
pancake
f09557c7f8
Fix #14540 - klass->super must be an RList instead of char* ##bin 2022-11-21 19:26:29 +01:00
pancake
a79add6dff
Update sdb to remove double include paths ##build
* Updated pkg-config paths
2022-11-19 01:05:18 +01:00
pancake
7652642373
Deprecate r_str_dup() - related to #20959 ##api 2022-11-07 17:31:30 +01:00
pancake
9a4fe919c6
Prefer _tostring() instead of _to_string() ##api 2022-10-24 20:59:18 +02:00
pancake
a06ade1796
Balance spacings in braces ##indent 2022-10-13 21:21:34 +02:00
pancake
d0de591dc7 R_BIN_NM -> R_BIN_LANG ##api 2022-10-07 16:17:28 +02:00
pancake
df32ab437f Add lang field for classes, symbols and methods, expose it via ic ##bin 2022-10-07 16:17:28 +02:00
pancake
75172066bd Fix wrong condition recently introduced 2022-08-18 20:40:52 +02:00
pancake
7a35f03471 More source spacing linting 2022-08-18 14:37:29 +02:00
Paul B Mahol
c79b5f76cf Fix integer overflow in R_ANAL_JAVA_COND_OP 2022-08-07 00:30:05 +02:00
Richard Patel
dcd740dd53
Refactor a few eprintf to R_LOG_ERROR ##refactor 2022-08-01 00:21:21 +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
pancake
f46c4e793f
Move more local static into the thread-local-storage (#20134) 2022-05-19 12:41:26 +02:00
pancake
ecc44b6a2f Fix oobread in java parser ##crash
* Reported by @bet4it via @huntrdev
* BountyID c8f4c2de-7d96-4ad4-857a-c099effca2d6
* Reproducer: bootstrap.class
2022-04-24 21:53:13 +02:00
pancake
0927ed3ae9 Fix oobread crash in java parser ##crash
* Reported by @bet4it via @huntrdev
* BountyID: 229a2e0d-9e5c-402f-9a24-57fa2eb1aaa7
* Reproducer: poc4java
2022-04-24 21:53:13 +02:00
Lazula
bc877cbef6 Kill dsjson, use PJ for java json, fix java prototypes j 2022-03-01 15:50:39 +01:00
Sergi Àlvarez i Capilla
f8c34ed122 Fix timeout analyzing a small class reported by clusterfuzz ##crash 2022-02-26 15:14:35 +01:00
Sergi Àlvarez i Capilla
6c4428f018 Improve boundary checks to fix oobread segfaults ##crash
* Reported by Cen Zhang via huntr.dev
* Reproducer: bins/fuzzed/javaoob-havoc.class
2022-02-08 15:03:16 +01:00
Sergi Àlvarez i Capilla
a638f6a073 Code cleanup in shlr/java 2022-02-08 15:03:16 +01:00
Sergi Àlvarez i Capilla
b19ad118a5 Move java globals into the tls 2022-02-08 15:03:16 +01:00
Sergi Àlvarez i Capilla
9650e3c352 Fix oobread segfault in java arith8.class ##crash
* Reported by Cen Zhang via huntr.dev
2022-02-07 23:58:09 +01:00
Sergi Àlvarez i Capilla
79b39bb54d Fix java oobread in id_000000,sig_06,sync_m1,src_000048 ##crash
* Reported by Cen Zhang via huntr.dev
2022-02-07 23:58:09 +01:00
pancake
575c26f329 Fix some format string warnings in the mingw ci job 2021-12-21 00:31:28 +01:00
pancake
4327d8322f
Bring back the mingw32 builds ##windows
* Massage conflicting function signatures spotted by mingw
* Fix the spp visibility issue
* Enable 32 and 64bit mingw builds in the CI
2021-11-28 22:10:51 +01:00
pancake
23ad9b50ee
Fix #12335 - ignore system-installed r2 includes ##build 2021-05-28 00:45:48 +02:00
Alexis Ehret
5b1b0c0da6 Fix dead increments 2021-01-25 00:34:58 +01:00
Alexis Ehret
21c98d60ac Remove all dead assignment detect by clang sa (#310) ##rizin 2021-01-19 05:37:17 +01:00
pancake
d3157e2ed3
Fix 32 critical COVs (UAF, UB and OOB) (#18077) 2020-12-21 01:10:22 +01:00
Lazula
243bc871c3 Multiple refactors in io and util ##io ##util ##refactor
* Add r_io_map macros throughout code base
* Update string NULL-checking with renamed functions r_str_get() and r_str_getf()
* Change string NULL-checks throughout code base to use functions
* Add r_str_get_fail() to specify a custom string to return if NULL-check fails
* Mark JSON to be updated with PJ with "TODO PJ"
* Incidental style updates such as missing spaces
2020-12-13 05:09:13 +01:00
Riccardo Schirone
2d160f2509
Avoid sdb double headers (#17249) ##build
* Avoid duplication of SDB headers in libr/include

SDB is an external project and as such it should live in shlr. However,
for simplicity in dealing with the include flags, the SDB headers were
copied in libr/include as well. This patch just keeps the SDB files
confined in shlr/sdb and make sure various r_* libs use the headers from
there.

* Fix pkgconfig file generation
2020-07-21 10:28:43 +02: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