[LLVMbugs] [Bug 3047] New: llvmc2 $ENV(...) segfaults when the environment variable is missing
bugzilla-daemon at cs.uiuc.edu
bugzilla-daemon at cs.uiuc.edu
Wed Nov 12 00:49:57 PST 2008
http://llvm.org/bugs/show_bug.cgi?id=3047
Summary: llvmc2 $ENV(...) segfaults when the environment variable
is missing
Product: new-bugs
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: new bugs
AssignedTo: unassignedbugs at nondot.org
ReportedBy: pcwalton at cs.ucla.edu
CC: llvmbugs at cs.uiuc.edu
When the environment variable in question is missing, the generated code for
llvmc2 tries to create a std::string from a NULL pointer, which causes a
segfault. The attached patch fixes this problem.
--
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