al3xtjames / ghidra-firmware-utils

Ghidra utilities for analyzing PC firmware
Other
385 stars 43 forks source link

JNI #1

Open mumbel opened 5 years ago

mumbel commented 5 years ago

Saw a phoronix story walking into work about project. Maybe you're aware, but if not: https://github.com/NationalSecurityAgency/ghidra/issues/175

al3xtjames commented 5 years ago

Thanks for your interest in this project. I've seen the warning against the use of JNI, which is certainly reasonable. Unfortunately I ran into some issues while rewriting the EFI decompressor in Java, which is why I resorted to using JNI for this. Ideally this would be replaced with a Java implementation, but the C implementation of the EFI decompressor is fairly simple (no heap allocations other than the JNI bridge), so I think this should be OK for now. If time allows, I'll revisit the Java implementation of the EFI decompressor.