[llvm-bugs] [Bug 33881] New: ubsan: Program instrumented with -fsanitize=vptr may crash

via llvm-bugs llvm-bugs at lists.llvm.org
Fri Jul 21 12:53:18 PDT 2017


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

            Bug ID: 33881
           Summary: ubsan: Program instrumented with -fsanitize=vptr may
                    crash
           Product: clang
           Version: 5.0
          Hardware: PC
                OS: All
            Status: NEW
          Severity: release blocker
          Priority: P
         Component: LLVM Codegen
          Assignee: unassignedclangbugs at nondot.org
          Reporter: vsk at apple.com
                CC: llvm-bugs at lists.llvm.org

-fsanitize=vptr instrumentation does not null check a user pointer before
loading from it. This causes crashes in the face of UB member calls
(this=nullptr), i.e it's causing user programs to crash only after UBSan is
turned on.

I'm wrapping up a patch to address the problem: this PR is to track its
inclusion in the 5.0 release.

-- 
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/20170721/0dceb622/attachment.html>


More information about the llvm-bugs mailing list