[poppler] poppler/SecurityHandler.h
GitLab Mirror
gitlab-mirror at kemper.freedesktop.org
Thu Oct 15 12:25:14 UTC 2020
poppler/SecurityHandler.h | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit c67bd3fafe0cff41855b4a2fdf7a3eb98a05ea3e
Author: Albert Astals Cid <aacid at kde.org>
Date: Thu Oct 15 14:18:56 2020 +0200
Fix uninitialized memory read on broken files
oss-fuzz/26264
diff --git a/poppler/SecurityHandler.h b/poppler/SecurityHandler.h
index 6f888e68..13cf1ed1 100644
--- a/poppler/SecurityHandler.h
+++ b/poppler/SecurityHandler.h
@@ -105,7 +105,7 @@ public:
int getPermissionFlags() const override { return permFlags; }
bool getOwnerPasswordOk() const override { return ownerPasswordOk; }
const unsigned char *getFileKey() const override { return fileKey; }
- int getFileKeyLength() const override { return fileKeyLength; }
+ int getFileKeyLength() const override { return ok ? fileKeyLength : 0; }
int getEncVersion() const override { return encVersion; }
int getEncRevision() const override { return encRevision; }
CryptAlgorithm getEncAlgorithm() const override { return encAlgorithm; }
More information about the poppler
mailing list