-
Bug
-
Resolution: Cannot Reproduce
-
P4
-
None
-
1.1.5
-
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.
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.