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

Potential memory leaks in jpegLoader.c in error case

    Details

    • Subcomponent:
    • Understanding:
      Fix Understood

      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:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: