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
Welcome back! If you're the original bug submitter, here's where you can edit the bug or add additional notes.
If this is not your bug, you can add a comment by following this link.
If this is your bug, but you forgot your password, you can retrieve your password here.
Password:
Status:
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-2024 The PHP Group
All rights reserved.
Last updated: Wed Apr 24 13:01:29 2024 UTC