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:
@@ -125,6 +125,7 @@ All (GUI):
|
|||||||
- Fixed problem with Floatable(false) not working in wxAuiFrameManager.
|
- Fixed problem with Floatable(false) not working in wxAuiFrameManager.
|
||||||
- Fixed maximize bug in wxAUI.
|
- Fixed maximize bug in wxAUI.
|
||||||
- Allow period in link anchors in wxHTML.
|
- Allow period in link anchors in wxHTML.
|
||||||
|
- Fixed memory corruption in wxHTML when parsing "&;" in the markup.
|
||||||
|
|
||||||
All (Unix):
|
All (Unix):
|
||||||
|
|
||||||
|
@@ -572,6 +572,9 @@ wxChar wxHtmlEntitiesParser::GetEntityChar(const wxString& entity)
|
|||||||
{
|
{
|
||||||
unsigned code = 0;
|
unsigned code = 0;
|
||||||
|
|
||||||
|
if (entity.empty())
|
||||||
|
return 0; // invalid entity reference
|
||||||
|
|
||||||
if (entity[0] == wxT('#'))
|
if (entity[0] == wxT('#'))
|
||||||
{
|
{
|
||||||
const wxChar *ent_s = entity.c_str();
|
const wxChar *ent_s = entity.c_str();
|
||||||
|
Reference in New Issue
Block a user