summaryrefslogtreecommitdiff
path: root/sfx2/classification
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2016-10-14 18:15:35 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2016-10-17 06:08:59 +0000
commitf3d9249ca6be6e69362b3ae90842fd2211fd0829 (patch)
treed2ed72fdee63eee02104819a2897ad37ccdf61de /sfx2/classification
parentf29baf7735ddc162801fea73ecf705805aa4ec11 (diff)
xmlsecurity: check file header when reading PDF signature
Currently the only non-ZIP-based import filter that declares the SUPPORTSSIGNING flag is PDF, so if we get a stream without a storage, we assume it's PDF. If any other non-ZIP-based format would add that flag in the future, that would mean PDFDocument::Read() gets that as an input. That means it makes sense to at least check the file header early in the tokenizer, and return early when that doesn't match. Change-Id: I8760d130c4211f37be705e03b22814825042cac8 Reviewed-on: https://gerrit.libreoffice.org/29888 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Miklos Vajna <vmiklos@collabora.co.uk>
Diffstat (limited to 'sfx2/classification')
0 files changed, 0 insertions, 0 deletions