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

            Bug ID: 23153
           Summary: clang-check warn on suspect strncpy (etc.)
           Product: clang
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: Static Analyzer
          Assignee: [email protected]
          Reporter: [email protected]
                CC: [email protected]
    Classification: Unclassified

I haven't been able to find an answer to this question, so thought I would ask
it here.

Can clang's static analysis find bugs of this sort:


void func(char* arg)
{
  char buf1[10];
  char buf2[20];

  strncpy(buf1, arg, sizeof(buf2));
}

It doesn't appear to, but I want to make sure I'm not missing something.

TIA!

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
LLVMbugs mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/llvmbugs

Reply via email to