php.net |  support |  documentation |  report a bug |  advanced search |  search howto |  statistics |  random bug |  login
Bug #10783 getImagesize return false for some jpeg images
Submitted: 2001-05-10 06:10 UTC Modified: 2001-05-16 00:53 UTC
From: phasis at phasis dot co dot kr Assigned:
Status: Closed Package: GetImageSize related
PHP Version: 4.0.5 OS: Red Hat Linux release 6.2 (Zoot)
Private report: No CVE-ID: None
View Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
If you reported this bug, you can edit this bug over here.
(description)
Block user comment
Status: Assign to:
Package:
Bug Type:
Summary:
From: phasis at phasis dot co dot kr
New email:
PHP Version: OS:

 

 [2001-05-10 06:10 UTC] phasis at phasis dot co dot kr
I found some bug in 4.0.5 source distribution 
/ext/standard/image.c

In function php_handle_jpeg,
variable marker must be initialized before for loop
like following

      marker = FP_FGETC(socketd,fp,issock);
      for(;;) {
         ...
         marker = php_next_marker(socketd,fp,issock);
      }

I modified souce code and rebuit php modlue.
Then getImagesize work properly for all jpeg images.

  Park Hee-Sob.



Patches

Pull Requests

History

AllCommentsChangesGit/SVN commitsRelated reports
 [2001-05-16 00:53 UTC] sniper@php.net
should be fixed in CVS now.

--Jani

 
PHP Copyright © 2001-2024 The PHP Group
All rights reserved.
Last updated: Sat Oct 12 15:01:27 2024 UTC