Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2217885/?format=api
{ "id": 2217885, "url": "http://patchwork.ozlabs.org/api/patches/2217885/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/patch/541ffffdaa4c67b9dcbca6c2498e69b137bce95d.1774904832.git.balaton@eik.bme.hu/", "project": { "id": 14, "url": "http://patchwork.ozlabs.org/api/projects/14/?format=api", "name": "QEMU Development", "link_name": "qemu-devel", "list_id": "qemu-devel.nongnu.org", "list_email": "qemu-devel@nongnu.org", "web_url": "", "scm_url": "", "webscm_url": "", "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<541ffffdaa4c67b9dcbca6c2498e69b137bce95d.1774904832.git.balaton@eik.bme.hu>", "list_archive_url": null, "date": "2026-03-30T21:09:17", "name": "[2/2] ati-vga: Add upper limit to x-linear-aper-size property", "commit_ref": null, "pull_url": null, "state": "new", "archived": false, "hash": "203db0445e11d592d491d3fe7597d22cfeb9cac1", "submitter": { "id": 16148, "url": "http://patchwork.ozlabs.org/api/people/16148/?format=api", "name": "BALATON Zoltan", "email": "balaton@eik.bme.hu" }, "delegate": null, "mbox": "http://patchwork.ozlabs.org/project/qemu-devel/patch/541ffffdaa4c67b9dcbca6c2498e69b137bce95d.1774904832.git.balaton@eik.bme.hu/mbox/", "series": [ { "id": 498094, "url": "http://patchwork.ozlabs.org/api/series/498094/?format=api", "web_url": "http://patchwork.ozlabs.org/project/qemu-devel/list/?series=498094", "date": "2026-03-30T21:09:17", "name": "ati-vga Coverity fixes", "version": 1, "mbox": "http://patchwork.ozlabs.org/series/498094/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2217885/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2217885/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=nongnu.org\n (client-ip=209.51.188.17; helo=lists.gnu.org;\n envelope-from=qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org;\n receiver=patchwork.ozlabs.org)", "Received": [ "from lists.gnu.org (lists.gnu.org [209.51.188.17])\n\t(using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4fl3mR3R0rz1xtJ\n\tfor <incoming@patchwork.ozlabs.org>; Tue, 31 Mar 2026 08:09:59 +1100 (AEDT)", "from localhost ([::1] helo=lists1p.gnu.org)\n\tby lists.gnu.org with esmtp (Exim 4.90_1)\n\t(envelope-from <qemu-devel-bounces@nongnu.org>)\n\tid 1w7JrR-0006jg-6k; Mon, 30 Mar 2026 17:09:25 -0400", "from eggs.gnu.org ([2001:470:142:3::10])\n by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <balaton@eik.bme.hu>)\n id 1w7JrP-0006iy-Py\n for qemu-devel@nongnu.org; Mon, 30 Mar 2026 17:09:23 -0400", "from zero.eik.bme.hu ([152.66.115.2])\n by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256)\n (Exim 4.90_1) (envelope-from <balaton@eik.bme.hu>)\n id 1w7JrM-0001XM-RW\n for qemu-devel@nongnu.org; Mon, 30 Mar 2026 17:09:23 -0400", "from localhost (localhost [127.0.0.1])\n by zero.eik.bme.hu (Postfix) with ESMTP id A09D2596A2C;\n Mon, 30 Mar 2026 23:09:19 +0200 (CEST)", "from zero.eik.bme.hu ([127.0.0.1])\n by localhost (zero.eik.bme.hu [127.0.0.1]) (amavis, port 10028) with ESMTP\n id OkTHR36y2fOX; Mon, 30 Mar 2026 23:09:17 +0200 (CEST)", "by zero.eik.bme.hu (Postfix, from userid 432)\n id 9F7BF5969F9; Mon, 30 Mar 2026 23:09:17 +0200 (CEST)" ], "X-Virus-Scanned": "amavis at eik.bme.hu", "Message-ID": "\n <541ffffdaa4c67b9dcbca6c2498e69b137bce95d.1774904832.git.balaton@eik.bme.hu>", "In-Reply-To": "<cover.1774904832.git.balaton@eik.bme.hu>", "References": "<cover.1774904832.git.balaton@eik.bme.hu>", "From": "BALATON Zoltan <balaton@eik.bme.hu>", "Subject": "[PATCH 2/2] ati-vga: Add upper limit to x-linear-aper-size property", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "To": "qemu-devel@nongnu.org", "Cc": "Gerd Hoffmann <kraxel@redhat.com>, marcandre.lureau@redhat.com,\n Chad Jablonski <chad@jablonski.xyz>,\n =?utf-8?q?Philippe_Mathieu-Daud=C3=A9?= <philmd@linaro.org>,\n Peter Maydell <peter.maydell@linaro.org>", "Date": "Mon, 30 Mar 2026 23:09:17 +0200 (CEST)", "Received-SPF": "pass client-ip=152.66.115.2; envelope-from=balaton@eik.bme.hu;\n helo=zero.eik.bme.hu", "X-Spam_score_int": "1", "X-Spam_score": "0.1", "X-Spam_bar": "/", "X-Spam_report": "(0.1 / 5.0 requ) BAYES_00=-1.9,\n RCVD_IN_VALIDITY_CERTIFIED_BLOCKED=1, RCVD_IN_VALIDITY_RPBL_BLOCKED=1,\n SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no 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 development <qemu-devel.nongnu.org>", "List-Unsubscribe": "<https://lists.nongnu.org/mailman/options/qemu-devel>,\n <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>,\n <mailto:qemu-devel-request@nongnu.org?subject=subscribe>", "Errors-To": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org", "Sender": "qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org" }, "content": "Coverity warns in CID 1645968 about possible integer overflow. This\nshould never happen but to ensure that, add an upper limit on the\nx-linear-aper-size. This may not silence the warning but makes sure\nusers cannot cause an overflow.\n\nSigned-off-by: BALATON Zoltan <balaton@eik.bme.hu>\n---\n hw/display/ati.c | 4 ++++\n 1 file changed, 4 insertions(+)", "diff": "diff --git a/hw/display/ati.c b/hw/display/ati.c\nindex fc19737d1f..97d871b1e2 100644\n--- a/hw/display/ati.c\n+++ b/hw/display/ati.c\n@@ -1130,6 +1130,10 @@ static void ati_vga_realize(PCIDevice *dev, Error **errp)\n s->linear_aper_sz = ATI_R100_LINEAR_APER_SIZE;\n }\n }\n+ if (s->linear_aper_sz > 256 * MiB) {\n+ error_setg(errp, \"x-linear-aper-size is too large (maximum 256 MiB)\");\n+ return;\n+ }\n if (s->linear_aper_sz < 16 * MiB) {\n error_setg(errp, \"x-linear-aper-size is too small (minimum 16 MiB)\");\n return;\n", "prefixes": [ "2/2" ] }