Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/112890/?format=api
http://patches.dpdk.org/api/patches/112890/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220616102209.130871-1-wenxuanx.wu@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": "<20220616102209.130871-1-wenxuanx.wu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220616102209.130871-1-wenxuanx.wu@intel.com", "date": "2022-06-16T10:22:09", "name": "[1/2] app: fix gcc 12 array bounds warning", "commit_ref": null, "pull_url": null, "state": "superseded", "archived": true, "hash": "9d531d9058b45213e4f3c20b2269780ba84d681f", "submitter": { "id": 2515, "url": "http://patches.dpdk.org/api/people/2515/?format=api", "name": "Wu, WenxuanX", "email": "wenxuanx.wu@intel.com" }, "delegate": null, "mbox": "http://patches.dpdk.org/project/dpdk/patch/20220616102209.130871-1-wenxuanx.wu@intel.com/mbox/", "series": [ { "id": 23572, "url": "http://patches.dpdk.org/api/series/23572/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=23572", "date": "2022-06-16T10:22:09", "name": "[1/2] app: fix gcc 12 array bounds warning", "version": 1, "mbox": "http://patches.dpdk.org/series/23572/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/112890/comments/", "check": "success", "checks": "http://patches.dpdk.org/api/patches/112890/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 F2030A00BE;\n\tThu, 16 Jun 2022 12:22:35 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id D98A74281E;\n\tThu, 16 Jun 2022 12:22:35 +0200 (CEST)", "from mga06.intel.com (mga06b.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 7D6D8410E8;\n Thu, 16 Jun 2022 12:22:33 +0200 (CEST)", "from fmsmga007.fm.intel.com ([10.253.24.52])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Jun 2022 03:22:32 -0700", "from unknown (HELO localhost.localdomain) ([10.239.252.3])\n by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Jun 2022 03:22:30 -0700" ], "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/simple;\n d=intel.com; i=@intel.com; q=dns/txt; s=Intel;\n t=1655374953; x=1686910953;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=sPud+mCPVP2n/ALhBxpMm5hh3m2USieI2fwGNJ75VnY=;\n b=Iiac9m0/fodVQ7S6DlB408iI4N4pi2+kiYavj908f1WumwSfG0RklGLS\n WS1V48R+9vuPhbMuuF22eDka7txxzL1JheWK5T3xcciT/gE+GkLwL/ycF\n XRwrb/Kpp5Q2QS/MsmwkP34q9XxFg8MypeNt6wFYKwgxo+JOxE3YM9tAl\n 3Xi8IHQOp0TgEJkCwmjWEZYCb2imjxTaK9Hq3Z/xU6HuiwlD32Q2zB3mG\n 6niyu2gm/U8+7AS5KUljdrOHq551Nt7tGrzaZ4DheLmwspHVYicZ4f/Xe\n 7C2qEWNE5YlTVzoMan+juZ9jHdfcGC3k3GqRPuGP9sDvbSS1wp9j2bOiN w==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10379\"; a=\"340872077\"", "E=Sophos;i=\"5.91,304,1647327600\"; d=\"scan'208\";a=\"340872077\"", "E=Sophos;i=\"5.91,304,1647327600\"; d=\"scan'208\";a=\"589583671\"" ], "From": "wenxuanx.wu@intel.com", "To": "wisamm@nvidia.com,\n\tdev@dpdk.org", "Cc": "Wenxuan Wu <wenxuanx.wu@intel.com>,\n\tstable@dpdk.org", "Subject": "[PATCH 1/2] app: fix gcc 12 array bounds warning", "Date": "Thu, 16 Jun 2022 18:22:09 +0800", "Message-Id": "<20220616102209.130871-1-wenxuanx.wu@intel.com>", "X-Mailer": "git-send-email 2.25.1", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "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" }, "content": "From: Wenxuan Wu <wenxuanx.wu@intel.com>\n\nwhen n == 1000, and it would be overflow the array size of 4 bytes with\nnul terminator. Change the logic to avoid this warning.\n\nFixes: 15c431864000 (\"app/flow-perf: add packet forwarding support\")\nCc: stable@dpdk.org\nSigned-off-by: Wenxuan Wu <wenxuanx.wu@intel.com>\n---\n app/test-flow-perf/main.c | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/app/test-flow-perf/main.c b/app/test-flow-perf/main.c\nindex 56d43734e3..661d562158 100644\n--- a/app/test-flow-perf/main.c\n+++ b/app/test-flow-perf/main.c\n@@ -1728,7 +1728,7 @@ pretty_number(uint64_t n, char *buf)\n \tint i = 0;\n \tint off = 0;\n \n-\twhile (n > 1000) {\n+\twhile (n >= 1000) {\n \t\tsprintf(p[i], \"%03d\", (int)(n % 1000));\n \t\tn /= 1000;\n \t\ti += 1;\n", "prefixes": [ "1/2" ] }{ "id": 112890, "url": "