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

Potential memory leaks in jpegLoader.c in error case

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • jfx15
    • jfx11, 8, 9, 10
    • javafx

    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

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

                Dates

                  Created:
                  Updated:
                  Resolved: