mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-07 21:22:04 +00:00
Compression fails in Adler32 on a machine that supports SSE3, but not SSSE3 #514
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @emz00 on GitHub (Mar 30, 2022).
We're using MongoDB.Driver, which indirectly calls SharpCompress and it fails on a machine with a AMD Opteron(tm) Processor 6176 SE CPU, which supports SSE3, but not SSSE3.
This seems to be because the version of Adler32 used by SharpCompress checks for SSE3 and then uses SSSE3:
This is already fixed in the latest version: https://github.com/SixLabors/ImageSharp/blob/main/src/ImageSharp/Compression/Zlib/Adler32.cs
That checks
Ssse3.IsSupported- could you please upgrade to it? That would also fix #645.@emz00 commented on GitHub (Mar 30, 2022):
Our version of MongoDB driver is using SharpCompress 0.23 which has a path traversal vulnerability and we cannot upgrade to a patched version due to this issue.
@adamhathcock commented on GitHub (Mar 30, 2022):
I would accept a PR. Not sure when I'll have time myself
@adamhathcock commented on GitHub (Mar 30, 2022):
Fix released in https://www.nuget.org/packages/SharpCompress/0.31.0