file-xwd: sanity check # of colors and map entries (CVE-2013-1978)
The number of colors in an image shouldn't be higher than the number of colormap entries. Additionally, consolidate post error cleanup in load_image().
parent
32ae0f83
Please register or sign in to comment