[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: Grégoire Sutre
Subject: [bug #28422] [util/misc.c] realpath(path, NULL) leads to segfault
Date: Mon, 28 Dec 2009 11:22:42 +0000
User-agent: Mozilla/5.0 (X11; U; NetBSD i386; en-US; rv: Gecko/20091029 Browser/3.5.4

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

Hi Robert,

It's not bothering me at all, no problem :-)

The patch you sent almost works, there was just a missing #include <limits.h>
(for PATH_MAX).  I attach a new version of the patch with this include.

I looked at the rest of the code, and the only other place where realpath is
used outside of an ifdef __linux__ is in util/ieee1275/ofpath.c, but there the
result buffer is pre-allocated (with xmalloc (PATH_MAX)).

(file #19381)

Additional Item Attachment:

File name: canonicalize_file_name-2.diff  Size:1 KB


Reply to this item at:


  Message sent via/by Savannah

reply via email to

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