From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16109 invoked by alias); 17 Mar 2008 16:53:01 -0000 Received: (qmail 15973 invoked by uid 48); 17 Mar 2008 16:52:17 -0000 Date: Mon, 17 Mar 2008 16:53:00 -0000 Message-ID: <20080317165217.15972.qmail@sourceware.org> From: "jakub at redhat dot com" To: glibc-bugs@sources.redhat.com In-Reply-To: <20080317163230.5950.boringuy@gmail.com> References: <20080317163230.5950.boringuy@gmail.com> Reply-To: sourceware-bugzilla@sourceware.org Subject: [Bug libc/5950] strtold_l() segfaults on various distribution of linux 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: 2008-03/txt/msg00095.txt.bz2 ------- Additional Comments From jakub at redhat dot com 2008-03-17 16:52 ------- Why is it surprising? NULL is definitely not a valid locale_t object, and calling strtold_l with invalid locale_t object causes undefined behavior. The upcoming POSIX standard doesn't cover strtold_l, that is just a GNU extension, but covers e.g. nl_langinfo_l, for which EINVAL when locale_t object passed to it is invalid is a may fail type of error, so not detecting and crashing is fine. -- What |Removed |Added ---------------------------------------------------------------------------- Status|ASSIGNED |RESOLVED Resolution| |INVALID http://sourceware.org/bugzilla/show_bug.cgi?id=5950 ------- You are receiving this mail because: ------- You are on the CC list for the bug, or are watching someone who is.