Skip to content

Commit

Permalink
#292 pdf infinite loop
Browse files Browse the repository at this point in the history
  • Loading branch information
JamesHeinrich committed Feb 26, 2021
1 parent a1a90e9 commit 80c5578
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion getid3/getid3.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion getid3/module.misc.pdf.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 80c5578

Please sign in to comment.