Browse Source

Limit String base64 stack size

pull/6/head
falkTX 9 years ago
parent
commit
60d8fad890
1 changed files with 3 additions and 1 deletions
  1. +3
    -1
      distrho/extra/String.hpp

+ 3
- 1
distrho/extra/String.hpp View File

@@ -19,6 +19,8 @@

#include "../DistrhoUtils.hpp"

#include <algorithm>

START_NAMESPACE_DISTRHO

// -----------------------------------------------------------------------
@@ -577,7 +579,7 @@ public:
"abcdefghijklmnopqrstuvwxyz"
"0123456789+/";

const std::size_t kTmpBufSize = d_nextPowerOf2(dataSize/3);
const std::size_t kTmpBufSize = std::min(d_nextPowerOf2(dataSize/3), 65536U);

const uchar* bytesToEncode((const uchar*)data);



Loading…
Cancel
Save