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

            Bug ID: 25961
           Summary: clang segfaults on undefined variable called 'file'
           Product: new-bugs
           Version: trunk
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: new bugs
          Assignee: unassignedb...@nondot.org
          Reporter: schopf....@gmail.com
                CC: llvm-bugs@lists.llvm.org
    Classification: Unclassified

Created attachment 15530
  --> https://llvm.org/bugs/attachment.cgi?id=15530&action=edit
console output

Following simple C program makes clang segfault:

#include <stdlib.h>

int main()
{
  strcpy(file, NULL);
}

Renaming 'file' to something else or defining file fixes the crash.

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to