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 ZstdDecompressor on 64-bit big-endian #91

Merged
merged 1 commit into from
Aug 23, 2019

Conversation

jcristau
Copy link

When parsing the python arguments, using "I" (int) in the format string
but passing a pointer to size_t means that, on big endian, we're only
initializing the high-order bits of the size_t. Use "n" (Py_ssize_t)
format instead, which should be the right size.

When parsing the python arguments, using "I" (int) in the format string
but passing a pointer to size_t means that, on big endian, we're only
initializing the high-order bits of the size_t.  Use "n" (Py_ssize_t)
format instead, which should be the right size.
@indygreg
Copy link
Owner

Oof. Thanks for the fix.

@indygreg indygreg merged commit d4baf1f into indygreg:master Aug 23, 2019
@jcristau jcristau deleted the decompressor-64be branch August 23, 2019 09:55
indygreg added a commit that referenced this pull request Sep 14, 2019
sebunger pushed a commit to sebunger/mercurial that referenced this pull request Aug 17, 2020
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.

2 participants