From 91fcde3ce80d85e60732d14a12da64e30fe9997a Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Wed, 2 Aug 2023 09:41:53 +0000 Subject: [PATCH] bugfix --- tcpdf/tcpdf_parser.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tcpdf/tcpdf_parser.php b/tcpdf/tcpdf_parser.php index 91ed383..02100cb 100755 --- a/tcpdf/tcpdf_parser.php +++ b/tcpdf/tcpdf_parser.php @@ -634,7 +634,7 @@ class TCPDF_PARSER { if (\preg_match('/^([\r]?[\n])/isU', \substr($this->pdfdata, $offset), $matches) == 1) { $offset += \strlen($matches[0]); if (\preg_match('/(endstream)[\x09\x0a\x0c\x0d\x20]/isU', \substr($this->pdfdata, $offset), $matches, \PREG_OFFSET_CAPTURE) == 1) { - $objval = \substr($this->pdfdata, $offset, $matches[0][1]); + $objval = \substr($this->pdfdata, $offset, (int) $matches[0][1]); $offset += $matches[1][1]; } }