Exif errors in CPG 1.2.1 Exif errors in CPG 1.2.1
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Exif errors in CPG 1.2.1

Started by yazoo, March 23, 2004, 05:14:52 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

yazoo

I am using ver 1.2.1 standalone, and when having the exif enabled I get the following error:



Warning: exif_read_data(CG5_0002_25~1.JPG): process tag(x000D=UndefinedTa): Illegal pointer offset(x05CE + x0044 = x0612 > x05EA) in /pub/home/yazoo322/gallery/include/exif_php.inc.php on line 58



Is there a fix for this?

Bill_S

There may be a problem in the exif_php.inc.php code at line 57:
$size = @getimagesize($filename);

Try removing the "@" symbol from in front of the getimagesize function:
$size = getimagesize($filename);
and see if that solves the problem.

I hope this helps.

Bill
I just want it to work!

yazoo

Thanks Bill_S, what you said didn't work but you put me on the right path.

I changed the following


$exif = exif_read_data($filename,0,true);


to


$exif = @exif_read_data($filename,0,true);


And now it works :D

PBas

Yep. That solved my problem!
Thank you both!  ;D

By the way... @  is like an "echo off" on ms-dos?
Sorry. i don't know php.

Joachim Müller

Quote from: PBas on September 02, 2004, 12:53:01 AMBy the way... @  is like an "echo off" on ms-dos?
Sorry. i don't know php.
Yes, it silences the output (error message, if there should be one) of a php command.

Joachim