From 147c96da67494e88d6bbdc44c52287c698a94190 Mon Sep 17 00:00:00 2001 From: Dominik Stadler Date: Tue, 30 Jan 2024 21:01:46 +0000 Subject: [PATCH] Bug 66425: Avoid exceptions found via poi-fuzz Prevent a few NullPointerException Fixes https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=65450 and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63907 and https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=63727 git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1915480 13f79535-47bb-0310-9956-ffa450edef68 --- .../apache/poi/xslf/usermodel/XSLFGraphicFrame.java | 3 +++ .../java/org/apache/poi/hwpf/HWPFDocumentCore.java | 5 ++++- .../poi/poifs/crypt/agile/AgileEncryptionVerifier.java | 10 ++++++++-- 3 files changed, 15 insertions(+), 3 deletions(-) diff --git a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFGraphicFrame.java b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFGraphicFrame.java index 0738aba408..746afd001e 100644 --- a/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFGraphicFrame.java +++ b/poi-ooxml/src/main/java/org/apache/poi/xslf/usermodel/XSLFGraphicFrame.java @@ -79,6 +79,9 @@ public class XSLFGraphicFrame extends XSLFShape implements GraphicalFrame