[PATCH][v2] Add dynamic linker support for $EXEC_ORIGIN.

Paul Pluzhnikov ppluzhnikov@google.com
Thu Dec 12 22:26:00 GMT 2013


On Thu, Dec 12, 2013 at 2:13 PM, Brooks Moses <bmoses@google.com> wrote:

> +static char *
> +get_directory (const char *file_path)
> +{
> +  assert (file_path != NULL);

This can definitely be called with NULL file_path (if e.g. the kernel
doesn't supply AT_EXECFN), so assert() doesn't seem appropriate here.


-- 
Paul Pluzhnikov



More information about the Libc-alpha mailing list