upgrade jzbar to v0.5.0 and load its renamed libiconv-2.dll on windows
What changed, and why it matters
This commit updates a barcode-scanning library (jzbar) from version 0.4.0 to 0.5.0 and adjusts the Windows loading path for a companion system file from 'iconv-2.dll' to 'libiconv-2.dll'. On its own, the change appears to be a routine dependency and filename alignment. There is no direct evidence in the commit that it fixes a security vulnerability, but any upgrade of a native-code library can carry unlisted security or stability fixes in the upstream release.
Review the upstream jzbar 0.5.0 release notes and source diff for security fixes. Confirm the new libiconv-2.dll artifact is distributed from a trusted source and that its hash in verification-metadata.xml matches the official release. Consider adding DLL path canonicalization and integrity checks before System.load().
Security signals we found
Dependency version bump of a native-code library (jzbar) without disclosed changelog
Native library loading path change on Windows
No DLL signature/integrity verification visible in the changed code
No vendor statement of security relevance in commit or supplied references
Evidence from the diff
The patch bumps io.github.doblon8:jzbar 0.4.0 → 0.5.0 in build.gradle and refreshes the Gradle verification-metadata.xml SHA-512 hashes accordingly. In ZBar.java it changes the Windows native DLL lookup from
Changed components
build.gradle dependency declarationgradle/verification-metadata.xml artifact trust hashessrc/main/java/com/sparrowwallet/sparrow/io/ZBar.java Windows DLL loaderInspect captured patch +7 / −7
### build.gradle
@@ -110,7 +110,7 @@ dependencies {
implementation('com.github.hervegirod:fxsvgimage:1.1')
implementation('com.sparrowwallet:toucan:0.9.0')
implementation('com.jcraft:jzlib:1.1.3')
- implementation('io.github.doblon8:jzbar:0.4.0')
+ implementation('io.github.doblon8:jzbar:0.5.0')
testImplementation('org.junit.jupiter:junit-jupiter-api:5.14.1')
testRuntimeOnly('org.junit.jupiter:junit-jupiter-engine:5.14.1')
testRuntimeOnly('org.junit.platform:junit-platform-launcher')
### gradle/verification-metadata.xml
@@ -592,12 +592,12 @@
<sha512 value="053336b8372e74d54c04c96f27bf14cb60b6ec3e3d350073817b98d1fefccab589399d879f7100c1d7f009d6cc44441d48a07cb5fd6747bb8ee0acb8042886b4" origin="Generated by Gradle"/>
</artifact>
</component>
- <component group="io.github.doblon8" name="jzbar" version="0.4.0">
- <artifact name="jzbar-0.4.0.jar">
- <sha512 value="8a1f7f16d4889df388c7d8cd54c192e6f264ae8a27573b8d7e9fff4480b634635a6de2586cb7cb80fe2fda596d23ca6a4d1dad7fa2e777bb162377392fd469e0" origin="Generated by Gradle"/>
+ <component group="io.github.doblon8" name="jzbar" version="0.5.0">
+ <artifact name="jzbar-0.5.0.jar">
+ <sha512 value="348ff9e93fdd2b96ea7c93a03a4a8d1b4c8e90dcf88af6aaa291e4f9c259a3fa68c9dbc464573cc8620a2d091590eac36a7a2f2484005827a351c18503f1e7d9" origin="Generated by Gradle"/>
</artifact>
- <artifact name="jzbar-0.4.0.pom">
- <sha512 value="ce8128b6fafc3092a8b12a1516dbc45f8d988d11dd643eabc27ee9e09aef059366c107ad2febece266632f48c8fd5f66d7c645c7a2e687680955a5aa68c9d66d" origin="Generated by Gradle"/>
+ <artifact name="jzbar-0.5.0.pom">
+ <sha512 value="db4b0dc094926d07f557201f636ae8319bd22260f5ec03211ac775055d9e7004599e1a8e0fceaf72c352654a126b7d72d1dabbc93fe22889db175986e68ced94" origin="Generated by Gradle"/>
</artifact>
</component>
<component group="io.github.doblon8" name="openpnp-capture-java" version="0.0.4">
### src/main/java/com/sparrowwallet/sparrow/io/ZBar.java
@@ -25,7 +25,7 @@ private static synchronized void loadZBar() {
String javaHome = System.getProperty("java.home");
if(javaHome != null) {
File libDir = new File(javaHome, "lib");
- File iconvFile = new File(libDir, "iconv-2.dll");
+ File iconvFile = new File(libDir, "libiconv-2.dll");
if(iconvFile.exists()) {
System.load(iconvFile.getAbsolutePath());
}Why this scored 26/100
Community notes
Notes can correct, qualify, or add evidence to the AI analysis. Every note shown here has been validated by a human moderator.
The AI analysis stands alone for now. Submit a note if you can add evidence or important context.