Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zstd: Detect short invalid signatures #382

Merged
merged 1 commit into from
May 28, 2021
Merged

zstd: Detect short invalid signatures #382

merged 1 commit into from
May 28, 2021

Conversation

klauspost
Copy link
Owner

@klauspost klauspost commented May 28, 2021

Detect short frame signatures, sizes 1 ->3 bytes.

Fixes #381

Detect short frame signatures.

Fixes #381
@klauspost klauspost merged commit d172db7 into master May 28, 2021
@klauspost klauspost deleted the zstd-read-fd-sep branch May 28, 2021 08:56
mostynb added a commit to mostynb/zstdpool-syncpool that referenced this pull request Jun 6, 2021
This includes the following zstd improvements since v1.12.3:

* Detect short invalid signatures
  klauspost/compress#382
* Spawn decoder goroutine only if needed
  klauspost/compress#380
mostynb added a commit to mostynb/go-grpc-compression that referenced this pull request Jun 6, 2021
This includes the following zstd improvements since v1.12.3:

* Detect short invalid signatures
  klauspost/compress#382
* Spawn decoder goroutine only if needed
  klauspost/compress#380
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

zstd.Decoder omitting errors for short invalid data
1 participant