[llvm-bugs] [Bug 34738] New: Memory sanitizer false positive when calling statx

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Sep 26 12:54:42 PDT 2017


https://bugs.llvm.org/show_bug.cgi?id=34738

            Bug ID: 34738
           Summary: Memory sanitizer false positive when calling statx
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: -New Bugs
          Assignee: unassignedclangbugs at nondot.org
          Reporter: llvm at bobbyperu.info
                CC: llvm-bugs at lists.llvm.org

statx() is a new syscall, you'll need Linux 4.11 at least

See attached testcase

$ clang -fsanitize=memory a.cpp 
$ ./a.out 
==29565==WARNING: MemorySanitizer: use-of-uninitialized-value
    #0 0x55a58b5b7775 in main (/data/secured/home/serj/a.out+0x93775)
    #1 0x7fa5e39a3f69 in __libc_start_main (/usr/lib/libc.so.6+0x20f69)
    #2 0x55a58b53e369 in _start (/data/secured/home/serj/a.out+0x1a369)

SUMMARY: MemorySanitizer: use-of-uninitialized-value

-- 
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/20170926/c58df803/attachment.html>


More information about the llvm-bugs mailing list