Sitelet https://github.com/phpredis/phpredis/pull/1937
Skip to content

Fix ZSTD decompression on bad data. - #1937

Merged
michael-grunder merged 1 commit into
developfrom
issue.1936-zstd-uncompression
Feb 26, 2021
Merged

michael-grunder merged 1 commit into
developfrom
issue.1936-zstd-uncompression

Conversation

@michael-grunder

Copy link
Copy Markdown
Member

ZSTD uses two defined error numbers to inform the caller when the
compressed data is invalid (e.g. wrong magic number) or the size is
unknown.

We should always know the size so abort if ZSTD returns either to us.

Fixes: #1936

ZSTD uses two defined error numbers to inform the caller when the
compressed data is invalid (e.g. wrong magic number) or the size is
unknown.

We should always know the size so abort if ZSTD returns either to us.

Fixes: #1936
@michael-grunder
michael-grunder merged commit f827ea0 into develop Feb 26, 2021
@michael-grunder
michael-grunder deleted the issue.1936-zstd-uncompression branch February 26, 2021 19:34
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.

PHP Fatal Error: Possible integer overflow in memory allocation (18446744073709551614 + 4096)

2 participants