Message ID | 20240412073346.458116-27-richard.henderson@linaro.org |
---|---|
State | New |
Headers | show
Delivered-To: patch@linaro.org Received: by 2002:adf:e6ca:0:b0:346:15ad:a2a with SMTP id y10csp591292wrm; Fri, 12 Apr 2024 00:37:17 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCX19U/+pV6t5DIUM777aU/LenarFVV3PcSv7LhKisAhHNR/wV+2iceWgke6jH/oyZRrFrb0WwWi2enHjdAqWGVT X-Google-Smtp-Source: AGHT+IFLeaNqRobNFMVpVnoUrnrsFmMGLk7HrcrGiswG3HEOntOHCFEETboXRdcR3IEzlVR8KvpK X-Received: by 2002:a05:620a:47ed:b0:78d:436e:f0af with SMTP id du45-20020a05620a47ed00b0078d436ef0afmr1931514qkb.58.1712907437050; Fri, 12 Apr 2024 00:37:17 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712907437; cv=none; d=google.com; s=arc-20160816; b=nogWxtM3tZxa/UPwFVONVpohFHHDLF2cKxl84hAkYNlAldXIbP03SuVXqM9U5JUgCE S2j6599JD7UqYhTvSMF/889MinH4orQkg6ThDE5u7bbXosN7kA5buKKIkX9+7Xcx1Oc4 Pe/iDJCKIYyz7JAccG6AkZej/wHhZCVzLQZppfT3f9o149IqaZjgsrewphawRFX8W8kR /FZt4fP91jsHiTLsBqPDp7/3IlxL8kSXukJCadWknU5izwWBGL0R43KixXthxhEHeQbn LgTJfj6zwoOx6aJLUd6QAd9W+78+NTuHyLnKHDG/kKi/iDw9HGOEH65zdLsNTBhgLj+8 rSnQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=sender:errors-to:list-subscribe:list-help:list-post:list-archive :list-unsubscribe:list-id:precedence:content-transfer-encoding :mime-version:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=qYC/ppUfzbE2OTFde4QzYfLBrlyxo0ZotFcSEeLzOeA=; fh=XWTD8Z9WAMjh+M8BxQj8k30uAZD5B0T9z1nl1AeO1vA=; b=V8qzXqtIgLIKpdgJaimz8YUTrG2jgobp+oo4RADY2ZJ6MCexyAJeEFDoTGSQn+HhtO 6H/RwJzJwY/qTlLxV8nyGFVx1wvZWeX2iHWiUCo5MrGjBQdjPOEsHNDWC2CWDESlhWL6 qPyM3W8rOdfEm5fRaW+t1yhs3CS7UojYsNa0oFCxYEgZPaBg+jcxnWgE1MA7BZvbTYo9 lmbynSSFi4g5PXfKvJEHqST6sUfEU0NJPRPV70nUIfwIHKl/9zb6JUVk29mPN4T0UUOb i7k2UHDOspNAl9rShCFUyoV0J3qH/3E1spzzzj5P2deZAcfjwkdYqoB24NX08JW/Bs43 QJVA==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E9qaUeph; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: <qemu-devel-bounces+patch=linaro.org@nongnu.org> Received: from lists.gnu.org (lists.gnu.org. [209.51.188.17]) by mx.google.com with ESMTPS id u1-20020a05620a430100b0078a04c6a962si3390934qko.735.2024.04.12.00.37.16 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Apr 2024 00:37:17 -0700 (PDT) Received-SPF: pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) client-ip=209.51.188.17; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=E9qaUeph; spf=pass (google.com: domain of qemu-devel-bounces+patch=linaro.org@nongnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom="qemu-devel-bounces+patch=linaro.org@nongnu.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: from localhost ([::1] helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from <qemu-devel-bounces@nongnu.org>) id 1rvBQP-00076p-Eh; Fri, 12 Apr 2024 03:34:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1rvBQM-00075t-0K for qemu-devel@nongnu.org; Fri, 12 Apr 2024 03:34:15 -0400 Received: from mail-pl1-x636.google.com ([2607:f8b0:4864:20::636]) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from <richard.henderson@linaro.org>) id 1rvBQJ-0007Di-5Y for qemu-devel@nongnu.org; Fri, 12 Apr 2024 03:34:13 -0400 Received: by mail-pl1-x636.google.com with SMTP id d9443c01a7336-1e424bd30fbso5372505ad.0 for <qemu-devel@nongnu.org>; Fri, 12 Apr 2024 00:34:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712907248; x=1713512048; darn=nongnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=qYC/ppUfzbE2OTFde4QzYfLBrlyxo0ZotFcSEeLzOeA=; b=E9qaUephsaRJywbRSBnjfLIYMfTX8068vuSeuVDnoL6h5cbdSB2HlVBIXk1ElXsZ1w Kh1CWxeH2GFs89QTCFwzup+NSgEaNPjjhu+yYheHX9oOXNXlFDwrfUJF87lxGnyCxDWT kHFJnvAQ7lEpqKduizTQA61v41gxMDnqC/naoSGTJwY8yYKNVlI6/kPLBdbzqJU+JbuA F6/GAlnFmfzTvTboyj+zA+78LpMbsIPQtguyaRk20lNcVvigRbLPdo66NtzalYccXJRv 7MZSts1aUeDSmiQHr1H/Eg2BvYLbHgaFDZ+tl0JorODKTNraDFLSYbwtfaG/G0vywT+v LTSQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712907248; x=1713512048; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=qYC/ppUfzbE2OTFde4QzYfLBrlyxo0ZotFcSEeLzOeA=; b=o0Vyef+86dVdDiGtnH56r7xgjAuV+4/LLZtiZ6f2Gajuz3xkNz1gkXDi7bGr2lCsHo fmqsGLyDLa2E0TXSGM1fmtgauZ9TbTfl2Jaxou+p6F6qaBHdH6In37Qqikz+UPyHVz5G +xjvp7WsIYtdMyYtzQPyY85pymJ5bEiEbpeRITwF9OsUPpP1YKAtg72yfjPjJatfEap3 EzZfsS3ZAPePQ1wEDjhnVpNfaL/260DhkXsh75o1fjV1nFWknb8R0vox6b2OuMo+e4e1 +oveI3SxqSqx1TEaq0mqCyusv1qVbJol7+dQHB1NGY6l1hi2FO6X512d/kOxZuUVDAnT razQ== X-Gm-Message-State: AOJu0Yz+9KswDaSAFO0cNX7Ji2W4SsXYBRheb82grzfST5t4fGTDz1fi dwHeLwiaEsZJmiGGewl++XLJ6VPhPbf23W1AfnQyTz6jl4g3g6SmaX3OHNHbHud08cIpLokR6zX P X-Received: by 2002:a17:903:230b:b0:1e2:9676:c326 with SMTP id d11-20020a170903230b00b001e29676c326mr2221309plh.29.1712907248262; Fri, 12 Apr 2024 00:34:08 -0700 (PDT) Received: from stoup.. (174-21-72-5.tukw.qwest.net. [174.21.72.5]) by smtp.gmail.com with ESMTPSA id e5-20020a17090301c500b001e556734814sm2206099plh.134.2024.04.12.00.34.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 00:34:07 -0700 (PDT) From: Richard Henderson <richard.henderson@linaro.org> To: qemu-devel@nongnu.org Cc: =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>, Peter Maydell <peter.maydell@linaro.org> Subject: [PATCH v3 26/27] target/arm: Replace sprintf() by snprintf() Date: Fri, 12 Apr 2024 00:33:45 -0700 Message-Id: <20240412073346.458116-27-richard.henderson@linaro.org> X-Mailer: git-send-email 2.34.1 In-Reply-To: <20240412073346.458116-1-richard.henderson@linaro.org> References: <20240412073346.458116-1-richard.henderson@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Received-SPF: pass client-ip=2607:f8b0:4864:20::636; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x636.google.com X-Spam_score_int: -20 X-Spam_score: -2.1 X-Spam_bar: -- X-Spam_report: (-2.1 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: <qemu-devel.nongnu.org> List-Unsubscribe: <https://lists.nongnu.org/mailman/options/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=unsubscribe> List-Archive: <https://lists.nongnu.org/archive/html/qemu-devel> List-Post: <mailto:qemu-devel@nongnu.org> List-Help: <mailto:qemu-devel-request@nongnu.org?subject=help> List-Subscribe: <https://lists.nongnu.org/mailman/listinfo/qemu-devel>, <mailto:qemu-devel-request@nongnu.org?subject=subscribe> Errors-To: qemu-devel-bounces+patch=linaro.org@nongnu.org Sender: qemu-devel-bounces+patch=linaro.org@nongnu.org |
Series |
misc: Replace sprintf
|
expand
|
diff --git a/target/arm/cpu64.c b/target/arm/cpu64.c index 985b1efe16..f0f4fe6714 100644 --- a/target/arm/cpu64.c +++ b/target/arm/cpu64.c @@ -433,7 +433,7 @@ void aarch64_add_sve_properties(Object *obj) for (vq = 1; vq <= ARM_MAX_VQ; ++vq) { char name[8]; - sprintf(name, "sve%d", vq * 128); + snprintf(name, sizeof(name), "sve%d", vq * 128); object_property_add(obj, name, "bool", cpu_arm_get_vq, cpu_arm_set_vq, NULL, &cpu->sve_vq); } @@ -458,7 +458,7 @@ void aarch64_add_sme_properties(Object *obj) for (vq = 1; vq <= ARM_MAX_VQ; vq <<= 1) { char name[8]; - sprintf(name, "sme%d", vq * 128); + snprintf(name, sizeof(name), "sme%d", vq * 128); object_property_add(obj, name, "bool", cpu_arm_get_vq, cpu_arm_set_vq, NULL, &cpu->sme_vq); }