[llvm-commits] [PATCH] Handle realpath NULL pointer return value

Kovarththanan Rajaratnam kovarththanan.rajaratnam at gmail.com
Sun Nov 29 02:44:06 PST 2009


Hey,

Is it OK if I commit the following:

This patch ensures that Path::GetMainExecutable is able to handle the
case where realpath() fails. When this occurs we segfault trying to
create a std::string from a NULL pointer.

Fixes PR5635.

-- 
Best regards,
Kovarththanan Rajaratnam

-------------- next part --------------
A non-text attachment was scrubbed...
Name: path_realpath.patch
Type: text/x-patch
Size: 926 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20091129/9de41933/attachment.bin>


More information about the llvm-commits mailing list