Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix wctomb #24

Open
jvoisin opened this issue Sep 4, 2023 · 0 comments
Open

Fix wctomb #24

jvoisin opened this issue Sep 4, 2023 · 0 comments
Labels
bug good first issue Good for newcomers

Comments

@jvoisin
Copy link
Owner

jvoisin commented Sep 4, 2023

The current implementation is wrong: it's valid to pass a buffer smaller than MB_CUR_MAX to wctomb. The only thing we can do is check that the return value of wctomb is smaller than the size of the buffer.

@jvoisin jvoisin added good first issue Good for newcomers bug labels Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant