php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #27526 Loading TiFF file crashes Apache 2.0.48
Submitted: 2004-03-08 09:10 UTC Modified: 2004-04-14 11:01 UTC
From: techtonik at tut dot by Assigned: edink (profile)
Status: Closed Package: *PDF functions
PHP Version: 4.3.6RC2 OS: Windows 2000
Private report: No CVE-ID: None
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If you forgot your password, you can retrieve your password here.
Password:
Status:
Package:
Bug Type:
Summary:
From: techtonik at tut dot by
New email:
PHP Version: OS:

 

 [2004-03-08 09:10 UTC] techtonik at tut dot by
Description:
------------
pdf_open_image_file() crashes Apache while attempting to load TiFF file.

Reproduce code:
---------------
<?php

$pdf = pdf_new();
pdf_open_file($pdf);
pdf_begin_page($pdf, 200, 200);

//this function crashes
$pdfimage = pdf_open_image_file($pdf, "tiff", "test.tif");
//pdf_place_image($pdf, $pdfimage, 10, 10, 0.6);
//pdf_close_image($pdf, $pdfimage);

//close it up
pdf_end_page($pdf);
pdf_close($pdf);
$data = pdf_get_buffer($pdf);

?>


Actual result:
--------------
Start of function trace
    0.0021          0     -> pdf_new() C:\MyFiles.XFiles\Numerald\test18.php:5
    0.0025          0     -> pdf_open_file(resource(2) of type (pdf object)) C:\wwwroot\test18.php:6
    0.0029          0     -> pdf_begin_page(resource(2) of type (pdf object), 200, 200) C:\wwwroot\Numerald\test18.php:11
    0.0040          0     -> pdf_open_image_file(resource(2) of type (pdf object), 'tiff', 'test.tif') C:\wwwroot\Numerald\test18.php:14


Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2004-03-08 12:16 UTC] iliaa@php.net
Sorry, but your problem does not imply a bug in PHP itself.  For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system is not the
appropriate forum for asking support questions. 

Thank you for your interest in PHP.

This is a bug in the old libpdf libraries, upgrade your 
library to the latest stable libpdf library avaliable and 
the bug will go away. 
 [2004-03-13 14:10 UTC] techtonik at tut dot by
Why don't you include latest 4.0.3 Pdflib in distributive?
http://www.pdflib.com/support/faq.html#PHP43xforPDFlib403

The BUG is fixed with it. Current version in latest distributive is 4.0.2
 [2004-04-13 16:40 UTC] techtonik at tut dot by
So, will you upgrade PDFlib in PHP distributive to latest available?
 [2004-04-13 17:01 UTC] sniper@php.net
Edin, can you update the used dlls? (latest is 5.0.3 btw..)

 [2004-04-14 11:01 UTC] iliaa@php.net
This bug has been fixed in CVS.

Snapshots of the sources are packaged every three hours; this change
will be in the next snapshot. You can grab the snapshot at
http://snaps.php.net/.
 
Thank you for the report, and for helping us make PHP better.


 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Tue Dec 10 15:01:28 2024 UTC