Skip to content

fix: raise on short buffer in get_string/get_wstring - #945

Merged
gijzelaerr merged 2 commits into
masterfrom
fix/string-short-buffer
Oct 8, 2026
Merged

gijzelaerr merged 2 commits into
masterfrom
fix/string-short-buffer

Conversation

@gijzelaerr

Copy link
Copy Markdown
Owner

Fixes #944. get_string and get_wstring now raise ValueError when the buffer is shorter than the declared current length instead of returning a truncated value.

🤖 Generated with Claude Code

gijzelaerr and others added 2 commits October 8, 2026 07:06
…han the declared length (#944)

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@gijzelaerr
gijzelaerr merged commit 3765674 into master Oct 8, 2026
2 of 3 checks passed
@gijzelaerr
gijzelaerr deleted the fix/string-short-buffer branch October 8, 2026 07:11
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.

get_string / get_wstring return a truncated value when the buffer is shorter than the declared allocation

1 participant