[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #28422] [util/misc.c] realpath(path, NULL) leads to segfault

From: Vladimir Serbinenko
Subject: [bug #28422] [util/misc.c] realpath(path, NULL) leads to segfault
Date: Mon, 28 Dec 2009 01:22:37 +0000
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20091216 Iceweasel/3.5.6 (like Firefox/3.5.6; Debian-3.5.6-1)

Follow-up Comment #1, bug #28422 (project grub):

This patch is inappropriate. It introduces arbitrary limit on pathlen even on
platforms that aren't limited in this way (e.g. GNU/Hurd). If you make a patch
with something like:
#ifdef __NetBSD__
p = xmalloc (PATH_MAX);
realpath (path, p);
p = realpath (path, NULL);
Then we'll probably accept it


Reply to this item at:


  Message sent via/by Savannah

reply via email to

[Prev in Thread] Current Thread [Next in Thread]