https://llvm.org/bugs/show_bug.cgi?id=28789
Bug ID: 28789
Summary: Uninitialized memory read in printf is not detected by
memory sanitizer
Product: clang
Version: 3.8
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: -New Bugs
Assignee: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected]
Classification: Unclassified
The following program doesn't crash when compiled with memory sanitizer
(without libc instrumentation).
#include <stdio.h>
int main() {
int x = 1;
printf("%lld %lld %lld %lld %lld %lld\n", x, x, x, x, x, x);
}
It prints "1 1 1 1 1 <huge_number>" but sanitizer is silent.
--
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
[email protected]
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs