Test for file open and report error in gutils/gimagereadrgb.c
Check for file errors in gutils/gimagereadrgb.c

Changed getlong and getshort to test for file errors.
Modified getsgiheader readlongtab and other places to exit if file error.
Updated gutils/gimage.c, don't segfault if GImage does not exist yet.
In gutils/gimagereadrgb.c, moved header checks into common routine above.
Exit with NULL if not enough memory in GImageCreate(). Also init ret=NULL
Skip reading the rest of image file if magic number does not match.
In gutils/gimagereadrgb.c, convert r,g,b,a, galloc & gfree to malloc & free

Convert to more standard malloc and free method, plus return error if out
of memory.
Moved the "if ( header.bpc==1 ) {" so that we only need one set of malloc
instead of two.
Split the error exit so that we don't need to report file error if it is
actually a memory problem.
In gutils/gimagereadrgb.c, convert freetab, starttab to malloc & free

Convert to a more standard malloc and free method, plus return error if
out of memory.
In gutils/gimagereadrgb.c, a few long fixes for readlongtab & freeptrtab
In gutils/gimagereadrgb.c, check for file input error and exit.
In gutils/gimagereadrgb.c,, return error if failed to add more memory.
better definition for header in gutils/gimagereadrgb.c

One of the RGB encodings doesn't appear right, so had to seek definitions.
In gutils/gimagereadrgb.c, make find_scanline() check for file errors.

while routine seperated since getthingamy expected to use old getlong(fp).
In gutils/gimagereadrgb.c, corrected color scale for {0..255)
In gutils/gimagereadras.c, fixed ReadRasBitmap(), plus more error checks.
In gutils/gimagereadras.c, fixed ReadRle8Bit(), plus more edits.
Update gutils/gimageread.c with file identifiers
In gutils/gimagereadras.c, fixed ReadRle8Bit()

SUN documents mention scan line is rounded to even 16bits, and cnt is
actually cnt+1 when you have a flag value of 0x80.
Fix crash when comparing fonts

We surely want to check != NULL here, not the other way around.
Merge remote-tracking branch 'upstream/master'