JDK-8212034 : Potential memory leaks in jpegLoader.c in error case
  • Type: Bug
  • Component: javafx
  • Sub-Component: graphics
  • Affected Version: 8,9,10,openjfx11
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2018-10-11
  • Updated: 2020-06-22
  • Resolved: 2020-03-06
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 8 Other
8u261Fixed openjfx11.0.8Fixed
Related Reports
Blocks :  
Relates :  
Description
The native code in jpegloader.c allocates a range of memory areas with malloc, but does not free those in error cases.

For example
1. In jpegloader.c :: initDecompressor(),   cinfo->src, cinfo, jerr_mgr are not freed in error case.
2. In jpegloader.c :: decompressIndirect(),  scanline_ptr, is not freed in error case.
Comments
Changeset: f25e8cf2 Author: Ambarish Rapte <arapte@openjdk.org> Date: 2020-03-06 08:23:04 +0000 URL: https://git.openjdk.java.net/jfx/commit/f25e8cf2
06-03-2020