Commit bf03344a authored by Albert Astals Cid's avatar Albert Astals Cid

StandardSecurityHandler::isUnencrypted: Fix uninitialized memory use

fixes oss-fuzz/8426
parent 31c3832b
......@@ -315,6 +315,9 @@ StandardSecurityHandler::~StandardSecurityHandler() {
}
GBool StandardSecurityHandler::isUnencrypted() {
if (!ok) {
return gTrue;
}
return encVersion == -1 && encRevision == -1;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment