The offsets and lengths come from the document, so a range that is not inside the file leaves the signature unchecked now. Signed-off-by: Caolán McNamara <caolan.mcnamara@collabora.com> Change-Id: I4c293d4c49326cb08336295714dec91d833bbd88 Reviewed-on: https://gerrit.collaboraoffice.com/c/online/+/13334 Tested-by: Jenkins CPCI <releng@collaboraoffice.com> Reviewed-by: Noel Grandin <noel.grandin@collabora.com> (cherry picked from commit 2fb3bbcf0afd5d13f41d526551835a24a0d8b5aa) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/211454 Tested-by: Jenkins Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>