Bugzilla – Attachment #25619: multiplication overflow check prototype for bug #62677
if(local_colour_map) readcolmap(in);
if ((width <= 0) || (height <=0 ) || ((size_t ~0)/width/height/3 == 0))
{
fclose(in);
return(0);
}
if((image=malloc(width*height*3))==NULL)