get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

GET /api/patches/133886/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "id": 133886,
    "url": "https://patches.dpdk.org/api/patches/133886/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20231106073125.55280-6-fengchengwen@huawei.com/",
    "project": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/projects/1/?format=api",
        "name": "DPDK",
        "link_name": "dpdk",
        "list_id": "dev.dpdk.org",
        "list_email": "dev@dpdk.org",
        "web_url": "http://core.dpdk.org",
        "scm_url": "git://dpdk.org/dpdk",
        "webscm_url": "http://git.dpdk.org/dpdk",
        "list_archive_url": "https://inbox.dpdk.org/dev",
        "list_archive_url_format": "https://inbox.dpdk.org/dev/{}",
        "commit_url_format": ""
    },
    "msgid": "<20231106073125.55280-6-fengchengwen@huawei.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20231106073125.55280-6-fengchengwen@huawei.com",
    "date": "2023-11-06T07:31:24",
    "name": "[v5,5/5] net/mvneta: fix possible out-of-bounds write",
    "commit_ref": null,
    "pull_url": null,
    "state": "new",
    "archived": false,
    "hash": "d5986cee48dad4ebb4f996e4d446f78be1f6eceb",
    "submitter": {
        "id": 2146,
        "url": "https://patches.dpdk.org/api/people/2146/?format=api",
        "name": "fengchengwen",
        "email": "fengchengwen@huawei.com"
    },
    "delegate": {
        "id": 1,
        "url": "https://patches.dpdk.org/api/users/1/?format=api",
        "username": "tmonjalo",
        "first_name": "Thomas",
        "last_name": "Monjalon",
        "email": "thomas@monjalon.net"
    },
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/20231106073125.55280-6-fengchengwen@huawei.com/mbox/",
    "series": [
        {
            "id": 30165,
            "url": "https://patches.dpdk.org/api/series/30165/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=30165",
            "date": "2023-11-06T07:31:21",
            "name": "fix segment fault when parse args",
            "version": 5,
            "mbox": "https://patches.dpdk.org/series/30165/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/133886/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/133886/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@inbox.dpdk.org",
        "Delivered-To": "patchwork@inbox.dpdk.org",
        "Received": [
            "from mails.dpdk.org (mails.dpdk.org [217.70.189.124])\n\tby inbox.dpdk.org (Postfix) with ESMTP id 5D5DF432B7;\n\tMon,  6 Nov 2023 08:35:12 +0100 (CET)",
            "from mails.dpdk.org (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id C903140691;\n\tMon,  6 Nov 2023 08:34:48 +0100 (CET)",
            "from szxga03-in.huawei.com (szxga03-in.huawei.com [45.249.212.189])\n by mails.dpdk.org (Postfix) with ESMTP id 1EA344027F\n for <dev@dpdk.org>; Mon,  6 Nov 2023 08:34:43 +0100 (CET)",
            "from dggpeml100024.china.huawei.com (unknown [172.30.72.56])\n by szxga03-in.huawei.com (SkyGuard) with ESMTP id 4SP30Q0QRqzMmZm;\n Mon,  6 Nov 2023 15:30:14 +0800 (CST)",
            "from localhost.localdomain (10.50.165.33) by\n dggpeml100024.china.huawei.com (7.185.36.115) with Microsoft SMTP Server\n (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id\n 15.1.2507.31; Mon, 6 Nov 2023 15:34:06 +0800"
        ],
        "From": "Chengwen Feng <fengchengwen@huawei.com>",
        "To": "<thomas@monjalon.net>, <ferruh.yigit@amd.com>, Zyta Szpak\n <zr@semihalf.com>, Liron Himi <lironh@marvell.com>, Ferruh Yigit\n <ferruh.yigit@intel.com>, Yelena Krivosheev <yelena@marvell.com>, Dmitri\n Epshtein <dima@marvell.com>, Andrzej Ostruszka <amo@semihalf.com>",
        "CC": "<dev@dpdk.org>, <stephen@networkplumber.org>",
        "Subject": "[PATCH v5 5/5] net/mvneta: fix possible out-of-bounds write",
        "Date": "Mon, 6 Nov 2023 07:31:24 +0000",
        "Message-ID": "<20231106073125.55280-6-fengchengwen@huawei.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "In-Reply-To": "<20231106073125.55280-1-fengchengwen@huawei.com>",
        "References": "<20230314124813.39521-1-fengchengwen@huawei.com>\n <20231106073125.55280-1-fengchengwen@huawei.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[10.50.165.33]",
        "X-ClientProxiedBy": "dggems706-chm.china.huawei.com (10.3.19.183) To\n dggpeml100024.china.huawei.com (7.185.36.115)",
        "X-CFilter-Loop": "Reflected",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.29",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<https://mails.dpdk.org/options/dev>,\n <mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://mails.dpdk.org/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<https://mails.dpdk.org/listinfo/dev>,\n <mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org"
    },
    "content": "The mvneta_ifnames_get() function will save 'iface' value to ifnames,\nit will out-of-bounds write if passed many iface pairs (e.g.\n'iface=xxx,iface=xxx,...').\n\nFixes: 4ccc8d770d3b (\"net/mvneta: add PMD skeleton\")\nCc: stable@dpdk.org\n\nSigned-off-by: Chengwen Feng <fengchengwen@huawei.com>\nAcked-by: Ferruh Yigit <ferruh.yigit@amd.com>\n---\n drivers/net/mvneta/mvneta_ethdev.c | 3 +++\n 1 file changed, 3 insertions(+)",
    "diff": "diff --git a/drivers/net/mvneta/mvneta_ethdev.c b/drivers/net/mvneta/mvneta_ethdev.c\nindex daa69e533a..8032a712f4 100644\n--- a/drivers/net/mvneta/mvneta_ethdev.c\n+++ b/drivers/net/mvneta/mvneta_ethdev.c\n@@ -91,6 +91,9 @@ mvneta_ifnames_get(const char *key __rte_unused, const char *value,\n {\n \tstruct mvneta_ifnames *ifnames = extra_args;\n \n+\tif (ifnames->idx >= NETA_NUM_ETH_PPIO)\n+\t\treturn -EINVAL;\n+\n \tifnames->names[ifnames->idx++] = value;\n \n \treturn 0;\n",
    "prefixes": [
        "v5",
        "5/5"
    ]
}