[llvm-bugs] [Bug 25961] New: clang segfaults on undefined variable called 'file'
via llvm-bugs
llvm-bugs at lists.llvm.org
Tue Dec 29 05:09:11 PST 2015
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: unassignedbugs at nondot.org
Reporter: schopf.dan at gmail.com
CC: llvm-bugs at 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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20151229/62abdbc4/attachment.html>
More information about the llvm-bugs
mailing list