(libX11-1.6.3) Using Uninitialized of object member variable when calling _XColor_to_XcmsRGB
Submitted by Bhavi Dhingra
Assigned to Xorg Project Team
Description
Created attachment 118472 This patch contains the fix for the bug.
In libX11/src/xcms/cmsLkCol.c, Line #171 & #172, _XColor_to_XcmsRGB is called with uninitialized variables passed as arguments. The value of the arguments are read in the definition of _XColor_to_XcmsRGB and assigned to another object's member variable.
Hence, initializing it with NULL is necessary.
Attachment 118472, "This patch contains the fix for the bug.":
cmsLkCol.patch