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

Fix 32-bit build errors in zstd seekable format #3452

Merged

Conversation

daniellerozenblit
Copy link
Contributor

We want to add 32-bit fuzzing for zstd in oss-fuzz (google/oss-fuzz#9498) but the build is currently failing because of conversions from unsigned long long to size_t that occur in ZSTD_seekable_decompress().

To solve this, we cast to size_t, which should be safe in this context since these values are working on contiguous buffers.

@daniellerozenblit daniellerozenblit marked this pull request as ready for review January 25, 2023 14:23
@daniellerozenblit daniellerozenblit merged commit 29a4c8c into facebook:dev Jan 25, 2023
@daniellerozenblit daniellerozenblit deleted the fix-seekable-32bit branch March 8, 2023 15:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants