mirror of
https://github.com/cookiengineer/audacity
synced 2025-07-14 15:48:21 +02:00
Possible fix for VST crash when not in debugger.
Suspected that the array is not big enough.
This commit is contained in:
parent
4025f27764
commit
2b24de978c
@ -2826,7 +2826,9 @@ wxString PluginManager::ConvertID(const PluginID & ID)
|
|||||||
if (ID.StartsWith(wxT("base64:")))
|
if (ID.StartsWith(wxT("base64:")))
|
||||||
{
|
{
|
||||||
wxString id = ID.Mid(7);
|
wxString id = ID.Mid(7);
|
||||||
char *buf = new char[id.Length() / 4 * 3];
|
//JKC: Quick fix. I am guessing this buffer is too small.
|
||||||
|
//char *buf = new char[id.Length() / 4 * 3];
|
||||||
|
char *buf = new char[id.Length() +8 ];
|
||||||
id = wxString::FromUTF8(buf, b64decode(id, buf));
|
id = wxString::FromUTF8(buf, b64decode(id, buf));
|
||||||
delete [] buf;
|
delete [] buf;
|
||||||
return id;
|
return id;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user