fix(archive): validate stream file archive paths and throw on premature bzip2 stream termination
This commit is contained in:
@@ -97,7 +97,7 @@ export function unbzip2Stream(): plugins.smartstream.SmartDuplex<Uint8Array, Uin
|
||||
}
|
||||
|
||||
if (!broken && streamCRC !== null) {
|
||||
this.emit('error', new Bzip2Error('Input stream ended prematurely', BZIP2_ERROR_CODES.PREMATURE_END));
|
||||
throw new Bzip2Error('Input stream ended prematurely', BZIP2_ERROR_CODES.PREMATURE_END);
|
||||
}
|
||||
return null;
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user