Forward port test case that corrupts archives to see if they can crash an input stream.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@41411 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Michael Wetherell
2006-09-24 11:52:53 +00:00
parent 3306aec124
commit 98de4ac1c5
2 changed files with 108 additions and 3 deletions

View File

@@ -79,6 +79,9 @@ public:
bool IsSeekable() const { return (m_options & PipeIn) == 0; }
void SetData(TestOutputStream& out);
void Chop(size_t size) { m_size = size; }
char& operator [](size_t pos) { return m_data[pos]; }
private:
wxFileOffset OnSysSeek(wxFileOffset pos, wxSeekMode mode);
wxFileOffset OnSysTell() const;