Skip to content

Conversation

jcrist
Copy link
Owner

@jcrist jcrist commented Apr 22, 2025

Previously we would update the exposed len but not the shape. This went unnoticed since many consuming APIs only check len and not shape. This fixes the bug and adds some tests to ensure both fields are properly set.

Fixes #835.

Previously we would update the exposed `len` but not the `shape`. This
went unnoticed since many consuming APIs only check `len` and not
`shape`. This fixes the bug and adds some tests to ensure both fields
are properly set.
@jcrist jcrist merged commit bc60e96 into main Apr 22, 2025
7 checks passed
@jcrist jcrist deleted the set-shape-on-exported-memoryviews branch April 22, 2025 20:22
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.

memoryview in msgpack decoder ext_hook can access memory outside its bounds
1 participant