[llvm-bugs] [Bug 28789] New: Uninitialized memory read in printf is not detected by memory sanitizer
via llvm-bugs
llvm-bugs at lists.llvm.org
Sun Jul 31 05:39:51 PDT 2016
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: unassignedclangbugs at nondot.org
Reporter: halyavin at chromium.org
CC: kcc at google.com, llvm-bugs at lists.llvm.org
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20160731/4579fb54/attachment.html>
More information about the llvm-bugs
mailing list