Skip to content

Commit

Permalink
Ensure $this->_data is initialized.
Browse files Browse the repository at this point in the history
Prevents possible DOS attack by preventing an infinite loop
in certain cases (CVE-2017-9773).
  • Loading branch information
mrubinsk committed Jun 21, 2017
1 parent 01a11cc commit 2b8a6fe
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions framework/Image/lib/Horde/Image/Null.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,8 @@ public function __construct($params, $context = array())
$this->loadFile($params['filename']);
} elseif (!empty($params['data'])) {
$this->loadString($params['data']);
} else {
$this->_data = new Horde_Stream_Temp();
}
}
}

0 comments on commit 2b8a6fe

Please sign in to comment.