fixed memory corruption in wxHTML when parsing '&;' in the markup

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_8_BRANCH@55388 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Václav Slavík
2008-08-31 13:59:55 +00:00
parent 702026dab5
commit 02cfa300e7
2 changed files with 4 additions and 0 deletions

View File

@@ -125,6 +125,7 @@ All (GUI):
- Fixed problem with Floatable(false) not working in wxAuiFrameManager.
- Fixed maximize bug in wxAUI.
- Allow period in link anchors in wxHTML.
- Fixed memory corruption in wxHTML when parsing "&;" in the markup.
All (Unix):

View File

@@ -572,6 +572,9 @@ wxChar wxHtmlEntitiesParser::GetEntityChar(const wxString& entity)
{
unsigned code = 0;
if (entity.empty())
return 0; // invalid entity reference
if (entity[0] == wxT('#'))
{
const wxChar *ent_s = entity.c_str();