Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/12241/?format=api
http://patches.dpdk.org/api/patches/12241/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/1461656687-5396-1-git-send-email-slawomirx.mrozowicz@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": "<1461656687-5396-1-git-send-email-slawomirx.mrozowicz@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/1461656687-5396-1-git-send-email-slawomirx.mrozowicz@intel.com", "date": "2016-04-26T07:44:47", "name": "[dpdk-dev] eal: out-of-bounds write", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "34935000c4c857948f90fb1736c5f75c59b72847", "submitter": { "id": 457, "url": "http://patches.dpdk.org/api/people/457/?format=api", "name": "Slawomir Mrozowicz", "email": "slawomirx.mrozowicz@intel.com" }, "delegate": { "id": 1, "url": "http://patches.dpdk.org/api/users/1/?format=api", "username": "tmonjalo", "first_name": "Thomas", "last_name": "Monjalon", "email": "thomas@monjalon.net" }, "mbox": "http://patches.dpdk.org/project/dpdk/patch/1461656687-5396-1-git-send-email-slawomirx.mrozowicz@intel.com/mbox/", "series": [], "comments": "http://patches.dpdk.org/api/patches/12241/comments/", "check": "pending", "checks": "http://patches.dpdk.org/api/patches/12241/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 4B7C33208;\n\tTue, 26 Apr 2016 09:43:29 +0200 (CEST)", "from mga11.intel.com (mga11.intel.com [192.55.52.93])\n\tby dpdk.org (Postfix) with ESMTP id 2B6432A1A\n\tfor <dev@dpdk.org>; Tue, 26 Apr 2016 09:43:27 +0200 (CEST)", "from fmsmga001.fm.intel.com ([10.253.24.23])\n\tby fmsmga102.fm.intel.com with ESMTP; 26 Apr 2016 00:43:26 -0700", "from gklab-246-018.igk.intel.com (HELO stargo) ([10.217.246.18])\n\tby fmsmga001.fm.intel.com with SMTP; 26 Apr 2016 00:43:23 -0700", "by stargo (sSMTP sendmail emulation);\n\tTue, 26 Apr 2016 09:44:49 +0200" ], "X-ExtLoop1": "1", "X-IronPort-AV": "E=Sophos;i=\"5.24,536,1455004800\"; d=\"scan'208\";a=\"953012096\"", "From": "Slawomir Mrozowicz <slawomirx.mrozowicz@intel.com>", "To": "david.marchand@6wind.com", "Cc": "dev@dpdk.org,\n\tSlawomir Mrozowicz <slawomirx.mrozowicz@intel.com>", "Date": "Tue, 26 Apr 2016 09:44:47 +0200", "Message-Id": "<1461656687-5396-1-git-send-email-slawomirx.mrozowicz@intel.com>", "X-Mailer": "git-send-email 1.9.1", "Subject": "[dpdk-dev] [PATCH] eal: out-of-bounds write", "X-BeenThere": "dev@dpdk.org", "X-Mailman-Version": "2.1.15", "Precedence": "list", "List-Id": "patches and discussions about DPDK <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": "Fix issue reported by Coverity.\n\nCoverity ID 13282: Out-of-bounds write\noverrun-local: Overrunning array mcfg->memseg of 256 44-byte elements\nat element index 257 using index j.\n\nFixes: af75078fece3 (\"first public release\")\n\nSigned-off-by: Slawomir Mrozowicz <slawomirx.mrozowicz@intel.com>\n---\n lib/librte_eal/linuxapp/eal/eal_memory.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/lib/librte_eal/linuxapp/eal/eal_memory.c b/lib/librte_eal/linuxapp/eal/eal_memory.c\nindex 5b9132c..1e737e4 100644\n--- a/lib/librte_eal/linuxapp/eal/eal_memory.c\n+++ b/lib/librte_eal/linuxapp/eal/eal_memory.c\n@@ -1333,7 +1333,7 @@ rte_eal_hugepage_init(void)\n \n \t\tif (new_memseg) {\n \t\t\tj += 1;\n-\t\t\tif (j == RTE_MAX_MEMSEG)\n+\t\t\tif (j >= RTE_MAX_MEMSEG)\n \t\t\t\tbreak;\n \n \t\t\tmcfg->memseg[j].phys_addr = hugepage[i].physaddr;\n", "prefixes": [ "dpdk-dev" ] }{ "id": 12241, "url": "