Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/47675/?format=api
http://patchwork.dpdk.org/api/patches/47675/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/patch/20181101131951.91459-2-ferruh.yigit@intel.com/", "project": { "id": 1, "url": "http://patchwork.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": "<20181101131951.91459-2-ferruh.yigit@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20181101131951.91459-2-ferruh.yigit@intel.com", "date": "2018-11-01T13:19:51", "name": "[2/2] eal: fix build with gcc 9.0", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "4fa4c3d4fc53d8197fe15f84a423cc35074544e6", "submitter": { "id": 324, "url": "http://patchwork.dpdk.org/api/people/324/?format=api", "name": "Ferruh Yigit", "email": "ferruh.yigit@intel.com" }, "delegate": { "id": 1, "url": "http://patchwork.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patchwork.dpdk.org/project/dpdk/patch/20181101131951.91459-2-ferruh.yigit@intel.com/mbox/", "series": [ { "id": 2205, "url": "http://patchwork.dpdk.org/api/series/2205/?format=api", "web_url": "http://patchwork.dpdk.org/project/dpdk/list/?series=2205", "date": "2018-11-01T13:19:50", "name": "[1/2] bus/dpaa: fix build with gcc 9.0", "version": 1, "mbox": "http://patchwork.dpdk.org/series/2205/mbox/" } ], "comments": "http://patchwork.dpdk.org/api/patches/47675/comments/", "check": "success", "checks": "http://patchwork.dpdk.org/api/patches/47675/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 282921B39B;\n\tThu, 1 Nov 2018 13:20:13 +0100 (CET)", "from mga17.intel.com (mga17.intel.com [192.55.52.151])\n\tby dpdk.org (Postfix) with ESMTP id D0DCE1B1F0;\n\tThu, 1 Nov 2018 13:20:10 +0100 (CET)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n\tby fmsmga107.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384;\n\t01 Nov 2018 05:20:10 -0700", "from silpixa00399752.ir.intel.com (HELO\n\tsilpixa00399752.ger.corp.intel.com) ([10.237.222.212])\n\tby fmsmga008.fm.intel.com with ESMTP; 01 Nov 2018 05:20:09 -0700" ], "X-Amp-Result": "SKIPPED(no attachment in message)", "X-Amp-File-Uploaded": "False", "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.54,451,1534834800\"; d=\"scan'208\";a=\"83244708\"", "From": "Ferruh Yigit <ferruh.yigit@intel.com>", "To": "Thomas Monjalon <thomas@monjalon.net>", "Cc": "dev@dpdk.org,\n\tFerruh Yigit <ferruh.yigit@intel.com>,\n\tstable@dpdk.org", "Date": "Thu, 1 Nov 2018 13:19:51 +0000", "Message-Id": "<20181101131951.91459-2-ferruh.yigit@intel.com>", "X-Mailer": "git-send-email 2.17.2", "In-Reply-To": "<20181101131951.91459-1-ferruh.yigit@intel.com>", "References": "<20181101131951.91459-1-ferruh.yigit@intel.com>", "MIME-Version": "1.0", "Content-Type": "text/plain; charset=UTF-8", "Content-Transfer-Encoding": "8bit", "Subject": "[dpdk-dev] [PATCH 2/2] eal: fix build with gcc 9.0", "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://mails.dpdk.org/options/dev>,\n\t<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\t<mailto:dev-request@dpdk.org?subject=subscribe>", "Errors-To": "dev-bounces@dpdk.org", "Sender": "\"dev\" <dev-bounces@dpdk.org>" }, "content": "build error:\nIn function ‘eal_plugin_add’,\n .../lib/librte_eal/common/eal_common_options.c:225:2:\n error: ‘strncpy’ output may be truncated copying 4095 bytes from a\n string of length 4095 [-Werror=stringop-truncation]\n strncpy(solib->name, path, PATH_MAX-1);\n\nstrncpy may result a not null-terminated string,\nreplaced it with rte_strscpy\n\nFixes: fa9cdc6f8410 (\"eal: move plugin loading from linuxapp to common\")\nCc: stable@dpdk.org\n\nSigned-off-by: Ferruh Yigit <ferruh.yigit@intel.com>\n---\n lib/librte_eal/common/eal_common_options.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/lib/librte_eal/common/eal_common_options.c b/lib/librte_eal/common/eal_common_options.c\nindex b82f3ddd1..41e546b24 100644\n--- a/lib/librte_eal/common/eal_common_options.c\n+++ b/lib/librte_eal/common/eal_common_options.c\n@@ -222,7 +222,7 @@ eal_plugin_add(const char *path)\n \t\treturn -1;\n \t}\n \tmemset(solib, 0, sizeof(*solib));\n-\tstrncpy(solib->name, path, PATH_MAX-1);\n+\trte_strscpy(solib->name, path, PATH_MAX-1);\n \tsolib->name[PATH_MAX-1] = 0;\n \tTAILQ_INSERT_TAIL(&solib_list, solib, next);\n \n", "prefixes": [ "2/2" ] }{ "id": 47675, "url": "