We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 095a6ba commit b16b6e5Copy full SHA for b16b6e5
src/StreamReader.php
@@ -173,6 +173,11 @@ private function readHeader(): Header
173
case 'x':
174
$paxHeader = $header;
175
$paxData = fread($this->stream, $paxHeader->getSize());
176
+ if ($paxData === false) {
177
+ throw new InvalidArchiveFormatException(
178
+ 'Invalid TAR archive format: Unexpected end of file, expected PAX header data'
179
+ );
180
+ }
181
$paxHeader->harvestPaxData($paxData);
182
$header = $this->readHeader();
183
break;
0 commit comments