From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.org/gmane.linux.lib.musl.general/3680 Path: news.gmane.org!not-for-mail From: Szabolcs Nagy Newsgroups: gmane.linux.lib.musl.general Subject: Re: musl regression tests Date: Fri, 19 Jul 2013 01:49:09 +0200 Message-ID: <20130718234908.GA15323@port70.net> References: Reply-To: musl@lists.openwall.com NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1374191368 8269 80.91.229.3 (18 Jul 2013 23:49:28 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 18 Jul 2013 23:49:28 +0000 (UTC) To: musl@lists.openwall.com Original-X-From: musl-return-3684-gllmg-musl=m.gmane.org@lists.openwall.com Fri Jul 19 01:49:27 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 1Uzxwo-0008Hw-33 for gllmg-musl@plane.gmane.org; Fri, 19 Jul 2013 01:49:22 +0200 Original-Received: (qmail 22386 invoked by uid 550); 18 Jul 2013 23:49:21 -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 22378 invoked from network); 18 Jul 2013 23:49:21 -0000 Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) Xref: news.gmane.org gmane.linux.lib.musl.general:3680 Archived-At: thanks for the test case, i will add it once i get the repo up * Kirill Ternosvky [2013-07-18 19:20:23 -0400]: > char target_buffer[2] = { 'a', 'a' }; > char source_buffer = 'b'; > > sscanf(&source_buffer, "%c", &target_buffer); > > if(target_buffer[1] != 'a' && !target_buffer[1]) target_buffer[1] != 'a' is enough in this case any corruption is a corruption not just 0 > { > t_error("scanf stored null byte for %%c conversion\n"); > } > > return 0; > }