You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
-**Original Issue**: Native library was extracted to `/tmp/libjssl.so` with hardcoded path, causing race conditions and security risks
28
+
-**Initial Fix**: Changed to use `Files.createTempFile()` with unique names and `deleteOnExit()`
29
+
-**Critical Issue Discovered**: `Files.createTempFile()` depends on SecureRandom which is not available during provider initialization in FIPS-compliant JDKs, causing NullPointerException
30
+
-**Final Fix**: Replaced `Files.createTempFile()` with manual temp file creation using `System.currentTimeMillis()`, thread ID, and class hashcode for uniqueness
31
+
-**Impact**:
32
+
- Eliminates the circular dependency on SecureRandom during provider initialization
33
+
- Prevents NPE in FIPS-compliant JDK environments
34
+
- Deletes temp file immediately after loading instead of using `deleteOnExit()` to prevent memory leaks
35
+
- Cross-platform compatible with fallback directory chain
36
+
- Allows the provider to be loaded successfully in FIPS mode
0 commit comments