From nobody Sun Jun 28 18:40:21 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 4gpJBG1lrtz6jkPr for ; Sun, 28 Jun 2026 18:40:22 +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 "YR1" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4gpJBF5xB7z3XhG for ; Sun, 28 Jun 2026 18:40:21 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1782672021; 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=8GYQvP0cUhUHLM1B1qEc0FRQSFdtrmfdKe9xwq9oqIM=; b=KmHkH1jmWhScIFhuLixrtI4o3ZUXklM/H9EE42hrXGPlD6kbGKispuqIBCOV3IXgA4PEUQ dnBAm9+tRp8SUUHi/aOjOgXcO7W6EqqI61ehnzvQ8W8mIGOoauB0fvE9HaVfrzq9H+recP yPtDF5zolTpq01FC/MhbidWcE/a56QNp7m2/HLHr0luUkr9l/QvDE5iYdZ6lfdMsZuyauW /jpJE6Waaus/oAYS+CEYsV61F5ci8nY1SnTmd6ij/Ke0OKeOFfdxUscrfN5IZ6NT1iL4N4 hi2XSfnd9ExjS2zrkevdFAK/RblgpYxJ/MlJocOW7xzec0S9RsE3C5SnbjDmLA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1782672021; a=rsa-sha256; cv=none; b=bqqtycOQpYZnjqtwN9Ro6rdHU4Nz+kX9XcsIDzS0EoDjBAlqpxyLN6a0+3GDWBOKh0vykw /gKE9PIBaAbyo0DPaE5Epx8q4Cr6jNp0W9kB3WKku/XlR4uucLYPIUBx4EfETUkDkYlE4/ E2OheHa2PT8HpJrynvRPUsarONOUwgvnpNUSqFPxl6+UPs59W2ez9sRDtFvrC6dk1bzQj5 DvBHsD4TKMYHoH5xECgMcJ/y/AuV4b36ZtLfc/Cn/M/IuyZ45vadUzu2apf/AAcXXE7IIe JvoA4kzVvpmnaJWMgHpxlV6kcUYvgY7YLRjjlNcksTdwub53YrJVuXhm8Bfz9Q== 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=1782672021; 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=8GYQvP0cUhUHLM1B1qEc0FRQSFdtrmfdKe9xwq9oqIM=; b=Pyasf+PqV1qA1yPgPFKmYKtZr/Sa8lUDec3s6FhXC04vA08Cs4M0AbX3hEE8TYcvnBECF9 X/1BGx3+RGMtRHc9WVTsuVUZUmrzeLTB8lyP6UVbHQx+47Ydje/MFmUxaFEhE/JREZkdIl mSg5Q/k4wKSEftoiPfrvxp3ENENIrnAJRKYg7ZtQ0aHUB6TvspKohxHfe5AwPAz0hqSqNP J+H1fdsscKy0SGfjcVzU2t+slzks3e4RoydBZSVlJBUwr9WaWVCh+aivuaE6M7iBb23sqc z+5u1uoxPRPaxqmaW1Ve0VeGGvj4bap3ml74Xrfjo5YzcoOzdJA2fduY0CgGTQ== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) by mxrelay.nyi.freebsd.org (Postfix) with ESMTP id 4gpJBF5124z75l for ; Sun, 28 Jun 2026 18:40:21 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from git (uid 1279) (envelope-from git@FreeBSD.org) id 1c992 by gitrepo.freebsd.org (DragonFly Mail Agent v0.13+ on gitrepo.freebsd.org); Sun, 28 Jun 2026 18:40:21 +0000 To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Baptiste Daroussin Subject: git: 6fcafba9b365 - stable/15 - 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/stable/15 X-Git-Reftype: branch X-Git-Commit: 6fcafba9b365878f9ba37bfb34ca819c8c848cea Auto-Submitted: auto-generated Date: Sun, 28 Jun 2026 18:40:21 +0000 Message-Id: <6a416a95.1c992.1a5871c3@gitrepo.freebsd.org> The branch stable/15 has been updated by bapt: URL: https://cgit.FreeBSD.org/src/commit/?id=6fcafba9b365878f9ba37bfb34ca819c8c848cea commit 6fcafba9b365878f9ba37bfb34ca819c8c848cea Author: Baptiste Daroussin AuthorDate: 2026-06-04 18:09:06 +0000 Commit: Baptiste Daroussin CommitDate: 2026-06-28 18:32:24 +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. (cherry picked from commit 57807f389a9e42774d944e256b499f5fd82ff855) --- 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..'=]', '')