tdf#145312 xmlsecurity: prevent from crash when cannot receive pdfium annotation
Change-Id: I6adc2cb0a07eb08a50c610958983493f4f8031ee Reviewed-on: https://gerrit.libreoffice.org/c/core/+/124021 Tested-by: Szymon Kłos <szymon.klos@collabora.com> Reviewed-by: Szymon Kłos <szymon.klos@collabora.com>
This commit is contained in:
parent
d267e5a0b1
commit
97b15bcc2d
@ -275,6 +275,11 @@ void AnalyizeSignatureStream(SvMemoryStream& rStream, std::vector<PageChecksum>&
|
||||
for (int i = 0; i < pPdfPage->getAnnotationCount(); ++i)
|
||||
{
|
||||
std::unique_ptr<vcl::pdf::PDFiumAnnotation> pPdfAnnotation = pPdfPage->getAnnotation(i);
|
||||
if (!pPdfAnnotation)
|
||||
{
|
||||
SAL_WARN("xmlsecurity.helper", "Cannot get PDFiumAnnotation");
|
||||
continue;
|
||||
}
|
||||
vcl::pdf::PDFAnnotationSubType eType = pPdfAnnotation->getSubType();
|
||||
switch (eType)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user