From owner-freebsd-bugs@FreeBSD.ORG Fri Aug 9 00:30:00 2013 Return-Path: Delivered-To: freebsd-bugs@smarthost.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id B91E18D5 for ; Fri, 9 Aug 2013 00:30:00 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:1900:2254:206c::16:87]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 7FA512E5F for ; Fri, 9 Aug 2013 00:30:00 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.7/8.14.7) with ESMTP id r790U0Uo021444 for ; Fri, 9 Aug 2013 00:30:00 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.7/8.14.7/Submit) id r790U0Mc021443; Fri, 9 Aug 2013 00:30:00 GMT (envelope-from gnats) Resent-Date: Fri, 9 Aug 2013 00:30:00 GMT Resent-Message-Id: <201308090030.r790U0Mc021443@freefall.freebsd.org> Resent-From: FreeBSD-gnats-submit@FreeBSD.org (GNATS Filer) Resent-To: freebsd-bugs@FreeBSD.org Resent-Reply-To: FreeBSD-gnats-submit@FreeBSD.org, Garrett Cooper Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTP id 809897AF for ; Fri, 9 Aug 2013 00:23:45 +0000 (UTC) (envelope-from nobody@FreeBSD.org) Received: from oldred.freebsd.org (oldred.freebsd.org [8.8.178.121]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.freebsd.org (Postfix) with ESMTPS id 6DE402E16 for ; Fri, 9 Aug 2013 00:23:45 +0000 (UTC) Received: from oldred.freebsd.org ([127.0.1.6]) by oldred.freebsd.org (8.14.5/8.14.7) with ESMTP id r790Nj1I011597 for ; Fri, 9 Aug 2013 00:23:45 GMT (envelope-from nobody@oldred.freebsd.org) Received: (from nobody@localhost) by oldred.freebsd.org (8.14.5/8.14.5/Submit) id r790Njuu011594; Fri, 9 Aug 2013 00:23:45 GMT (envelope-from nobody) Message-Id: <201308090023.r790Njuu011594@oldred.freebsd.org> Date: Fri, 9 Aug 2013 00:23:45 GMT From: Garrett Cooper To: freebsd-gnats-submit@FreeBSD.org X-Send-Pr-Version: www-3.1 Subject: bin/181153: sscanf doesn't skip whitespace properly X-BeenThere: freebsd-bugs@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 09 Aug 2013 00:30:00 -0000 >Number: 181153 >Category: bin >Synopsis: sscanf doesn't skip whitespace properly >Confidential: no >Severity: non-critical >Priority: low >Responsible: freebsd-bugs >State: open >Quarter: >Keywords: >Date-Required: >Class: sw-bug >Submitter-Id: current-users >Arrival-Date: Fri Aug 09 00:30:00 UTC 2013 >Closed-Date: >Last-Modified: >Originator: Garrett Cooper >Release: 10-CURRENT >Organization: EMC Isilon >Environment: FreeBSD fuji-current.local 10.0-CURRENT FreeBSD 10.0-CURRENT #10 c9d2bd6-dirty: Wed Aug 7 18:55:03 PDT 2013 root@fuji-current.local:/usr/obj/usr/src/sys/FUJI-NOCOMPAT i386 >Description: The following test failure occurred: sscanf_whitespace: [0.001968s] Failed: /usr/src/lib/libc/tests/stdio/t_scanf.c:71: c == 'z' not met The corresponding test code of interest is as follows: ATF_TC(sscanf_whitespace); ATF_TC_HEAD(sscanf_whitespace, tc) { atf_tc_set_md_var(tc, "descr", "verify sscanf skips all whitespace"); } ATF_TC_BODY(sscanf_whitespace, tc) { const char str[] = "\f\n\r\t\v%z"; char c; /* set of "white space" symbols from isspace(3) */ c = 0; (void)sscanf(str, "%%%c", &c); ATF_REQUIRE(c == 'z'); } >How-To-Repeat: >Fix: >Release-Note: >Audit-Trail: >Unformatted: