sejda-pdf / webp-imageio

Java ImageIO WebP support
Apache License 2.0
198 stars 74 forks source link

JVM Crash with SIGSEGV still possible when calling WebP-methods directly #7

Open pbi-qfs opened 3 years ago

pbi-qfs commented 3 years ago

1 fixes the SIGSEGV for the case when WebPWriter is used, only. Since WebP.encodeRGBA, WebP.encodeRGB(and btw. WebP.decode) are public API, the crash can still happen when the methods are called, which forward the object to JNI only by the .fPointer.