Patch Detail
get:
Show a patch.
patch:
Update a patch.
put:
Update a patch.
GET /api/patches/2041448/?format=api
{ "id": 2041448, "url": "http://patchwork.ozlabs.org/api/patches/2041448/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/patch/20250203091203.47590-5-heinrich.schuchardt@canonical.com/", "project": { "id": 18, "url": "http://patchwork.ozlabs.org/api/projects/18/?format=api", "name": "U-Boot", "link_name": "uboot", "list_id": "u-boot.lists.denx.de", "list_email": "u-boot@lists.denx.de", "web_url": null, "scm_url": null, "webscm_url": null, "list_archive_url": "", "list_archive_url_format": "", "commit_url_format": "" }, "msgid": "<20250203091203.47590-5-heinrich.schuchardt@canonical.com>", "list_archive_url": null, "date": "2025-02-03T09:12:02", "name": "[v3,4/4] net: use strnstr() for lwip_strnstr()", "commit_ref": "331d75544fc843f93275eb3767753e4a0a712a39", "pull_url": null, "state": "accepted", "archived": false, "hash": "d00cb5da9ce949ed0e7557218f0c335b53693d02", "submitter": { "id": 82181, "url": "http://patchwork.ozlabs.org/api/people/82181/?format=api", "name": "Heinrich Schuchardt", "email": "heinrich.schuchardt@canonical.com" }, "delegate": { "id": 157425, "url": "http://patchwork.ozlabs.org/api/users/157425/?format=api", "username": "jforissier", "first_name": "Jerome", "last_name": "Forissier", "email": "jerome.forissier@linaro.org" }, "mbox": "http://patchwork.ozlabs.org/project/uboot/patch/20250203091203.47590-5-heinrich.schuchardt@canonical.com/mbox/", "series": [ { "id": 442578, "url": "http://patchwork.ozlabs.org/api/series/442578/?format=api", "web_url": "http://patchwork.ozlabs.org/project/uboot/list/?series=442578", "date": "2025-02-03T09:11:58", "name": "net: use strnstr() for lwip_strnstr()", "version": 3, "mbox": "http://patchwork.ozlabs.org/series/442578/mbox/" } ], "comments": "http://patchwork.ozlabs.org/api/patches/2041448/comments/", "check": "pending", "checks": "http://patchwork.ozlabs.org/api/patches/2041448/checks/", "tags": {}, "related": [], "headers": { "Return-Path": "<u-boot-bounces@lists.denx.de>", "X-Original-To": "incoming@patchwork.ozlabs.org", "Delivered-To": "patchwork-incoming@legolas.ozlabs.org", "Authentication-Results": [ "legolas.ozlabs.org;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.a=rsa-sha256 header.s=20210705 header.b=ruEcw9Tt;\n\tdkim-atps=neutral", "legolas.ozlabs.org;\n spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de\n (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de;\n envelope-from=u-boot-bounces@lists.denx.de; receiver=patchwork.ozlabs.org)", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=canonical.com", "phobos.denx.de;\n spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de", "phobos.denx.de;\n\tdkim=pass (2048-bit key;\n unprotected) header.d=canonical.com header.i=@canonical.com\n header.b=\"ruEcw9Tt\";\n\tdkim-atps=neutral", "phobos.denx.de;\n dmarc=pass (p=none dis=none) header.from=canonical.com", "phobos.denx.de; spf=pass\n smtp.mailfrom=heinrich.schuchardt@canonical.com" ], "Received": [ "from phobos.denx.de (phobos.denx.de\n [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01])\n\t(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n\t key-exchange X25519 server-signature ECDSA (secp384r1))\n\t(No client certificate requested)\n\tby legolas.ozlabs.org (Postfix) with ESMTPS id 4Ymgkg6cndz20J0\n\tfor <incoming@patchwork.ozlabs.org>; Mon, 3 Feb 2025 20:12:43 +1100 (AEDT)", "from h2850616.stratoserver.net (localhost [IPv6:::1])\n\tby phobos.denx.de (Postfix) with ESMTP id 114218076E;\n\tMon, 3 Feb 2025 10:12:18 +0100 (CET)", "by phobos.denx.de (Postfix, from userid 109)\n id 11F3F807E1; Mon, 3 Feb 2025 10:12:15 +0100 (CET)", "from smtp-relay-canonical-1.canonical.com\n (smtp-relay-canonical-1.canonical.com [185.125.188.121])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))\n (No client certificate requested)\n by phobos.denx.de (Postfix) with ESMTPS id 1604A8076E\n for <u-boot@lists.denx.de>; Mon, 3 Feb 2025 10:12:13 +0100 (CET)", "from LT2ubnt.. (dynamic-046-114-108-254.46.114.pool.telefonica.de\n [46.114.108.254])\n (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)\n key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest\n SHA256)\n (No client certificate requested)\n by smtp-relay-canonical-1.canonical.com (Postfix) with ESMTPSA id B219641EBA;\n Mon, 3 Feb 2025 09:12:10 +0000 (UTC)" ], "X-Spam-Checker-Version": "SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de", "X-Spam-Level": "", "X-Spam-Status": "No, score=-2.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH,\n DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,\n RCVD_IN_DNSWL_BLOCKED,RCVD_IN_VALIDITY_RPBL_BLOCKED,\n RCVD_IN_VALIDITY_SAFE_BLOCKED,SPF_HELO_NONE,SPF_PASS autolearn=ham\n autolearn_force=no version=3.4.2", "DKIM-Signature": "v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com;\n s=20210705; t=1738573931;\n bh=LtSevCMQNVU3u7ViI2HW5xUWx73FCLC0SwnxRZmuk7Y=;\n h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References:\n MIME-Version;\n b=ruEcw9TtK4UUenEkVbz3fJEK/Q+CUP18Sn5i1OvLLtmc1z2F7tBR+OKsy3bgZC0jP\n HwdiMsYYFahVhaNJcHFFnpj+muGigAqzCegQ0l6z2bcv3OhTmzqpowRL+qt+cOH26A\n C/7Ue1wGV7T17bnZgVbfso7M72T3hEQgI7ZxRbXjRyLPvX+sbKfyttyCPZWVhVV54J\n MrBRmvw7bEfzGFmAMhFWruF5S1jzTRX3Bgu1PQnngU4rhbmVrUgXhUEK0eHWyYtdlr\n b0eSneoJXF0cBJsC+eXDRL4L1B/SmeMR+MOrkRc84+Hk8JfbgVXsvPmGlpnbY/mGgT\n RlR0Ur7r4nQCQ==", "From": "Heinrich Schuchardt <heinrich.schuchardt@canonical.com>", "To": "Jerome Forissier <jerome.forissier@linaro.org>", "Cc": "Tom Rini <trini@konsulko.com>,\n Marek Vasut <marek.vasut+renesas@mailbox.org>,\n Ilias Apalodimas <ilias.apalodimas@linaro.org>,\n Simon Glass <sjg@chromium.org>, u-boot@lists.denx.de,\n Heinrich Schuchardt <heinrich.schuchardt@canonical.com>", "Subject": "[PATCH v3 4/4] net: use strnstr() for lwip_strnstr()", "Date": "Mon, 3 Feb 2025 10:12:02 +0100", "Message-ID": "<20250203091203.47590-5-heinrich.schuchardt@canonical.com>", "X-Mailer": "git-send-email 2.47.1", "In-Reply-To": "<20250203091203.47590-1-heinrich.schuchardt@canonical.com>", "References": "<20250203091203.47590-1-heinrich.schuchardt@canonical.com>", "MIME-Version": "1.0", "Content-Transfer-Encoding": "8bit", "X-BeenThere": "u-boot@lists.denx.de", "X-Mailman-Version": "2.1.39", "Precedence": "list", "List-Id": "U-Boot discussion <u-boot.lists.denx.de>", "List-Unsubscribe": "<https://lists.denx.de/options/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=unsubscribe>", "List-Archive": "<https://lists.denx.de/pipermail/u-boot/>", "List-Post": "<mailto:u-boot@lists.denx.de>", "List-Help": "<mailto:u-boot-request@lists.denx.de?subject=help>", "List-Subscribe": "<https://lists.denx.de/listinfo/u-boot>,\n <mailto:u-boot-request@lists.denx.de?subject=subscribe>", "Errors-To": "u-boot-bounces@lists.denx.de", "Sender": "\"U-Boot\" <u-boot-bounces@lists.denx.de>", "X-Virus-Scanned": "clamav-milter 0.103.8 at phobos.denx.de", "X-Virus-Status": "Clean" }, "content": "Using strstr() instead of strnstr() creates a security concern.\n\nFixes: 1c41a7afaa15 (\"net: lwip: build lwIP\")\nSigned-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>\nReviewed-by: Jerome Forissier <jerome.forissier@linaro.org>\n---\nv3:\n\tno change\nv2:\n\tno change\n---\n lib/lwip/u-boot/arch/cc.h | 2 +-\n 1 file changed, 1 insertion(+), 1 deletion(-)", "diff": "diff --git a/lib/lwip/u-boot/arch/cc.h b/lib/lwip/u-boot/arch/cc.h\nindex de138846358..6104c296f6f 100644\n--- a/lib/lwip/u-boot/arch/cc.h\n+++ b/lib/lwip/u-boot/arch/cc.h\n@@ -34,7 +34,7 @@\n \t x, __LINE__, __FILE__); } while (0)\n \n #define atoi(str) (int)dectoul(str, NULL)\n-#define lwip_strnstr(a, b, c) strstr(a, b)\n+#define lwip_strnstr(a, b, c) strnstr(a, b, c)\n \n #define LWIP_ERR_T int\n #define LWIP_CONST_CAST(target_type, val) ((target_type)((uintptr_t)val))\n", "prefixes": [ "v3", "4/4" ] }