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

Potential memory leaks in jpegLoader.c in error case

XMLWordPrintable

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

        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.

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

                Created:
                Updated:
                Resolved: