[llvm-bugs] [Bug 45085] New: A False Negative case on Array Bound Overflow in Loop

via llvm-bugs llvm-bugs at lists.llvm.org
Tue Mar 3 02:01:42 PST 2020


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

            Bug ID: 45085
           Summary: A False Negative case on Array Bound Overflow in Loop
           Product: clang
           Version: 10.0
          Hardware: All
                OS: All
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: dcoughlin at apple.com
          Reporter: jiancai_hao at 163.com
                CC: dcoughlin at apple.com, llvm-bugs at lists.llvm.org

Here is a case:

int abv(){
    int a[10];
    int i;
    int max = 10;

    for(i=0; i<=max; i++) {
        a[i]=10; // here i can touch max=10, how to have clang to report it
out.
    }
    return 0;
}

Thanks,

-- 
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/20200303/4d4ea6d7/attachment-0001.html>


More information about the llvm-bugs mailing list