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 Add Comment Developer Edit
Welcome! If you don't have a Git account, you can't do anything here.
You can add a comment by following this link or 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

Add a Patch

Pull Requests

Add a Pull Request

History

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

--Jani

 
PHP Copyright © 2001-2021 The PHP Group
All rights reserved.
Last updated: Thu Apr 15 10:01:23 2021 UTC