From nobody Thu Jun 4 21:15:42 2026 X-Original-To: dev-commits-src-main@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 4gWcmb0ySfz6gxqD for ; Thu, 04 Jun 2026 21:15:43 +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 4gWcmZ113rz3Lkd for ; Thu, 04 Jun 2026 21:15:42 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1780607742; 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=RYO1oJ0LTn4azn3CYAV6G2RV2szYUjGIovNqhKoiWHWrG/IW9lk+/9Y31EV0pEPwOLxOP4 nyOGkVR9HdAyXLmC4aNhX/BmyuwZXvmBUY77jz5DQ46jj7cbc0KrEsr/lEBhrnaeG5bLCh 8yVl4xOG9rxYai6XJH2VIy7rbzE5ABplsgm6jBzDHKFizHBJKHunXpTqgtjj+U/aKqh1QG PRBt5zBdb1INYacXfk8po4ujtDpoGYMTa6eTVchfkuRZwnklYUY1HeSTqp2+1FGuk/RSJV YFAGOzbXe1XtmdPxjXEdWpqTYzCehsrI2joPoR+9MRh06VAk9CPh+5oAEhCa6Q== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1780607742; a=rsa-sha256; cv=none; b=IBcOlmXO11itUta1BCcPqlmOLj/4raTJ4EHWRbtNcqqVOg33J3duArQQCtW9j0gIU3KLIE ciWH16A/2jGeFZTP9VO1OMpmgNtiTcE926m2Lwhs0Tnmw1EFITjCHpejHwOxIkap7QKGPj ha9JUlz0KerD/IX9LOBPeMesbyVIDNxQvye+/ESSSiuxSw0VDe/8rwValjdh+NJj4inGmy +O5tM7OXbdurD5ByAy3hhjy0TZFDDoJnyDomYfWN5Wse4BoqZKvvzEL69KA+u4H0A2VhvH 6XsJLJG5/w9bKv1ingsBL9a+3/MesC8GDTKF+h0QCEWHDYjHXunv75+JtTAv1Q== 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=1780607742; 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=pJkkFLpmrJJDx6bIWHUMtOj9ELC6sUyNeZBmPQovBotbI0nQSonQJwtrHfABsDDH21BObk 16P3zfr+9sWvpx/+zCoki5sSXfRMtCL5zSnJzFkfv/sjxffDBjwpyLUKI+cdbWL9N/YxOD 1pI2dbjxWyah+ip1lQyEYbzXzraZZPoG4CCq9A5EInWg8yfeKayrkI7iSQ4+knEjobcFJj jkegMKX4WGD5ZVV5himl99BDUbYHKPDsu3Jq8YbIu4jzg1edWZDAlcw6PegPfYSIPWdEyX U1JP7hcTBF1BdqI/k45EnvqTbbtNR9TjKSrUYnw6aFaTEyYCRkFxdQfAbUqhTA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gWcmZ0cvBz1F2P for ; Thu, 04 Jun 2026 21:15:42 +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 the main branch of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-main List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-main@freebsd.org Sender: owner-dev-commits-src-main@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..'=]', '')