[ wxwindows-Bugs-1711476 ] ReadString() in htmlfilt.cpp requires streams of known size

SourceForge.net noreply at sourceforge.net
Wed May 2 13:02:56 PDT 2007


Bugs item #1711476, was opened at 2007-05-02 22:02
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=109863&aid=1711476&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: None
Status: Open
Resolution: None
Priority: 5
Private: No
Submitted By: Dr. Harald Meyer auf'm Hofe (harald_meyer)
Assigned to: Nobody/Anonymous (nobody)
Summary: ReadString() in htmlfilt.cpp requires streams of known size

Initial Comment:
file src/html/htmlflt.cpp: Function ReadString

static void ReadString(wxString& str, wxInputStream* s, wxMBConv& conv);

Uses wxInputStream::GetSize() to determine the size of a stream. Compares size to ~0 to find out whether the stream knows its size. Problem: Method wxInputStream::GetSize() is specified to return 0 on unknown stream size. So, the fallback strategy of ReadString will never run. Wither use wxInputStream::GetLength() here or test for size 0 (that may also result from an empty stream).



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

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




More information about the wx-dev mailing list