get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 87500,
    "url": "https://patches.dpdk.org/api/patches/87500/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/20210128191239.4354-1-cristian.dumitrescu@intel.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": "<20210128191239.4354-1-cristian.dumitrescu@intel.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/20210128191239.4354-1-cristian.dumitrescu@intel.com",
    "date": "2021-01-28T19:12:39",
    "name": "examples/pipeline: fix CLI segfault",
    "commit_ref": null,
    "pull_url": null,
    "state": "accepted",
    "archived": true,
    "hash": "7f980d60c6efdf28f16f63e7f42da7a491f5ca6c",
    "submitter": {
        "id": 19,
        "url": "https://patches.dpdk.org/api/people/19/?format=api",
        "name": "Cristian Dumitrescu",
        "email": "cristian.dumitrescu@intel.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/20210128191239.4354-1-cristian.dumitrescu@intel.com/mbox/",
    "series": [
        {
            "id": 15020,
            "url": "https://patches.dpdk.org/api/series/15020/?format=api",
            "web_url": "https://patches.dpdk.org/project/dpdk/list/?series=15020",
            "date": "2021-01-28T19:12:39",
            "name": "examples/pipeline: fix CLI segfault",
            "version": 1,
            "mbox": "https://patches.dpdk.org/series/15020/mbox/"
        }
    ],
    "comments": "https://patches.dpdk.org/api/patches/87500/comments/",
    "check": "fail",
    "checks": "https://patches.dpdk.org/api/patches/87500/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 B064CA09E4;\n\tThu, 28 Jan 2021 20:12:44 +0100 (CET)",
            "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 2832540682;\n\tThu, 28 Jan 2021 20:12:44 +0100 (CET)",
            "from mga04.intel.com (mga04.intel.com [192.55.52.120])\n by mails.dpdk.org (Postfix) with ESMTP id 4613F4067A;\n Thu, 28 Jan 2021 20:12:42 +0100 (CET)",
            "from fmsmga008.fm.intel.com ([10.253.24.58])\n by fmsmga104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 28 Jan 2021 11:12:41 -0800",
            "from silpixa00400573.ir.intel.com (HELO\n silpixa00400573.ger.corp.intel.com) ([10.237.223.107])\n by fmsmga008.fm.intel.com with ESMTP; 28 Jan 2021 11:12:40 -0800"
        ],
        "IronPort-SDR": [
            "\n HmmeIuhulxujKs5W7DxCVlLR35B08tLKssn/LcSQWR4SgWXxc8vq5YwY4FwhlY6Z8AqHO/vRyH\n LpO2jQ+pi9+Q==",
            "\n gnDlIZ/B3MJbHYKptf8hdvuTw80uwQeclUDxeIF+xT5CXi7HeW9VEg7OHKQyzvZGUXGg9gbhyo\n 7bxMvuP5PtwQ=="
        ],
        "X-IronPort-AV": [
            "E=McAfee;i=\"6000,8403,9878\"; a=\"177733340\"",
            "E=Sophos;i=\"5.79,383,1602572400\"; d=\"scan'208\";a=\"177733340\"",
            "E=Sophos;i=\"5.79,383,1602572400\"; d=\"scan'208\";a=\"363967325\""
        ],
        "X-ExtLoop1": "1",
        "From": "Cristian Dumitrescu <cristian.dumitrescu@intel.com>",
        "To": "dev@dpdk.org",
        "Cc": "stable@dpdk.org",
        "Date": "Thu, 28 Jan 2021 19:12:39 +0000",
        "Message-Id": "<20210128191239.4354-1-cristian.dumitrescu@intel.com>",
        "X-Mailer": "git-send-email 2.17.1",
        "Subject": "[dpdk-dev] [PATCH] examples/pipeline: fix CLI segfault",
        "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": "Cannot dereference pointer for token[1] unless valid.\n\nFixes: 5074e1d551 (\"examples/pipeline: add configuration commands\")\nCc: stable@dpdk.org\n\nSigned-off-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>\n---\n examples/pipeline/cli.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/examples/pipeline/cli.c b/examples/pipeline/cli.c\nindex 3f490854c..cacfb2823 100644\n--- a/examples/pipeline/cli.c\n+++ b/examples/pipeline/cli.c\n@@ -1420,7 +1420,7 @@ cli_process(char *in, char *out, size_t out_size, void *obj)\n \t}\n \n \tif (strcmp(tokens[0], \"link\") == 0) {\n-\t\tif (strcmp(tokens[1], \"show\") == 0) {\n+\t\tif ((n_tokens >= 2) && (strcmp(tokens[1], \"show\") == 0)) {\n \t\t\tcmd_link_show(tokens, n_tokens, out, out_size, obj);\n \t\t\treturn;\n \t\t}\n",
    "prefixes": []
}