increase worst case for UTF8 to *4
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@30156 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1902,7 +1902,7 @@ public:
|
|||||||
if (szOut == NULL)
|
if (szOut == NULL)
|
||||||
{
|
{
|
||||||
// worst case
|
// worst case
|
||||||
nRealOutSize = ((nBufSize - 1) << 1)+1 ;
|
nRealOutSize = ((nBufSize - 1) << 2)+1 ;
|
||||||
szBuffer = new char[ nRealOutSize ] ;
|
szBuffer = new char[ nRealOutSize ] ;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
@@ -2079,7 +2079,7 @@ public:
|
|||||||
if (buf == NULL)
|
if (buf == NULL)
|
||||||
{
|
{
|
||||||
// worst case
|
// worst case
|
||||||
n = byteInLen * 2 ;
|
n = byteInLen << 1 ;
|
||||||
tbuf = (char*) malloc( n ) ;
|
tbuf = (char*) malloc( n ) ;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user