return;
} else {
/* Check to make sure we are not going to go past the ExifLength */
- if (ImageInfo->ThumbnailOffset + ImageInfo->ThumbnailSize > ExifLength) {
+ if ((unsigned)(ImageInfo->ThumbnailOffset + ImageInfo->ThumbnailSize) > ExifLength) {
php_error(E_WARNING,"Thumbnail goes beyond exif header boundary");
return;
} else {
*/
int ReadJpegFile(ImageInfoType *ImageInfo, Section_t *Sections,
int *SectionsRead, char *FileName,
- int ReadAll, char *LastExifRefd)
+ int ReadAll, char *LastExifRefd TSRMLS_DC)
{
FILE *infile;
int ret;
/* {{{ php_read_jpeg_exif
*/
-int php_read_jpeg_exif(ImageInfoType *ImageInfo, char *FileName, int ReadAll)
+int php_read_jpeg_exif(ImageInfoType *ImageInfo, char *FileName, int ReadAll TSRMLS_DC)
{
Section_t Sections[20];
int SectionsRead;
ImageInfo->MotorolaOrder = 0;
- ret = ReadJpegFile(ImageInfo, Sections, &SectionsRead, FileName, ReadAll, LastExifRefd);
+ ret = ReadJpegFile(ImageInfo, Sections, &SectionsRead, FileName, ReadAll, LastExifRefd TSRMLS_CC);
/*
* Thought this might pick out the embedded thumbnail, but it doesn't work. -RL
for (i=0;i<SectionsRead-1;i++) {
readall = Z_LVAL_PP(p_readall);
}
- ret = php_read_jpeg_exif(&ImageInfo, Z_STRVAL_PP(p_name), readall);
+ ret = php_read_jpeg_exif(&ImageInfo, Z_STRVAL_PP(p_name), readall TSRMLS_CC);
if (ret==FALSE || array_init(return_value) == FAILURE) {
RETURN_FALSE;