summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
99f0dc6)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@34870
c3d73ce0-8a6f-49c7-b76d-
6d57e0e08775
- Added wxXmlResource::Unload()
- Possibility of modeless wxWizard dialog (with presentation in sample).
- Added wxXmlResource::Unload()
- Possibility of modeless wxWizard dialog (with presentation in sample).
+- Fixed a rare crash due to malformed HTML in wxHTML (Xavier Nodet)
int delta = (at < m_Cache[m_CachePos].Key) ? -1 : 1;
do
{
int delta = (at < m_Cache[m_CachePos].Key) ? -1 : 1;
do
{
+ if ( m_CachePos < 0 || m_CachePos == m_CacheSize )
+ {
+ // something is very wrong with HTML, give up by returning an
+ // impossibly large value which is going to be ignored by the
+ // caller
+ *end1 =
+ *end2 = INT_MAX;
+ return;
+ }
+
m_CachePos += delta;
}
while (m_Cache[m_CachePos].Key != at);
m_CachePos += delta;
}
while (m_Cache[m_CachePos].Key != at);