[llvm-commits] [PATCH] Handle realpath NULL pointer return value
Nuno Lopes
nunoplopes at sapo.pt
Sun Nov 29 08:52:17 PST 2009
Looks good; please commit it.
Nuno
----- Original Message -----
> 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
More information about the llvm-commits
mailing list