get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 100844,
    "url": "http://patches.dpdk.org/api/patches/100844/?format=api",
    "web_url": "http://patches.dpdk.org/project/dpdk/patch/1633728526-197782-1-git-send-email-vladimir.medvedkin@intel.com/",
    "project": {
        "id": 1,
        "url": "http://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": "<1633728526-197782-1-git-send-email-vladimir.medvedkin@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1633728526-197782-1-git-send-email-vladimir.medvedkin@intel.com",
    "date": "2021-10-08T21:28:46",
    "name": "test/hash: fix buffer overflow",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "db98f058686ee0ef0b4abfd7605629a587a77203",
    "submitter": {
        "id": 1216,
        "url": "http://patches.dpdk.org/api/people/1216/?format=api",
        "name": "Vladimir Medvedkin",
        "email": "vladimir.medvedkin@intel.com"
    },
    "delegate": {
        "id": 24651,
        "url": "http://patches.dpdk.org/api/users/24651/?format=api",
        "username": "dmarchand",
        "first_name": "David",
        "last_name": "Marchand",
        "email": "david.marchand@redhat.com"
    },
    "mbox": "http://patches.dpdk.org/project/dpdk/patch/1633728526-197782-1-git-send-email-vladimir.medvedkin@intel.com/mbox/",
    "series": [
        {
            "id": 19469,
            "url": "http://patches.dpdk.org/api/series/19469/?format=api",
            "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=19469",
            "date": "2021-10-08T21:28:46",
            "name": "test/hash: fix buffer overflow",
            "version": 1,
            "mbox": "http://patches.dpdk.org/series/19469/mbox/"
        }
    ],
    "comments": "http://patches.dpdk.org/api/patches/100844/comments/",
    "check": "success",
    "checks": "http://patches.dpdk.org/api/patches/100844/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 B193DA0C43;\n\tFri,  8 Oct 2021 23:28:54 +0200 (CEST)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 35B7E40DF6;\n\tFri,  8 Oct 2021 23:28:54 +0200 (CEST)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id 39E13407FF;\n Fri,  8 Oct 2021 23:28:52 +0200 (CEST)",
            "from fmsmga002.fm.intel.com ([10.253.24.26])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 08 Oct 2021 14:28:51 -0700",
            "from silpixa00400072.ir.intel.com ([10.237.222.213])\n by fmsmga002.fm.intel.com with ESMTP; 08 Oct 2021 14:28:49 -0700"
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6200,9189,10131\"; a=\"225366540\"",
            "E=Sophos;i=\"5.85,358,1624345200\"; d=\"scan'208\";a=\"225366540\"",
            "E=Sophos;i=\"5.85,358,1624345200\"; d=\"scan'208\";a=\"569157826\""
        ],
        "X-ExtLoop1": "1",
        "From": "Vladimir Medvedkin <vladimir.medvedkin@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "yipeng1.wang@intel.com, sameh.gobriel@intel.com,\n bruce.richardson@intel.com, david.marchand@redhat.com, stable@dpdk.org",
        "Date": "Fri,  8 Oct 2021 22:28:46 +0100",
        "Message-Id": "<1633728526-197782-1-git-send-email-vladimir.medvedkin@intel.com>",
        "X-Mailer": "git-send-email 2.7.4",
        "Subject": "[dpdk-dev] [PATCH] test/hash: fix buffer overflow",
        "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",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "This patch fixes buffer overflow reported by ASAN,\nplease reference https://bugs.dpdk.org/show_bug.cgi?id=818\n\nSome tests for the rte_hash table use the rte_jhash_32b() as\nthe hash function. This hash function interprets the length\nargument in units of 4 bytes.\n\nThis patch divides configured key length by 4 in cases when\nrte_jhash_32b() is used.\n\nBugzilla ID: 818\nFixes: af75078fece3 (\"first public release\")\nCc: stable@dpdk.org\n\nSigned-off-by: Vladimir Medvedkin <vladimir.medvedkin@intel.com>\n---\n app/test/test_hash.c | 6 ++++--\n 1 file changed, 4 insertions(+), 2 deletions(-)",
    "diff": "diff --git a/app/test/test_hash.c b/app/test/test_hash.c\nindex bd4d0cb..650d977 100644\n--- a/app/test/test_hash.c\n+++ b/app/test/test_hash.c\n@@ -1617,7 +1617,8 @@ test_hash_add_delete_jhash2(void)\n \tint32_t pos1, pos2;\n \n \thash_params_ex.name = \"hash_test_jhash2\";\n-\thash_params_ex.key_len = 4;\n+\t/* Set the key_len divided by 4 due to using rte_jhash_32b() */\n+\thash_params_ex.key_len = 4 / sizeof(uint32_t);\n \thash_params_ex.hash_func = (rte_hash_function)rte_jhash_32b;\n \n \thandle = rte_hash_create(&hash_params_ex);\n@@ -1656,7 +1657,8 @@ test_hash_add_delete_2_jhash2(void)\n \tint32_t pos1, pos2;\n \n \thash_params_ex.name = \"hash_test_2_jhash2\";\n-\thash_params_ex.key_len = 8;\n+\t/* Set the key_len divided by 4 due to using rte_jhash_32b() */\n+\thash_params_ex.key_len = 8 / sizeof(uint32_t);\n \thash_params_ex.hash_func = (rte_hash_function)rte_jhash_32b;\n \n \thandle = rte_hash_create(&hash_params_ex);\n",
    "prefixes": []
}