mirror of
https://github.com/pocoproject/poco.git
synced 2025-11-25 06:36:37 +01:00
fixed GH #1239: Poco::Zip::Compress with non-seekable stream fails for CM_STORE
This commit is contained in:
@@ -149,7 +149,7 @@ void ZipLocalFileHeader::parse(std::istream& inp, bool assumeHeaderRead)
|
|||||||
|
|
||||||
bool ZipLocalFileHeader::searchCRCAndSizesAfterData() const
|
bool ZipLocalFileHeader::searchCRCAndSizesAfterData() const
|
||||||
{
|
{
|
||||||
if (getCompressionMethod() == ZipCommon::CM_DEFLATE)
|
if (getCompressionMethod() == ZipCommon::CM_STORE || getCompressionMethod() == ZipCommon::CM_DEFLATE)
|
||||||
{
|
{
|
||||||
// check bit 3
|
// check bit 3
|
||||||
return ((ZipUtil::get16BitValue(_rawHeader, GENERAL_PURPOSE_POS) & 0x0008) != 0);
|
return ((ZipUtil::get16BitValue(_rawHeader, GENERAL_PURPOSE_POS) & 0x0008) != 0);
|
||||||
|
|||||||
Reference in New Issue
Block a user