llvm / llvm-project

The LLVM Project is a collection of modular and reusable compiler and toolchain technologies.
http://llvm.org
Other
27.96k stars 11.53k forks source link

Uninitialized memory read in printf is not detected by memory sanitizer #29159

Open llvmbot opened 8 years ago

llvmbot commented 8 years ago
Bugzilla Link 28789
Version 3.8
OS Linux
Reporter LLVM Bugzilla Contributor
CC @kcc,@zygoloid,@vitalybuka

Extended Description

The following program doesn't crash when compiled with memory sanitizer (without libc instrumentation).

include

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 " but sanitizer is silent.

llvmbot commented 7 years ago

This appears to be a known issue with MSan interceptors: https://github.com/google/sanitizers/issues/718 .

llvmbot commented 8 years ago

assigned to @eugenis