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

Memory leaks in jpegLoader.c in error case

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 8, 9, 10, openjfx11
    • Fix Version/s: openjfx13
    • Component/s: javafx
    • Labels:

      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

          Activity

            People

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

              Dates

              • Created:
                Updated: