Skip to content

Set shape on exported memoryviews - #836

Merged
jcrist merged 1 commit into
mainfrom
set-shape-on-exported-memoryviews
Apr 22, 2025
Merged

jcrist merged 1 commit into
mainfrom
set-shape-on-exported-memoryviews

Conversation

@jcrist

@jcrist jcrist commented Apr 22, 2025

Copy link
Copy Markdown
Member

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
@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