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

number_serialiser::deserialise returns wrong result due to buffer not being null terminated #714

Closed
m7913d opened this issue Sep 20, 2023 · 0 comments · Fixed by xlnt-community/xlnt#2 · May be fixed by #715
Closed

number_serialiser::deserialise returns wrong result due to buffer not being null terminated #714

m7913d opened this issue Sep 20, 2023 · 0 comments · Fixed by xlnt-community/xlnt#2 · May be fixed by #715

Comments

@m7913d
Copy link

m7913d commented Sep 20, 2023

Random numbers may be appended to the parsed number: f.ex. "1.2" may be parsed as 1.29 if should_convert_comma is true.

The problem is that the char buf[30]; is never initialised, nor the null terminator is copied from the source string. Doing one of both fixes the issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant