From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 40733 invoked by alias); 21 Nov 2019 17:12:14 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 40673 invoked by uid 89); 21 Nov 2019 17:12:14 -0000 Authentication-Results: sourceware.org; auth=none X-Spam-SWARE-Status: No, score=-21.0 required=5.0 tests=AWL,BAYES_50,GIT_PATCH_0,GIT_PATCH_1,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.1 spammy=UD:eu, H*F:D*eu, H*RU:sk:server2, HX-Spam-Relays-External:sk:server2 X-HELO: server28.superhosting.bg Received: from server28.superhosting.bg (HELO server28.superhosting.bg) (217.174.156.11) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 21 Nov 2019 17:12:10 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=dinux.eu; s=default; h=Content-Transfer-Encoding:MIME-Version:Message-Id:Date:Subject: Cc:To:From:Sender:Reply-To:Content-Type:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: In-Reply-To:References:List-Id:List-Help:List-Unsubscribe:List-Subscribe: List-Post:List-Owner:List-Archive; bh=DR6pppiyMxh/5ZTGWkLnaDzwFkyKowKaCD6ynb19Tps=; b=nS0Zuy7rqZ6kXansgVUMYHMCIX k6l+ZTyFxeoMMAaP+/Y4OOwM1fh2+ZpZ4UX30VqOr8OOxdIVUhb/VdHEuO6JRm6WPDtZ1tdBqQnY7 2gDUXqo9/zcFukhy98chsn+sCbAdZ+YGvUpn07k2gHZS4tjsu2FCP36vl2ssGTpBSNGa0Arki23tQ kb3l6dJGJv2vGU4eg5jKENxjWl+LAWnsBNAgjDR2n973UgevkTYHUay07wzhGmBx973SPYOVUrR7O Oe6UpuS0DfjR3NsdZWhkiUKZXstHdqAjIxeBbPea0i8LvBv2PHDOhF50nra0AuWTp+SWeO1MBWqYy 1pLa0FqA==; Received: from [95.87.234.74] (port=40462 helo=localhost.localdomain) by server28.superhosting.bg with esmtpsa (TLSv1.2:ECDHE-RSA-AES128-GCM-SHA256:128) (Exim 4.92) (envelope-from ) id 1iXpzx-00089e-RG; Thu, 21 Nov 2019 19:12:07 +0200 From: Dimitar Dimitrov To: gcc-patches@gcc.gnu.org Cc: Dimitar Dimitrov Subject: [PATCH] testsuite: Fix array size in gcc.dg/strlenopt-66.c Date: Thu, 21 Nov 2019 17:27:00 -0000 Message-Id: <20191121171159.21853-1-dimitar@dinux.eu> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-OutGoing-Spam-Status: No, score=-1.0 X-IsSubscribed: yes X-SW-Source: 2019-11/txt/msg02130.txt.bz2 One of the passed arguments is actually a string with size 4 ("123"). Adjust the destination buffer accordingly. gcc/testsuite/ChangeLog: 2019-11-21 Dimitar Dimitrov * gcc.dg/strlenopt-66.c (test_strncmp_a4_cond_a5_a3_n): Fix array size. Signed-off-by: Dimitar Dimitrov --- gcc/testsuite/gcc.dg/strlenopt-66.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gcc/testsuite/gcc.dg/strlenopt-66.c b/gcc/testsuite/gcc.dg/strlenopt-66.c index 4ba31a845b0..3de22c18f4f 100644 --- a/gcc/testsuite/gcc.dg/strlenopt-66.c +++ b/gcc/testsuite/gcc.dg/strlenopt-66.c @@ -88,7 +88,7 @@ __attribute__ ((noclone, noinline, noipa)) void test_strncmp_a4_cond_a5_a3_n (const char *s1, const char *s2, const char *s3, int i, unsigned n) { - char a3[3], a4[4], a5[5]; + char a3[4], a4[4], a5[5]; strcpy (a3, s1); strcpy (a4, s2); strcpy (a5, s3); -- 2.20.1