Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/112891/?format=api
http://patches.dpdk.org/api/patches/112891/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/patch/20220616102613.131685-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": "<20220616102613.131685-1-wenxuanx.wu@intel.com>", "list_archive_url": "https://inbox.dpdk.org/dev/20220616102613.131685-1-wenxuanx.wu@intel.com", "date": "2022-06-16T10:26:13", "name": "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/20220616102613.131685-1-wenxuanx.wu@intel.com/mbox/", "series": [ { "id": 23573, "url": "http://patches.dpdk.org/api/series/23573/?format=api", "web_url": "http://patches.dpdk.org/project/dpdk/list/?series=23573", "date": "2022-06-16T10:26:13", "name": "app: fix gcc 12 array bounds warning", "version": 1, "mbox": "http://patches.dpdk.org/series/23573/mbox/" } ], "comments": "http://patches.dpdk.org/api/patches/112891/comments/", "check": "warning", "checks": "http://patches.dpdk.org/api/patches/112891/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 B5B4BA00BE;\n\tThu, 16 Jun 2022 12:27:50 +0200 (CEST)", "from [217.70.189.124] (localhost [127.0.0.1])\n\tby mails.dpdk.org (Postfix) with ESMTP id 6F25A410E8;\n\tThu, 16 Jun 2022 12:27:50 +0200 (CEST)", "from mga06.intel.com (mga06b.intel.com [134.134.136.31])\n by mails.dpdk.org (Postfix) with ESMTP id 672104003C;\n Thu, 16 Jun 2022 12:27:48 +0200 (CEST)", "from fmsmga008.fm.intel.com ([10.253.24.58])\n by orsmga104.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Jun 2022 03:26:33 -0700", "from unknown (HELO localhost.localdomain) ([10.239.252.3])\n by fmsmga008-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384;\n 16 Jun 2022 03:26:31 -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=1655375268; x=1686911268;\n h=from:to:cc:subject:date:message-id:mime-version:\n content-transfer-encoding;\n bh=79vATVrRGupGxmJD5G6wWknhydVLjz6LG4kQJes68rA=;\n b=jbkwSDhFeXlUwIxCOzM5dSAmi/XhnGAUAEp6uQH/VzkD87HZk8PAo+nY\n kxB+Qcx4B4tPMUcUeXqY2DA4mVmtnU/EFaRK3G2HE+yBRclKM7Ov6WHHS\n rvlvnj8IYego+foeHwSNdIVkDUEyFCKJhIbOZyQ5QvzKhTAnVhqJej1ee\n PD4GeascaSx96iikSpskrsOmDu6gXdrBhqZLk/TRuUyD2/7y7/KAlHnfM\n CYKl/9PwHYI1jWa4verhBsefGmzvPowo2j3XM/4PKOJD4dNRyT7CUDkgi\n d0MK/Fa65a1JX/tqWGI2VvDo4yOBXTP5oiEjrfQTdarX6ybHcpXG5FZpU A==;", "X-IronPort-AV": [ "E=McAfee;i=\"6400,9594,10379\"; a=\"340872955\"", "E=Sophos;i=\"5.91,304,1647327600\"; d=\"scan'208\";a=\"340872955\"", "E=Sophos;i=\"5.91,304,1647327600\"; d=\"scan'208\";a=\"641479682\"" ], "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] app: fix gcc 12 array bounds warning", "Date": "Thu, 16 Jun 2022 18:26:13 +0800", "Message-Id": "<20220616102613.131685-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": [] }{ "id": 112891, "url": "