Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8212034

Potential memory leaks in jpegLoader.c in error case

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 8, 9, 10, openjfx11
    • Fix Version/s: openjfx15
    • Component/s: javafx
    • Labels:

      Backports

        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.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  arapte Ambarish Rapte
                  Reporter:
                  arapte Ambarish Rapte
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  4 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: