From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1354 invoked by alias); 5 May 2010 16:03:56 -0000 Received: (qmail 31449 invoked by uid 48); 5 May 2010 16:03:29 -0000 Date: Wed, 05 May 2010 16:03:00 -0000 Message-ID: <20100505160329.31448.qmail@sourceware.org> From: "rjones at redhat dot com" To: glibc-bugs@sources.redhat.com In-Reply-To: <20100505160124.11571.rjones@redhat.com> References: <20100505160124.11571.rjones@redhat.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/11571] getlogin_r (NULL, 0) segfaults X-Bugzilla-Reason: CC Mailing-List: contact glibc-bugs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Post: List-Help: , Sender: glibc-bugs-owner@sourceware.org X-SW-Source: 2010-05/txt/msg00038.txt.bz2 ------- Additional Comments From rjones at redhat dot com 2010-05-05 16:03 ------- Note the problem is the zero length, not the NULL pointer. For example this also segfaults: #include main () { char buffer[10000]; getlogin_r (buffer, 0); } -- http://sourceware.org/bugzilla/show_bug.cgi?id=11571 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.