[ wxwindows-Bugs-1711472 ] wxPNGHandler::DoCanRead wrong magic number

SourceForge.net noreply at sourceforge.net
Wed May 2 21:50:01 PDT 2007


Bugs item #1711472, was opened at 2007-05-02 21:57
Message generated for change (Comment added) made by csomor
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1711472&group_id=9863

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: Common
Group: Must fix
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dr. Harald Meyer auf'm Hofe (harald_meyer)
Assigned to: Nobody/Anonymous (nobody)
Summary: wxPNGHandler::DoCanRead wrong magic number

Initial Comment:
wxPNGHandler::DoCanRead in imagpng.cpp tests for magic number 0x0211. Correct one: 137 (decimal, should be 0x089). wx.NET imghandler.cxx includes a small subclass that fixes problems with image detection within the HTML control.

----------------------------------------------------------------------

>Comment By: Stefan Csomor (csomor)
Date: 2007-05-03 06:50

Message:
Logged In: YES 
user_id=81467
Originator: NO

do you have a bug which shows a problem at that line ? looking at the code
in the 2.8 branch or on cvs head, I don't see a problem, it doesn't compare
the hex 211, but it compares the octal 211 which is decimal 137, so the
code seems correct to me

Best,

Stefan

----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1711472&group_id=9863




More information about the wx-dev mailing list