>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: _______________________________________________ freebsd-bugs@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "freebsd-bugs-unsubscr...@freebsd.org"