-
-
Notifications
You must be signed in to change notification settings - Fork 6.7k
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
MemorySanitizer: use-of-uninitialized-value #2449
Comments
This warning is raised even for trivial cases like this one: https://godbolt.org/z/MazKbo #include <nlohmann/json.hpp>
int main() {
nlohmann::json j2{ {"i",1} };
} Its' probably a false-positive and you can ignore it. In the following links the similar cases that this false-positive happens are discussed which might be useful: https://stackoverflow.com/questions/47486755/ https://stackoverflow.com/questions/51177708/ |
@luxe To make sure this is not a false positive, can you please check:
|
Does anyone know what I'm doing wrong here?
source:
build:
clang++ -fsanitize=memory -o main main2.cpp
error:
The text was updated successfully, but these errors were encountered: