From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 96461 invoked by alias); 11 Mar 2015 13:45:23 -0000 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 Received: (qmail 96353 invoked by uid 48); 11 Mar 2015 13:45:14 -0000 From: "carlos at redhat dot com" To: glibc-bugs@sourceware.org Subject: [Bug libc/18096] null deref in wordexp/parse_dollars/parse_arith Date: Wed, 11 Mar 2015 13:45:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: glibc X-Bugzilla-Component: libc X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: carlos at redhat dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: 7bit X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated MIME-Version: 1.0 X-SW-Source: 2015-03/txt/msg00124.txt.bz2 https://sourceware.org/bugzilla/show_bug.cgi?id=18096 --- Comment #5 from Carlos O'Donell --- (In reply to Andreas Schwab from comment #4) > ${VAR?} is defined to print a message if VAR is unset, so this is as > designed. Does that really have to happen for wordexp? The function as defined by POSIX only requires the result of the expansion to be returned, it says nothing about the potential shell-like side-effects like SIGFPE and printing error messages. I don't see it at all as being useful for wordexp to print anything to the programs stdout, where it will only get mixed with program output, and you have no way of knowing exactly when that will be if you run wordexp in a thread. Worse you'd have to redirect stdin/stdout for the thread, which you can't easily do. How is it possibly useful for wordexp to print shell-related side-effects? -- You are receiving this mail because: You are on the CC list for the bug.