-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: do not allow non C-contiguous buffer
They were not allowed in the C-extension but given a bug exists in PyPy, they could be accepted and return the wrong result. Add a workaround for the PyPy bug and disallow non C-contiguous buffer in the pure python fallback implementation. The `encodebytes` buffer check is also a bit stricter in the C-extension to mimic CPython behavior.
- Loading branch information
Showing
4 changed files
with
155 additions
and
67 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.