From patchwork Thu Nov 21 17:11:59 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dimitar Dimitrov X-Patchwork-Id: 1199072 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=209.132.180.131; helo=sourceware.org; envelope-from=gcc-patches-return-514337-incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=dinux.eu Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.b="cvJSybVM"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=dinux.eu header.i=@dinux.eu header.b="nS0Zuy7r"; dkim-atps=neutral Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 47JmMy542kz9sPc for ; Fri, 22 Nov 2019 04:12:46 +1100 (AEDT) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; q=dns; s=default; b=gFS6ImmRMtYpVGW8 hvNFR/IQ4/uoddpeXL/PLzzU9RzxPLDj7XSxUl9C8ZZ4svLDCQFa1CWB11GEgOvx 2NL/qmeoVM58/fV8P0nGIRbxE1qt6+FiOdB57HpduAUhabro3kcU3OMi0D7gPxgm 6thNlUvZ/z4HsbBLQBuco1NvLeY= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:from :to:cc:subject:date:message-id:mime-version :content-transfer-encoding; s=default; bh=cCbfZMSgKGlg0sY1rhxzaQ 4vTbw=; b=cvJSybVMEkkEy9Rj1so+B9euwI9K+nPoEw3vRIhuZhpn8m3SEaD7Fh Wv/ISAogUETYVecEW+Y4c61t/rA+/aVCtBvPmTNEoioldED7OH4kv43Yss101go5 spEgRhbMrEzLEUkKZJBFtONnIzefFl+Qxiwwu+6Yos0NBnt+dQazY= 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-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@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 19:11:59 +0200 Message-Id: <20191121171159.21853-1-dimitar@dinux.eu> MIME-Version: 1.0 X-OutGoing-Spam-Status: No, score=-1.0 X-IsSubscribed: yes 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);