ExifTool Forum

ExifTool => Bug Reports / Feature Requests => Topic started by: jnioche on April 11, 2014, 10:57:22 AM

Title: ERROR Use of uninitialized value in concatenation (.)
Post by: jnioche on April 11, 2014, 10:57:22 AM
Am getting the following error on the file attached with version 9.56 on Linux :

Use of uninitialized value in concatenation (.) or string at /usr/local/share/perl/5.14.2/Image/ExifTool.pm line 3787, <EXIFTOOL_FILE> chunk 2.
substr outside of string at /usr/local/share/perl/5.14.2/Image/ExifTool.pm line 3787, <EXIFTOOL_FILE> chunk 2.


Thanks!
Title: Re: ERROR Use of uninitialized value in concatenation (.)
Post by: Phil Harvey on April 11, 2014, 11:02:34 AM
Wow, nasty.  I'll look into this and post back when I know more.

- Phil
Title: Re: ERROR Use of uninitialized value in concatenation (.)
Post by: Phil Harvey on April 11, 2014, 11:22:17 AM
Thanks for this report!  It was a corrupted CanonCustom2 group that triggered the ExifTool bug.  I will add an extra check and this bug will be fixed in ExifTool 9.57, which will return the following warnings for your image:

> exiftool -exiftoolversion -warning -a ~/Desktop/scf_1628935523274922435.jpg
ExifTool Version Number         : 9.57
Warning                         : Invalid CanonCameraSettings data
Warning                         : Invalid CanonShotInfo data
Warning                         : Invalid CanonAFInfo2 data
Warning                         : Invalid CanonFileInfo data
Warning                         : Corrupted CanonCustom2 group
Warning                         : Invalid ProcessingInfo data
Warning                         : Invalid MeasuredColor data
Warning                         : Invalid SensorInfo data
Warning                         : Invalid VignettingCorr data
Warning                         : IFD1 pointer references previous InteropIFD directory


The "Corrupted CanonCustom2 group" warning is new.

- Phil