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

img_colors.c has malloc and use unitialized local variables

XMLWordPrintable

    • other
    • solaris_2.5.1

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: