Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/35301/?format=api
http://patches.dpdk.org/api/patches/35301/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1519131456-9928-1-git-send-email-radu.nicolau@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": "<1519131456-9928-1-git-send-email-radu.nicolau@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1519131456-9928-1-git-send-email-radu.nicolau@intel.com", "date": "2018-02-20T12:57:36", "name": "[dpdk-dev] app/procinfo: fix strncpy count issue", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "3eb7c5c58f00563aac3d3365f250f22517aa80d0", "submitter": { "id": 743, "url": "http://patches.dpdk.org/api/people/743/?format=api", "name": "Radu Nicolau", "email": "radu.nicolau@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1519131456-9928-1-git-send-email-radu.nicolau@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/35301/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/35301/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 [127.0.0.1])\n\tby dpdk.org (Postfix) with ESMTP id 1A02D727A;\n\tTue, 20 Feb 2018 14:03:03 +0100 (CET)", "from mga12.intel.com (mga12.intel.com [192.55.52.136])\n\tby dpdk.org (Postfix) with ESMTP id 4F9C32C29;\n\tTue, 20 Feb 2018 14:03:00 +0100 (CET)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n\tby fmsmga106.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t20 Feb 2018 05:02:57 -0800", "from silpixa00383879.ir.intel.com (HELO\n\tsilpixa00383879.ger.corp.intel.com) ([10.237.223.127])\n\tby fmsmga008.fm.intel.com with ESMTP; 20 Feb 2018 05:02:56 -0800" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.46,539,1511856000\"; d=\"scan'208\";a=\"19102469\"", "From": "Radu Nicolau <radu.nicolau@intel.com>", "To": "dev@dpdk.org", "Cc": "john.mcnamara@intel.com, maryam.tahhan@intel.com, reshma.pattan@intel.com,\n\tRadu Nicolau <radu.nicolau@intel.com>, stable@dpdk.org", "Date": "Tue, 20 Feb 2018 12:57:36 +0000", "Message-Id": "<1519131456-9928-1-git-send-email-radu.nicolau@intel.com>", "X-Mailer": "git-send-email 2.7.5", "Subject": "[dpdk-dev] [PATCH] app/procinfo: fix strncpy count issue", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "DPDK patches and discussions <dev.dpdk.org>", "List-Unsubscribe": "<https://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": "<https://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": "Change strncpy count parameter to MAX_LONG_OPT_SZ-1 to avoid\noverwriting the last NULL character and for consistency.\n\nFixes: 2deb6b5246d7 (\"app/procinfo: add collectd format and host id\")\nCoverity issue: 30688\n\nCc: stable@dpdk.org\n\nSigned-off-by: Radu Nicolau <radu.nicolau@intel.com>\n---\n app/proc_info/main.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/app/proc_info/main.c b/app/proc_info/main.c\nindex 2f53e3c..5f0b745 100644\n--- a/app/proc_info/main.c\n+++ b/app/proc_info/main.c\n@@ -159,7 +159,7 @@ proc_info_preparse_args(int argc, char **argv)\n \t\t\t\tproc_info_usage(prgname);\n \t\t\t\treturn -1;\n \t\t\t}\n-\t\t\tstrncpy(host_id, argv[i+1], sizeof(host_id));\n+\t\t\tstrncpy(host_id, argv[i+1], MAX_LONG_OPT_SZ-1);\n \t\t}\n \t}\n \n", "prefixes": [ "dpdk-dev" ] }{ "id": 35301, "url": "