[LLVMbugs] [Bug 1969] New: HeaderSearch::LookupSubframeworkHeader() crashes when input comes from stdin
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Thu Jan 31 09:21:09 PST 2008
http://llvm.org/bugs/show_bug.cgi?id=1969
Summary: HeaderSearch::LookupSubframeworkHeader() crashes when
input comes from stdin
Product: clang
Version: unspecified
Platform: PC
OS/Version: Windows NT
Status: NEW
Severity: enhancement
Priority: P2
Component: preprocessor
AssignedTo: unassignedbugs at nondot.org
ReportedBy: nunoplopes at sapo.pt
CC: llvmbugs at cs.uiuc.edu
clang crashes when a objc file is given by stdin. this make the whole objc
rewrite test suite crash on my pc.
patch:
Index: Lex/HeaderSearch.cpp
===================================================================
--- Lex/HeaderSearch.cpp (revision 46612)
+++ Lex/HeaderSearch.cpp (working copy)
@@ -296,6 +296,9 @@
// Framework names must have a '/' in the filename. Find it.
const char *SlashPos = std::find(FilenameStart, FilenameEnd, '/');
if (SlashPos == FilenameEnd) return 0;
+
+ if (ContextFileEnt == 0)
+ return 0;
// Look up the base framework name of the ContextFileEnt.
const char *ContextName = ContextFileEnt->getName();
--
Configure bugmail: http://llvm.org/bugs/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
More information about the llvm-bugs
mailing list