Message ID | 20240412073346.458116-13-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 y10csp590534wrm; Fri, 12 Apr 2024 00:34:42 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCVrAbB6ZsbUhuqKcL44g34Cw5DMgS3cMmDxYU2kig7UsqexlgaBGY2IWlJnkQ53apuYM3dCNWSp3XvoCNiu9L9j X-Google-Smtp-Source: AGHT+IGyjvcMbhvA0JS/e4tFoIPRAQqKR36W1T59WAfce6vIzJnLr9e15YtAnnWXK97JCqIav2yP X-Received: by 2002:a05:6214:d82:b0:699:17cc:3e69 with SMTP id e2-20020a0562140d8200b0069917cc3e69mr2683377qve.61.1712907281671; Fri, 12 Apr 2024 00:34:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1712907281; cv=none; d=google.com; s=arc-20160816; b=cvMzkxQE61JTx2keyWW40YRVbA8N5e56R8CbVbYtliogiSrFEcyqdUgyFxbMK/JpYY wQ0S+gp/A02acQPMuQe4sxSQu6bzXFsOomsGqc6PGKjGcZ+jDo5Edhp0SHQ3zJS4fcGn NIA8z6yPpWc2zZmSBro7VaUF4SIxeWaP0yB/JLcOSxs5i65I57qp9/Dq2sVHkNsfU4N6 H2sNsGi0F1dSVcUHOovQiLLnZeW6CNAHsVdLwdL6zohLy4Ki9i31ZLSfyUB9MRhiaNKQ jfNWdYFl5cBsbdAcPRpPz5Q5bNkDtAe3C65kE4ipNAnRYO5osdu5qnHn6kJcF0bt0J1G JxZg== 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=2rkNxCt/0g8Id1+pQXEkuRBEGY5hnj70aYW+ARQ9RhY=; fh=XWTD8Z9WAMjh+M8BxQj8k30uAZD5B0T9z1nl1AeO1vA=; b=mvgteLGE+8nvuoJFYi2GYi3kl+JDELQ2eByo1opiI/j17oeQLBDFH7uwtuIcG43HPC S2m7txDWhljrjmIcKgDdvBuw77/ddQrTROqa4y4LiDFNY7rCYluguA97ueadNKRKT2d0 s3dQHxUBuC5AfX6OaD2hXwZPVLW/8itzA9Ll4aMUcR3AyVXw54gJelsspRchsECHf481 oUVuYby3HRk9kmF+mot5UU2vqyr1EfdgLZimTTv4Gxgl4hwV4Z2bc2mZPJMhW5aIFznt nnqNVAsBVQW6bx5Be4xSYBlvzHZXskL7aO6E/4JgENC4INPk5uqcwcTFDVGixcAyFus3 JdUw==; dara=google.com ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=IARtOh47; 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 kk22-20020a056214509600b006993cf9de84si3354533qvb.343.2024.04.12.00.34.41 for <patch@linaro.org> (version=TLS1_2 cipher=ECDHE-ECDSA-CHACHA20-POLY1305 bits=256/256); Fri, 12 Apr 2024 00:34:41 -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=IARtOh47; 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 1rvBQE-00072Y-ME; Fri, 12 Apr 2024 03:34:07 -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 1rvBQ8-00070n-FL for qemu-devel@nongnu.org; Fri, 12 Apr 2024 03:34:01 -0400 Received: from mail-pl1-x62e.google.com ([2607:f8b0:4864:20::62e]) 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 1rvBQ6-00079b-US for qemu-devel@nongnu.org; Fri, 12 Apr 2024 03:34:00 -0400 Received: by mail-pl1-x62e.google.com with SMTP id d9443c01a7336-1e411e339b8so5282885ad.3 for <qemu-devel@nongnu.org>; Fri, 12 Apr 2024 00:33:58 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1712907237; x=1713512037; 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=2rkNxCt/0g8Id1+pQXEkuRBEGY5hnj70aYW+ARQ9RhY=; b=IARtOh47MGDsmxINTCLsAlLoq5CkD61rkgaKBjMBK9nkSArqpj8+tPHa6w6yRC8vvH Tk0S0PZo9GRAsRcr1Uq/J/sS8OICGwuxm490d36XIVMQTUQcH5ADDaTF8cLA/5D/sCSl ZhFSro03qmK69JGFiIXgiWCxqoWcrbjTN7W3hcc1q3MK1E3wwrIWAReNgCPYhpnQj5bh GPyRpe/QzdI+G4QsprY/Wzy1ZT+uei8cpyRECxZCppW+4G1Tif9c4m4iHe3z0qYGN6kY PRM6Rm9A1KfMgHGjMPSRzCvAP9MibwKPW6i60OSphXmduNkTW0mAW0at1xcTUQQnwsEV vmww== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1712907237; x=1713512037; 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=2rkNxCt/0g8Id1+pQXEkuRBEGY5hnj70aYW+ARQ9RhY=; b=U2AyRBU7dNliZAU0y2EOugMTAjM9NNKhC22Yj+6+tSWrP0VPCsGsREJhcAXBZudhLs du0YiB+QZnEs4/K4li6bmzFCMBM3gBR3xUf0LP/uMRf/uCxlpgSIE80z4s6E3SeYfhLe ia7imXlfa9R/sKSL5xR+itcOyY51kkr7ovT720UQQ4KPlURdaRiYlM+Ln279xEhzSNvX DvHjODcG0RBtsqmc7lSD53yJ6d1+CmSszDTMtqgTYUKL8hCtQhLB+FEyudvPLnDVHbvk 4NpBd82WRyHMP/Y4xV2BbpssH0cL1ySzd8NOutr1uxXjJhkR7htHzDYWVTCCMh8s1a5c 9nhQ== X-Gm-Message-State: AOJu0YzBIPOwL4dy5fKn44XuVTMEPJz0VG1mzEw0ICZ0Y0NgrLnLVGUO 0gdiA+clQwaECIHolytfeaP2eczZ6xsvjH/yQN/Cuw437igcUt9vqJz4IOKtRo4Lsxf0ObA/L2r C X-Received: by 2002:a17:903:24d:b0:1e4:970e:37a7 with SMTP id j13-20020a170903024d00b001e4970e37a7mr1874001plh.60.1712907237402; Fri, 12 Apr 2024 00:33:57 -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.33.56 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 00:33:57 -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 12/27] disas/m68k: Replace sprintf() by snprintf() Date: Fri, 12 Apr 2024 00:33:31 -0700 Message-Id: <20240412073346.458116-13-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::62e; envelope-from=richard.henderson@linaro.org; helo=mail-pl1-x62e.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/disas/m68k.c b/disas/m68k.c index 1f16e295ab..800b4145ac 100644 --- a/disas/m68k.c +++ b/disas/m68k.c @@ -1000,7 +1000,7 @@ print_indexed (int basereg, /* Generate the text for the index register. Where this will be output is not yet determined. */ - sprintf (buf, "%s:%c%s", + snprintf(buf, sizeof(buf), "%s:%c%s", reg_names[(word >> 12) & 0xf], (word & 0x800) ? 'l' : 'w', scales[(word >> 9) & 3]);