Taking another swipe at #3341

This commit is contained in:
TheWitness committed 2020-03-13 09:50:49 -04:00
1 parent 621091f7a6
commit 3ef563d3b7
1 file changed
+4 -1
+4 -1
View File
@@ -123,7 +123,10 @@ class Mo extends Extractor implements ExtractorInterface
*/
private static function readIntArray(StringReader $stream, $byteOrder, $count)
{
if (($read = $stream->read(4 * $count)) === false) {
if ($count == 0) {
return false;
} elseif (($read = $stream->read(4 * $count)) === false) {
return false;
}