This is the mail archive of the glibc-bugs@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug libc/1973] New: getenv returns pointer to unallocated space.


The following code results in a segmentation faul on an AMD64.
---------------------------------
char	*home_dir;

home_dir = (char *)getenv("HOME");
if (home_dir != NULL)
{
	printf ("$HOME = %s\n", home_dir);
}
---------------------------------

On my system it works fine but on the system of an user of my program
(keytouch), running gentoo, it crashes.

-- 
           Summary: getenv returns pointer to unallocated space.
           Product: glibc
           Version: unspecified
            Status: NEW
          Severity: normal
          Priority: P3
         Component: libc
        AssignedTo: drepper at redhat dot com
        ReportedBy: marvin dot nospam at gmail dot com
                CC: glibc-bugs at sources dot redhat dot com


http://sourceware.org/bugzilla/show_bug.cgi?id=1973

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]