From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3679 Path: news.gmane.org!not-for-mail From: "Kirill Ternosvky" Newsgroups: gmane.linux.lib.musl.general Subject: musl regression tests Date: Thu, 18 Jul 2013 19:20:23 -0400 Message-ID: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15; format=flowed; delsp=yes Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1374189638 25028 80.91.229.3 (18 Jul 2013 23:20:38 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jul 2013 23:20:38 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3683-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jul 19 01:20:41 2013 Return-path: Envelope-to: gllmg-musl@plane.gmane.org Original-Received: from mother.openwall.net ([195.42.179.200]) by plane.gmane.org with smtp (Exim 4.69) (envelope-from ) id 1UzxV1-0003gw-Bi for gllmg-musl@plane.gmane.org; Fri, 19 Jul 2013 01:20:39 +0200 Original-Received: (qmail 3687 invoked by uid 550); 18 Jul 2013 23:20:37 -0000 Mailing-List: contact musl-help@lists.openwall.com; run by ezmlm Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: Original-Received: (qmail 3679 invoked from network); 18 Jul 2013 23:20:37 -0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yandex.ru; s=mail; t=1374189625; bh=Duw/HXyONAAnaNgCiJ0GLhOU5VYH6zm11T5pydpXNGk=; h=Content-Type:To:Date:Subject:MIME-Version: Content-Transfer-Encoding:From:Message-ID:User-Agent; b=OJsgf4EGM9+X3v5POapszekFI5S2QNCLG8sMdGdY82FQm/L8Iaw2D2dH12Dyj6QkO jWQYRA7hUguP8I1rkHAgUjti8AH0jx5T5FWcxg68+51sLt6w3uiO4Ro4hGs2ZFH1Wx dpEhJ8wz0gScB0EnP85kdmOgoo2C4HW8IkWsUDZ4= Authentication-Results: smtp11.mail.yandex.net; dkim=pass header.i=@yandex.ru User-Agent: Opera Mail/1.0 (Win32) Xref: news.gmane.org gmane.linux.lib.musl.general:3679 Archived-At: /* FILE: scanf-nullbyte-char.c /* Commit: ef5507867b59d19f21437970e87b5d0415c07b2e scanf should not append null byte after scanning %c */ #include #include "test.h" int main(void) { char target_buffer[2] = { 'a', 'a' }; char source_buffer = 'b'; sscanf(&source_buffer, "%c", &target_buffer); if(target_buffer[1] != 'a' && !target_buffer[1]) { t_error("scanf stored null byte for %%c conversion\n"); } return 0; }