Received: by 2002:ab2:6a05:0:b0:1f8:1780:a4ed with SMTP id w5csp1004315lqo; Sat, 11 May 2024 03:32:33 -0700 (PDT) X-Forwarded-Encrypted: i=4; AJvYcCX2tE4G1H1XxaLObO6PEM/jYQ4XSYsnlcPgfBcHakoMsNlzvhNgbQqY7FDHvH69ToAUZX9RUp/dyyLgfcPGx0DajimRTOo1up1DzSgs3A== X-Google-Smtp-Source: AGHT+IESpMVtH85JjsWCBfDgXOEwe+p5+CPQaXr98ZGo4m8UICVBrcfYvXtk6S5zZvsiFbTvylBo X-Received: by 2002:a17:902:e892:b0:1e5:9dff:a52c with SMTP id d9443c01a7336-1ef43d2e258mr62874955ad.10.1715423553217; Sat, 11 May 2024 03:32:33 -0700 (PDT) ARC-Seal: i=3; a=rsa-sha256; t=1715423553; cv=pass; d=google.com; s=arc-20160816; b=ui4owP0lN/JplZTqFenh5HDic3gdIusvfHkgaB2K8mDk2VKIBq57l6883AjvuQAri6 djVCXLVvgdX1mcV6hPEv4IqXkyZbqumEOqBmkg/zG9mi5DsHJeHPfcbrskdpMMGbTeUy NAn+iHS9iArnaLTbXFnDpeHQZINsKxXm7xEbFuNAjkcNch3PvewQPlEYIzwxEhzC2403 wMhWGmuyAETN2aZ+FHktMH1YO6MGspuY2by8ffijEfCaq+Ksoq9IOM0nJqCZWvNn5gwH nD0q5SXPCHXbRJjfHY2TsHbWZG5G91/4dvjBYmXu3XiHgYlEKhPeYSZqtXFBpRIRn8sO Mhxg== ARC-Message-Signature: i=3; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:message-id:date:subject:cc:to :from:dkim-signature; bh=/7gYJWPFx0fCbtvC5ThX3mdv4HB7t7f/ZJMSoiqpPZU=; fh=ExGhjNQEFJgRqHmYATVc5UXZbS7abAmaHDitrfHKOuE=; b=MyWX/MsYq5jsMutPREIBvUCNMToOMJkHLn5zUfXnunil/Tly39NukJkUGG/izpmHy1 AyVkOCmB9XQLsyAckg0894uofvlPPCfjQdjMhWntWi6busmku3X900regVhVRcvPJdWx lI/8neQ8hazpwqZJYsS5ZOVXI0nS4bUuulv0pKZkwDXp+9J6RPu60MqZU8jGqicOv2lt yUBmZYVIhoDZftKJqTvzE3LA1hle35uvc9/adhSHAhb0xT2+WwCgl3GVUVX2q6T/rSC0 /PhBhI1l7k0GqZqWjpHpHdbgagKLqhEHrV6KVVBGkSNLJ1hj8xzIrLTYdUJgZRvY5Cxv KlgQ==; dara=google.com ARC-Authentication-Results: i=3; mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=BCCfP3aP; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-bluetooth+bounces-4529-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4529-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id d9443c01a7336-1ef0c36916asi56630855ad.615.2024.05.11.03.32.32 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 11 May 2024 03:32:33 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-bluetooth+bounces-4529-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; dkim=pass header.i=@iki.fi header.s=lahtoruutu header.b=BCCfP3aP; arc=pass (i=2 spf=pass spfdomain=iki.fi dkim=pass dkdomain=iki.fi); spf=pass (google.com: domain of linux-bluetooth+bounces-4529-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-bluetooth+bounces-4529-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id 46FB0B21120 for ; Sat, 11 May 2024 10:32:28 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1D04722087; Sat, 11 May 2024 10:32:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=iki.fi header.i=@iki.fi header.b="BCCfP3aP" X-Original-To: linux-bluetooth@vger.kernel.org Received: from lahtoruutu.iki.fi (lahtoruutu.iki.fi [185.185.170.37]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 04FE828F3 for ; Sat, 11 May 2024 10:32:18 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=pass smtp.client-ip=185.185.170.37 ARC-Seal:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715423541; cv=pass; b=OcexJhv6yGmKr2vLYEyEwH1Ee3jN1O48K7MlClDqZiqF4gAhcOQ69xaQDrI7mD/VIxqH4zZa/5PJSWVzF/V+x4VA7Dt6egInNBANJxh01GU/hBuB0FTz9iUFgKb23fln/9Yzc5NrvG7FYqxgDorAl33Aks1tZFAYCcb/cTu3I/E= ARC-Message-Signature:i=2; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1715423541; c=relaxed/simple; bh=sMt8NM5nEqliNvsbMWL46LiVtqHsXYRxFt/gfA3iv4M=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=khwSLts5CE1iGGXsnBdNCMFbHya+QAsw1VV7BsrfFFyfUxzMM/WM5QTWI5HtgbsSNRytRKMr1CE3I99cgNDS9Jtu5u2ncXVsISNIHqfWbiRFhOfo5oZvMPaKLtS/UuPf0Skylm5jI3xUgPPxiws3b6BPFUF8bLuneeAUqoO/brg= ARC-Authentication-Results:i=2; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iki.fi; spf=pass smtp.mailfrom=iki.fi; dkim=pass (2048-bit key) header.d=iki.fi header.i=@iki.fi header.b=BCCfP3aP; arc=pass smtp.client-ip=185.185.170.37 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=iki.fi Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=iki.fi Received: from monolith.lan (unknown [193.138.7.158]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pav) by lahtoruutu.iki.fi (Postfix) with ESMTPSA id 4Vc2B23c1rz49Pyk; Sat, 11 May 2024 13:32:10 +0300 (EEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1715423531; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=/7gYJWPFx0fCbtvC5ThX3mdv4HB7t7f/ZJMSoiqpPZU=; b=BCCfP3aPUgmuguEpxhSaBO5Vpo+uIYYsQrSpkVJuHS2S1nYrfEMs3MqB6Ip+pUjxUt9Sbj qyyP8uA6+xFzyyk47shP9AjZq8khOhCGN0q8N2ZCqrFAolnuiMXu2rrjKHzX1+dNSNBDFd CWGmT0miug291rmNFQHV54LsMQV/uPKB4X79Ldo4Fa+8EF1DttHvcuoymKyEk/OBSszsHH Vnztq6OiasFsLMWQFwek/+no7K/Hfl7taaS/NV4SAz0/Ibx8C24nkXSLh8yHHaQAEy7OvY fRgHont5a/8Sau/KhdSFOeNBsH4i69A2dpEfaSYDmisrfNBxgC7oy+OTbI2b5w== ARC-Seal: i=1; s=lahtoruutu; d=iki.fi; t=1715423531; a=rsa-sha256; cv=none; b=V1VE9BHIfD3ulAGT3zwCUg8Blmy4dSn872OQp6v2yfTv3Jj3Inpeh0FccwN+EIoky+n7vc hdPGNwjM2hjfCeeDC00Lk7mhCmbArK0e5bwBGLwR86nYA8UBUrY7/ucvZFMLrmiLuSJX2o VkBB6Mzuql82z3rZI4gD5julzFZAPr9bYPpAz62gITfncxvCabTB1zuj7J5/aql3FMJ20O g+zIrQjJEhn+Xsqgh4bSIYwY0DZmtB+P3CpAPYSQjqc2iCgEofxal4ZKfHHvKrwFdOHmeW NLbOJc3gZTrI2kYE8WBtFsun20dTxPpNaMDLXZ8rTCobzsPys/d0EtCvw+1PEA== ARC-Authentication-Results: i=1; ORIGINATING; auth=pass smtp.auth=pav smtp.mailfrom=pav@iki.fi ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=iki.fi; s=lahtoruutu; t=1715423531; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=/7gYJWPFx0fCbtvC5ThX3mdv4HB7t7f/ZJMSoiqpPZU=; b=GKkxD/rz1D3Hi4sZnP72Ul2VDdF9gYAswpNtNhP+pMqot0TRt/3zFWBxdREq/JGtyGK5RR YBg1Gwy9RoVC8kSJ3uLAsL490KZhfN8O2sn4EOqc5VqDvC/cBBTkMFNpz9g2TN0RNHqeZV k1gLQ2PMu+FanFODCea9BbnEM/yGPZEUSo31nuV4FpIoQiEJjeuywojDgya00VQRfb4QPk tfdrFriFH2kQxPSfcmA3SQTZy2xg9M0UGnxSiLEisdoIE8ysesT3EpHMXW9h0i2oywt+xe 1JkAXkzldjAxdGJEOANyaa1+W4RGwVCdwclFYGCNewdkZRum2VZGx1r9obf4lA== From: Pauli Virtanen To: linux-bluetooth@vger.kernel.org Cc: Pauli Virtanen Subject: [PATCH BlueZ] tools: fix using too small buffers in test-runner Date: Sat, 11 May 2024 13:32:07 +0300 Message-ID: <9b7b8130a4296de7e02435d7be3c6d00c4976427.1715423446.git.pav@iki.fi> X-Mailer: git-send-email 2.45.0 Precedence: bulk X-Mailing-List: linux-bluetooth@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Fix compiler warning: tools/test-runner.c:309:57: error: 'sprintf' may write a terminating nul past the end of the destination [-Werror=format-overflow=] --- tools/test-runner.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tools/test-runner.c b/tools/test-runner.c index 243eab468..5bdcf42fc 100644 --- a/tools/test-runner.c +++ b/tools/test-runner.c @@ -302,10 +302,10 @@ static void start_qemu(void) const char *path = "/tmp/bt-server-bredr"; char *chrdev, *serdev; - chrdev = alloca(32 + strlen(path)); + chrdev = alloca(48 + strlen(path)); sprintf(chrdev, "socket,path=%s,id=bt%d", path, i); - serdev = alloca(32); + serdev = alloca(48); sprintf(serdev, "pci-serial,chardev=bt%d", i); argv[pos++] = "-chardev"; -- 2.45.0