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

img_colors.c has malloc and use unitialized local variables

    XMLWordPrintable

    Details

    • Subcomponent:
    • CPU:
      other
    • OS:
      solaris_2.5.1

      Description

      The file img_colors.c which is a shared part of the AWT image processing stuff
      contains several bugs.

      One is that init_virt_cmap() mallocs some memory and doesn't check the return
      value. When memory is limited this can cause crashes. There are no failure
      semantics for this routine so it isn't clear what the safest thing to do is
      other than abort.

      There are two routines that use unitialized local variables, img_makePalette()
      uses bestd uninitialized, handle_biggest_offenders uses dEthresh
      uninitialized.

      I've checked both the 1.1.5 C and 1.2P source bases and they still have these
      problems. Please could you get us bug number for them.

        Attachments

          Activity

            People

            Assignee:
            ibdsunw Ibd Ibd (Inactive)
            Reporter:
            duke J. Duke (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: