> This is a regression of > [JDK-8212034](https://bugs.openjdk.java.net/browse/JDK-8212034). > When image is loaded in WebView usinga url, WebView attempts to load a image > frames with partial image data. This was > implemented under, JDK-8153148 -> WCImageDecoderImpl.addImageData() -> calls > loadFrames() with partial image data. > > Call to jpeg_read_header() may fail when the partial image data has > incomplete header information. > > In the given case the jpeg_read_header() call fails and code execution flow > enters the 'if > (setjmp(jerr->setjmp_buffer)) {}' block and results in call to > disposeIIO(env, data);, which in turn calls > imageio_dispose. This will free cinfo->err and set it to NULL, and the > subsequent call to (*cinfo->err->format_message) > crashes. Verified All test run, Sanity tests with Ensemble app and Tested > different web pages. Added a test, The test > passes with fix and causes a native crash without the fix.
Ambarish Rapte has updated the pull request incrementally with one additional commit since the last revision: Fixed reiew comments on test ------------- Changes: - all: https://git.openjdk.java.net/jfx/pull/154/files - new: https://git.openjdk.java.net/jfx/pull/154/files/49cb0f36..a452cd62 Webrevs: - full: https://webrevs.openjdk.java.net/jfx/154/webrev.01 - incr: https://webrevs.openjdk.java.net/jfx/154/webrev.00-01 Stats: 235 lines in 3 files changed: 110 ins; 125 del; 0 mod Patch: https://git.openjdk.java.net/jfx/pull/154.diff Fetch: git fetch https://git.openjdk.java.net/jfx pull/154/head:pull/154 PR: https://git.openjdk.java.net/jfx/pull/154