Message ID | 20210831090919.434244-1-vincent@systemli.org |
---|---|
State | Accepted |
Delegated to: | Daniel Golle |
Headers | show
Return-Path: <openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (no SPF record) smtp.mailfrom=lists.openwrt.org (client-ip=2607:7c80:54:e::133; helo=bombadil.infradead.org; envelope-from=openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; secure) header.d=lists.infradead.org header.i=@lists.infradead.org header.a=rsa-sha256 header.s=bombadil.20210309 header.b=aIdBoWoN; dkim=fail reason="signature verification failed" (2048-bit key; secure) header.d=systemli.org header.i=@systemli.org header.a=rsa-sha256 header.s=default header.b=boQFVb+P; dkim-atps=neutral Received: from bombadil.infradead.org (bombadil.infradead.org [IPv6:2607:7c80:54:e::133]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4GzLzQ5nP5z9sRN for <incoming@patchwork.ozlabs.org>; Tue, 31 Aug 2021 19:11:46 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=k8RAg1+wICCcBg1RF2wQ+6FRpzXYNdqtKsmLPrjkCnQ=; b=aIdBoWoNwQMzrh vaNfs76n1P/3hvRogc+rVUiBAqmUueOUIk6HU6Qe35lJtbTZRApTb3tO83u9r+ej/vHZGZ8wUux55 o3qD71bQ9V/ZuRBP7YGOpYwS4Yu9lr3y6ryMwkoMBuCeGDY2bI8wLjRxKZnwNgZRCqAv0QU/v/dJ/ bP8nQlLbHiq7y5OpzJdSCGDzHBcpo40gOzc7+AsZ96DUfK5h1/IQhwXCrszz2AvlD+Z6CvZVGx7q8 QUXJxSjSvSVjTgoHnZmTyMWB94rdEMd68tYZVPQ5+iswjhDuqKPrdsTFOEfcxmJTPRg3wOUBcoK0O z+SjKMwpR0UPVMBF/VRQ==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.94.2 #2 (Red Hat Linux)) id 1mKzlv-001trg-D5; Tue, 31 Aug 2021 09:09:35 +0000 Received: from mail1.systemli.org ([212.103.72.247]) by bombadil.infradead.org with esmtps (Exim 4.94.2 #2 (Red Hat Linux)) id 1mKzlp-001toe-0P for openwrt-devel@lists.openwrt.org; Tue, 31 Aug 2021 09:09:33 +0000 From: vincent@systemli.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=systemli.org; s=default; t=1630400965; bh=fxce2swyzBZ/H2lV7ga6jUspJTx0/mDcWIUYXMHu0jQ=; h=From:To:Cc:Subject:Date:From; b=boQFVb+P2b9A45XUwa75PI5OzBsvv2gPNwdoESDaNSouv/+3uoShqlVP0lIPZIJd4 Wz2B8vsNx1PARF02m7GbdbLIe0AossyMgXMfdDTNzT4GyuCrsX9psEcqH6Hj42JaMq U71STkpw3B9YwJ4yde3x+p1zF8ofgeuqswZgyEl3cFJ/4fxWExvUmD3WrBIZA+tJe5 fc+DbUK24VdT45u/s8+fiPdXvRf3a6LP7zLKgrBS7hbNcG2oSKoxunpecxvBhq7aS2 BmQ90GjO35iOkJuS/2GZ0RmEpgbP8gZQGpf0zt8Ll2j5JLKStFtkPQmre5c/uvlOUJ gZ9Mr/EzlnQaQ== To: openwrt-devel@lists.openwrt.org Cc: Nick Hainke <vincent@systemli.org> Subject: [PATCH 1/2] Revert "initd: fix off-by-one error in mkdev.c" Date: Tue, 31 Aug 2021 11:09:18 +0200 Message-Id: <20210831090919.434244-1-vincent@systemli.org> MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20210831_020929_217264_685265A9 X-CRM114-Status: GOOD ( 10.63 ) X-Spam-Score: -0.2 (/) X-Spam-Report: Spam detection software, running on the system "bombadil.infradead.org", has NOT identified this incoming email as spam. The original message has been attached to this so you can view it or label similar future email. If you have any questions, see the administrator of that system for details. Content preview: From: Nick Hainke <vincent@systemli.org> This reverts commit 8eb1d783cca6e0d501dd3a2f94262ffc36ae6482. This line reads a symbolic link into the string buffer "buf". len = readlink(buf2, buf, sizeof(buf)); The commit replaced now buf[len] = 0; with buf[sizeof(buf) - 1] = '\0'; Content analysis details: (-0.2 points, 5.0 required) pts rule name description ---- ---------------------- -------------------------------------------------- 0.0 RCVD_IN_MSPIKE_H3 RBL: Good reputation (+3) [212.103.72.247 listed in wl.mailspike.net] -0.0 SPF_PASS SPF: sender matches SPF record 0.0 SPF_HELO_NONE SPF: HELO does not publish an SPF Record -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_EF Message has a valid DKIM or DK signature from envelope-from domain 0.0 RCVD_IN_MSPIKE_WL Mailspike good senders X-BeenThere: openwrt-devel@lists.openwrt.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: OpenWrt Development List <openwrt-devel.lists.openwrt.org> List-Unsubscribe: <https://lists.openwrt.org/mailman/options/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=unsubscribe> List-Archive: <http://lists.openwrt.org/pipermail/openwrt-devel/> List-Post: <mailto:openwrt-devel@lists.openwrt.org> List-Help: <mailto:openwrt-devel-request@lists.openwrt.org?subject=help> List-Subscribe: <https://lists.openwrt.org/mailman/listinfo/openwrt-devel>, <mailto:openwrt-devel-request@lists.openwrt.org?subject=subscribe> Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "openwrt-devel" <openwrt-devel-bounces@lists.openwrt.org> Errors-To: openwrt-devel-bounces+incoming=patchwork.ozlabs.org@lists.openwrt.org |
Series |
[1/2] Revert "initd: fix off-by-one error in mkdev.c"
|
expand
|
diff --git a/initd/mkdev.c b/initd/mkdev.c index 1c9c97a..44101aa 100644 --- a/initd/mkdev.c +++ b/initd/mkdev.c @@ -86,7 +86,7 @@ static void find_devs(bool block) if (len <= 0) continue; - buf[sizeof(buf) - 1] = '\0'; + buf[len] = 0; if (!find_pattern(buf)) continue;