Pad ADEPT_LICENSE before trying to decode it
This commit is contained in:
parent
25f5049ab9
commit
85b65f8d61
|
@ -1118,6 +1118,9 @@ namespace gourou
|
|||
uPDFParser::String* licenseObject = (uPDFParser::String*)(*ebx)["ADEPT_LICENSE"];
|
||||
|
||||
std::string value = licenseObject->value();
|
||||
// Pad with '='
|
||||
while ((value.size() % 4))
|
||||
value += "=";
|
||||
ByteArray zippedData = ByteArray::fromBase64(value);
|
||||
|
||||
if (zippedData.size() == 0)
|
||||
|
|
Loading…
Reference in New Issue
Block a user