From 80c557835768de3bb76e45878c18774ad522aafc Mon Sep 17 00:00:00 2001 From: James Heinrich Date: Fri, 26 Feb 2021 08:59:03 -0500 Subject: [PATCH] #292 pdf infinite loop https://github.com/JamesHeinrich/getID3/issues/292 --- getid3/getid3.php | 2 +- getid3/module.misc.pdf.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/getid3/getid3.php b/getid3/getid3.php index 0bd90ca6..d9b6c77a 100644 --- a/getid3/getid3.php +++ b/getid3/getid3.php @@ -257,7 +257,7 @@ class getID3 */ protected $startup_warning = ''; - const VERSION = '1.9.20-202102242121'; + const VERSION = '1.9.20-202102260858'; const FREAD_BUFFER_SIZE = 32768; const ATTACHMENTS_NONE = false; diff --git a/getid3/module.misc.pdf.php b/getid3/module.misc.pdf.php index 62a1349f..cce87706 100644 --- a/getid3/module.misc.pdf.php +++ b/getid3/module.misc.pdf.php @@ -75,7 +75,7 @@ public function Analyze() { $this->fseek($offset + strlen($matches[0])); } $objectData = ''; - while (true) { + while (!$this->feof()) { $line = $this->fgets(); if (rtrim($line) == 'endobj') { break;