Skip to content

Ensure bytes are nul terminated in ctypes - #2168

Merged
slozier merged 1 commit into
IronLanguages:mainfrom
slozier:nulterm
Nov 17, 2026
Merged

slozier merged 1 commit into
IronLanguages:mainfrom
slozier:nulterm

Conversation

@slozier

@slozier slozier commented Nov 17, 2026

Copy link
Copy Markdown
Contributor

Ensure bytes are nul terminated in ctypes. Unfortunately this means making a copy. Alternatively we could include a nul byte in our bytes array (like CPython), but that seems like a lot of effort for little gain...

@slozier
slozier merged commit 2a7d5e9 into IronLanguages:main Nov 17, 2026
33 of 35 checks passed
@slozier
slozier deleted the nulterm branch November 17, 2026 01:36
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.

1 participant