From patchwork Mon Aug 19 06:43:03 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Daniel Wagner X-Patchwork-Id: 171582 Delivered-To: patch@linaro.org Received: by 2002:a92:d204:0:0:0:0:0 with SMTP id y4csp2570234ily; Sun, 18 Aug 2019 23:43:13 -0700 (PDT) X-Google-Smtp-Source: APXvYqyG5d7pxiGWe4W+RR7FWUWNMzqit3rumh51MFMjPlEzStSZ2u+NYeFJlNjQyhHf0XNd1OF/ X-Received: by 2002:a63:2ec9:: with SMTP id u192mr18136414pgu.16.1566196993678; Sun, 18 Aug 2019 23:43:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1566196993; cv=none; d=google.com; s=arc-20160816; b=Fr2wQO25fXFqHy4sxGwZb0YE9cmXsf7HcgeTAXPAHTIfkhW5Z2xT29IVST7MgmevZn YaJN6YahglZqQ2wbbzCKs84B/VaZTxqoItqOOorfINb5rJ0Nqqhf+WyDKpjI6iQ8EERO axNpTDN0Y6fl5fv6LTNa58AiiX9YIpWTOR0yzYUcoe1uR53VNDXTErlH/4iw+rrWbVPu nlA1KLh6VUXYM4G0uK051GSIQZnwhW8gY73kqwAxdo8pA8qgiD3R953SIACLg0Uo1xKP tbY4b/LKTt0pL1U3R9sNaBn1+gTszwouoT0sgh0ACh8VwyMH+BbGopNVE9K8MgJDt5PD Mayw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=B7P0diS01e9ZLRenaJ1QeUD0dYjOn5g+xMDDA2CF6Us=; b=QWhAHhDvwqbDTknAFgfg72EoG0/RAA4aotyAQF3ZKilEtQes6JctfccIWaJXpVRenD zfJdXimQ9zEVbO1dlrsjGuqx0qUn8WaVUALbo3TxmEgZz4uMAAn5IPuK6fxq3rzH8UAz QKSHyxZxReRHEP/XZSSZ2mFZ5+rcOQWPgnPrf3zJFniqDJVfJ/18PJQu+F7VJybZBOJ6 aQ1UTYZIaJkOvFzjeyo87b/CuqARcx2Oc81IeG8R4L4WQ3hUr0GT7wyzuWpEefLpKxOB JF/IGHKVUYo45qg9dA4pxGHwpcu6oGJCMZqFO2Amx1g+OaMYueXkEKcu3yNtWLluzGXR u70A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-rt-users-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-rt-users-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=monom.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id v33si9200842pgk.152.2019.08.18.23.43.13; Sun, 18 Aug 2019 23:43:13 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-rt-users-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-rt-users-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-rt-users-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=monom.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726767AbfHSGnM (ORCPT + 3 others); Mon, 19 Aug 2019 02:43:12 -0400 Received: from mail.monom.org ([188.138.9.77]:33096 "EHLO mail.monom.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725308AbfHSGnM (ORCPT ); Mon, 19 Aug 2019 02:43:12 -0400 Received: from mail.monom.org (localhost [127.0.0.1]) by filter.mynetwork.local (Postfix) with ESMTP id AD7E5500797; Mon, 19 Aug 2019 08:43:10 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on mail.monom.org X-Spam-Level: X-Spam-Status: No, score=-2.5 required=5.0 tests=ALL_TRUSTED,BAYES_00 autolearn=ham autolearn_force=no version=3.4.2 Received: from localhost (b9168f76.cgn.dg-w.de [185.22.143.118]) by mail.monom.org (Postfix) with ESMTPSA id 93BED5007F3; Mon, 19 Aug 2019 08:43:10 +0200 (CEST) From: Daniel Wagner To: Clark Williams , John Kacur Cc: linux-rt-users@vger.kernel.org, Daniel Wagner Subject: [PATCH rt-tests v1 v1 3/4] svsematest: Increase buffer to avoid overflow Date: Mon, 19 Aug 2019 08:43:03 +0200 Message-Id: <20190819064304.4676-4-wagi@monom.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190819064304.4676-1-wagi@monom.org> References: <20190819064304.4676-1-wagi@monom.org> MIME-Version: 1.0 Sender: linux-rt-users-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rt-users@vger.kernel.org Increase the size of the char buffer. gcc 9.1.1 reports: rc/svsematest/svsematest.c:578:24: warning: ‘%d’ directive writing between 1 and 10 bytes into a region of size 5 [-Wformat-overflow=] 578 | sprintf(f_opt, "-fr%d", i); | ^~ src/svsematest/svsematest.c:606:5: note: ‘sprintf’ output between 5 and 14 bytes into a destination of size 8 606 | sprintf(f_opt, "-fs%d", i); | ^~~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Daniel Wagner --- src/svsematest/svsematest.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.21.0 Signed-off-by: John Kacur diff --git a/src/svsematest/svsematest.c b/src/svsematest/svsematest.c index 8f880786ec0f..15e36af76288 100644 --- a/src/svsematest/svsematest.c +++ b/src/svsematest/svsematest.c @@ -401,7 +401,7 @@ int main(int argc, char *argv[]) struct params *sender = NULL; sigset_t sigset; void *param = NULL; - char f_opt[8]; + char f_opt[14]; struct timespec launchdelay, maindelay; myfile = getenv("_");