Applied patch [ 808125 ] wxString::PrintfV() truncating at 1024 bytes string
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/branches/WX_2_4_BRANCH@23673 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1289,7 +1289,7 @@ int wxString::PrintfV(const wxChar* pszFormat, va_list argptr)
|
||||
|
||||
UngetWriteBuf();
|
||||
|
||||
if ( len >= 0 )
|
||||
if ( (len >= 0) && (len <= size) )
|
||||
{
|
||||
// ok, there was enough space
|
||||
break;
|
||||
|
Reference in New Issue
Block a user