From nobody Thu Jun 4 21:15:42 2026 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4gWcmh0fj2z6gy28 for ; Thu, 04 Jun 2026 21:15:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (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 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R13" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gWcmg3ZFjz3LqF for ; Thu, 04 Jun 2026 21:15:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780607747; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p+Oa8ChFFowRhbdb0M1kr7Uid3a9fAxcHfdqzkq/rEI=; b=qRFCFkzGt1A4D8UhIIAuoO4FiElmzZ4pxL8cu20IqkUJssPqkw6w/9sZdAwGOf56nycmm9 sItT3ekpqbT8kfJ9DuRjEnyKom5RhrynCkwnyOuKtx5QGretD0jnrJTALZUu9ZeoSwgWNv exKDgX3BO1B5AwGtCcbsMGosr8jxakuLiqHTmti6y71HhKWK/jrKY80rj6eQG7biMMt/Mb WowIHmtsZLniU9OEC7JLSkl3dGKYXMo174SN/0RnEpWQPD8N68UMtqXJdoeN4R4EIerEON +w3daq/GLlkMA/0jqEXWfmleOgEoYzcfi/eDsC6I0zNd40ZfuitQX3j+7sNk4Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780607747; a=rsa-sha256; cv=none; b=auwFaZ9FYgrpsmYnzaQQot4xXF/Xo99B7saoT36omd2JMOxLcZePCWfzommFXACUAxcDq7 wG2xSGTr2McCfslYCSc2m3Nc4W+daYlHNcNwWf+VzAmROW3hO2jPOMKZ2TxsqAIFtrEX02 Qg41wtJQmDpVmXFJksKMlslYgk9AMiL5GMfcvIHBUNLv0r5fEUwDvxkZJFgS6c2kfNPZdc PhJiTjc4K3EwCzF3TclQN5iwgDoWiVP3MeJQlA8scf8E3qPRTJV302fvqE9erEmN+CuXf5 MIzoThyHKeMqRR0JWE0mxVPyNFSbb4i6RsDpRfhV2h2sCfGr3Dg79jwMOtB25Q== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780607747; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=p+Oa8ChFFowRhbdb0M1kr7Uid3a9fAxcHfdqzkq/rEI=; b=LYvS0+Q+G2dU9NtRuYiLQmfF+QH5cLl03+WegZZaVHYrZBY1Ln/4ws2NlSHZ3zFgkYO5Ja v9E7gdFKdwUI9I0D5HJBRI7VXJLvMeMfulPsdeFIznlhy9IdVDjuLEDxKaM3QCac0xUNcf zelzDpqkN3oRvtu8EIca+qkXqp915cZMkpXZzAMEiLCut1kaulskPmFqzZPK3jjI+ZKRvL WUISepHy0F+wb0B+78qheb81ZZYp/cR4slLSyThe9eB17plRvySdbEdS65gTMj+q2nRJXO KbyHXKSUCVL8i3seOa1AIDsB0iFfvJkNmVPDoHQr7ih91X3VP5azv12TtyAr1Q== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gWcmg2qbRz1F13 for ; Thu, 04 Jun 2026 21:15:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 3ce3f by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Thu, 04 Jun 2026 21:15:42 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Baptiste Daroussin Subject: git: 57807f389a9e - main - nuageinit: add nil/empty guard to decode_base64() List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: bapt X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 57807f389a9e42774d944e256b499f5fd82ff855 Auto-Submitted: auto-generated Date: Thu, 04 Jun 2026 21:15:42 +0000 Message-Id: <6a21eafe.3ce3f.5abbe251@gitrepo.freebsd.org> The branch main has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=57807f389a9e42774d944e256b499f5fd82ff855 commit 57807f389a9e42774d944e256b499f5fd82ff855 Author: Baptiste Daroussin AuthorDate: 2026-06-04 18:09:06 +0000 Commit: Baptiste Daroussin CommitDate: 2026-06-04 18:09:06 +0000 nuageinit: add nil/empty guard to decode_base64() Return an empty string when input is nil or zero-length instead of processing it through the decoding loop. --- libexec/nuageinit/nuage.lua | 3 +++ 1 file changed, 3 insertions(+) diff --git a/libexec/nuageinit/nuage.lua b/libexec/nuageinit/nuage.lua index 839cf3588021..4f25e79ccefc 100644 --- a/libexec/nuageinit/nuage.lua +++ b/libexec/nuageinit/nuage.lua @@ -20,6 +20,9 @@ local function getlocalbase() end local function decode_base64(input) + if input == nil or #input == 0 then + return "" + end local b = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/' input = string.gsub(input, '[^'..b..'=]', '')