get:
Show a patch.

patch:
Update a patch.

put:
Update a patch.

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

{
    "id": 21153,
    "url": "https://patches.dpdk.org/api/patches/21153/?format=api",
    "web_url": "https://patches.dpdk.org/project/dpdk/patch/1488482971-170522-6-git-send-email-allain.legacy@windriver.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": "<1488482971-170522-6-git-send-email-allain.legacy@windriver.com>",
    "list_archive_url": "https://inbox.dpdk.org/dev/1488482971-170522-6-git-send-email-allain.legacy@windriver.com",
    "date": "2017-03-02T19:29:31",
    "name": "[dpdk-dev,5/5] cfgfile: increase local buffer size for max name and value",
    "commit_ref": null,
    "pull_url": null,
    "state": "superseded",
    "archived": true,
    "hash": "75c2e262de2d39747a0c89399f0af697b7202ae3",
    "submitter": {
        "id": 679,
        "url": "https://patches.dpdk.org/api/people/679/?format=api",
        "name": "Allain Legacy",
        "email": "allain.legacy@windriver.com"
    },
    "delegate": null,
    "mbox": "https://patches.dpdk.org/project/dpdk/patch/1488482971-170522-6-git-send-email-allain.legacy@windriver.com/mbox/",
    "series": [],
    "comments": "https://patches.dpdk.org/api/patches/21153/comments/",
    "check": "success",
    "checks": "https://patches.dpdk.org/api/patches/21153/checks/",
    "tags": {},
    "related": [],
    "headers": {
        "Return-Path": "<dev-bounces@dpdk.org>",
        "X-Original-To": "patchwork@dpdk.org",
        "Delivered-To": "patchwork@dpdk.org",
        "Received": [
            "from [92.243.14.124] (localhost [IPv6:::1])\n\tby dpdk.org (Postfix) with ESMTP id 6F755F967;\n\tThu,  2 Mar 2017 20:31:03 +0100 (CET)",
            "from mail5.wrs.com (mail5.windriver.com [192.103.53.11])\n\tby dpdk.org (Postfix) with ESMTP id 5EAD52C60\n\tfor <dev@dpdk.org>; Thu,  2 Mar 2017 20:29:57 +0100 (CET)",
            "from ALA-HCA.corp.ad.wrs.com (ala-hca.corp.ad.wrs.com\n\t[147.11.189.40])\n\tby mail5.wrs.com (8.15.2/8.15.2) with ESMTPS id v22JTuEi007624\n\t(version=TLSv1 cipher=AES128-SHA bits=128 verify=OK);\n\tThu, 2 Mar 2017 11:29:56 -0800",
            "from yow-cgts4-lx.wrs.com (128.224.145.137) by\n\tALA-HCA.corp.ad.wrs.com (147.11.189.50) with Microsoft SMTP Server\n\t(TLS) id 14.3.294.0; Thu, 2 Mar 2017 11:29:53 -0800"
        ],
        "From": "Allain Legacy <allain.legacy@windriver.com>",
        "To": "<bruce.richardson@intel.com>, <cristian.dumitrescu@intel.com>",
        "CC": "<dev@dpdk.org>, <ian.jolliffe@windriver.com>",
        "Date": "Thu, 2 Mar 2017 14:29:31 -0500",
        "Message-ID": "<1488482971-170522-6-git-send-email-allain.legacy@windriver.com>",
        "X-Mailer": "git-send-email 1.8.3.1",
        "In-Reply-To": "<1488482971-170522-1-git-send-email-allain.legacy@windriver.com>",
        "References": "<1488482971-170522-1-git-send-email-allain.legacy@windriver.com>",
        "MIME-Version": "1.0",
        "Content-Type": "text/plain",
        "X-Originating-IP": "[128.224.145.137]",
        "Subject": "[dpdk-dev] [PATCH 5/5] cfgfile: increase local buffer size for max\n\tname and value",
        "X-BeenThere": "dev@dpdk.org",
        "X-Mailman-Version": "2.1.15",
        "Precedence": "list",
        "List-Id": "DPDK patches and discussions <dev.dpdk.org>",
        "List-Unsubscribe": "<http://dpdk.org/ml/options/dev>,\n\t<mailto:dev-request@dpdk.org?subject=unsubscribe>",
        "List-Archive": "<http://dpdk.org/ml/archives/dev/>",
        "List-Post": "<mailto:dev@dpdk.org>",
        "List-Help": "<mailto:dev-request@dpdk.org?subject=help>",
        "List-Subscribe": "<http://dpdk.org/ml/listinfo/dev>,\n\t<mailto:dev-request@dpdk.org?subject=subscribe>",
        "Errors-To": "dev-bounces@dpdk.org",
        "Sender": "\"dev\" <dev-bounces@dpdk.org>"
    },
    "content": "From: Joseph Richard <joseph.richard@windriver.com>\n\nWhen parsing a ini file with a \"key = value\" line that has both \"key\" and\n\"value\" sized to the maximum allowed length causes a parsing failure.  The\ninternal \"buffer\" variable should be sized at least as large as the maximum\nfor both fields.  This commit updates the local array to be sized to hold\nthe max name, max value, \" = \", and the nul terminator.\n\nSigned-off-by: Allain Legacy <allain.legacy@windriver.com>\n---\n lib/librte_cfgfile/rte_cfgfile.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)",
    "diff": "diff --git a/lib/librte_cfgfile/rte_cfgfile.c b/lib/librte_cfgfile/rte_cfgfile.c\nindex 28956ea..107d637 100644\n--- a/lib/librte_cfgfile/rte_cfgfile.c\n+++ b/lib/librte_cfgfile/rte_cfgfile.c\n@@ -92,7 +92,7 @@ struct rte_cfgfile *\n \tint allocated_entries = 0;\n \tint curr_section = -1;\n \tint curr_entry = -1;\n-\tchar buffer[256] = {0};\n+\tchar buffer[CFG_NAME_LEN + CFG_VALUE_LEN + 4] = {0};\n \tint lineno = 0;\n \tsize_t size;\n \tstruct rte_cfgfile *cfg = NULL;\n",
    "prefixes": [
        "dpdk-dev",
        "5/5"
    ]
}