Bug #66065 [Opn]: read_exif_data fail with 'Segmentation fault'

From: Date: Fri, 08 Nov 2013 15:52:00 +0000
Subject: Bug #66065 [Opn]: read_exif_data fail with 'Segmentation fault'
References: 1  Groups: php.bugs 
Request: Send a blank email to php-bugs+get-182664@lists.php.net to get a copy of this message
Edit report at https://bugs.php.net/bug.php?id=66065&edit=1 ID: 66065 User updated by: szerencsits dot michael at gmx dot at Reported by: szerencsits dot michael at gmx dot at Summary: read_exif_data fail with 'Segmentation fault' Status: Open Type: Bug Package: EXIF related Operating System: Fedora Core 19 PHP Version: 5.5.5 Block user comment: N Private report: N New Comment: [root@server ~]# uname -a Linux server.localdomain 3.11.4-201.fc19.x86_64 #1 SMP Thu Oct 10 14:11:18 UTC 2013 x86_64 x86_64 x86_64 GNU/Linux Previous Comments: ------------------------------------------------------------------------ [2013-11-08 15:02:00] szerencsits dot michael at gmx dot at Description: ------------ Hello, I installed the php rpm from Fedora 19 and updated it also to the latest available fedora version: [root@server ~]# php -v PHP 5.5.5 (cli) (built: Oct 17 2013 06:05:14) Copyright (c) 1997-2013 The PHP Group Zend Engine v2.5.0, Copyright (c) 1998-2013 Zend Technologies I've I now use read_exif_data to get the EXIF data it fails with 'Segmentation fault'. This happen only with jpg from my 'newer' camera. If I use a jpg from my 'old' camera it work. Here a working and a failing picture: http://zerberus.amolymp.net/fotos/failing.jpg http://zerberus.amolymp.net/fotos/working.jpg Test script: --------------- <?php #filename rdexif.php $exif_data = read_exif_data($argv[1]); print_r($exif_data); ?> run with php ./rdexif.php failing.jpg run with php ./rdexif.php working.jpg Expected result: ---------------- EXIF data ARRAY Actual result: -------------- Segmentation Fault ------------------------------------------------------------------------ -- Edit this bug report at https://bugs.php.net/bug.php?id=66065&edit=1

« previous php.bugs (#182664) next »