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

clang-tidy warns about operations on uninitialized values #12

Open
farmaazon opened this issue Apr 23, 2018 · 0 comments
Open

clang-tidy warns about operations on uninitialized values #12

farmaazon opened this issue Apr 23, 2018 · 0 comments

Comments

@farmaazon
Copy link

dtoa.h:233:3: warning: The expression is an uninitialized value. The computed value will also be garbage [clang-analyzer-core.uninitialized.Assign] buffer[len - 1]--;

As far as I could reach out, there is only one situation, when there is unsafe operation in this line; namely, when len == 0. But I can't deduce if this condition is always met in this place.

Here is more output from clang-tidy:
dtoa_warning.txt

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

No branches or pull requests

1 participant