This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/1973] New: getenv returns pointer to unallocated space.
- From: "marvin dot nospam at gmail dot com" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sources dot redhat dot com
- Date: 3 Dec 2005 12:59:47 -0000
- Subject: [Bug libc/1973] New: getenv returns pointer to unallocated space.
- Reply-to: sourceware-bugzilla at sourceware dot org
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.