|
| 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:1.9.1.6) 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);
#else
p = realpath (path, NULL);
#endif
Then we'll probably accept it
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?28422>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
| [Prev in Thread] | Current Thread | [Next in Thread] |