Pad ADEPT_LICENSE before trying to decode it

This commit is contained in:
Grégory Soutadé 2022-03-03 21:07:25 +01:00
parent 25f5049ab9
commit 85b65f8d61

View File

@ -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)