iFixed bug #72446 - Integer Overflow in gdImagePaletteToTrueColor() resulting in heap overflow
long lsqrt (long n)
{
 	long result = (long) sqrt ((double) n);
	return result;
}

long lsqrt (long n)
{
 	long result = (long) sqrt ((double) n);
	return result;
}
