From nobody Sat Mar 14 09:30:41 2026 X-Original-To: riscv@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 4fXx0x2D8kz6VYbZ for ; Sat, 14 Mar 2026 09:30:41 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R12" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 4fXx0w6k86z3mq5 for ; Sat, 14 Mar 2026 09:30:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1773480640; 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: in-reply-to:in-reply-to:references:references; bh=4jHc+8/h3eqfN641graPuQr++Ttgr4cpAUEG+YByfh0=; b=k1KG7DxqzQvki4cXKkwDoWMcILQ0pbxvLiFHIhb+lr3aoKlwo7Yz9wsxGd+DptQHjBcPu2 O6BjwwhgHXUIvCH8Ylj53yxGrXlxwPgWHO/oaeTEyWkwQ62QdPkBPTa0pkJT3o0djLwtTH Hsoy1Nl4Fm5xZqbUkm2vWdWyX3V8b0UEjdC4x9UhiWyy1LT0ettiytQftMIOkRwN5mjrxW +W95DMn0shupLfexKEBeeQr0eBnWAQbVKiPpaWi9HkoRp9K2A5fSOmEXs6afWB6arIFXk8 mM+ijuCVm8YVw/xApfey0e9BSKkDMah6pUy5sGsVywrlB6c6Fg9h6WmZWAGfpw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1773480640; a=rsa-sha256; cv=none; b=PSPoO8wltKLRwur2lr+KBSMbYhNZcF8F7+cu6S3zJOFn+JQJQ9eZFtr03TrR5TPiLc7NtB VF4NQRKIr8pUl5/aaUgOVYH1EpCvzo6tKwB2zuWW1DrWtldmtI3/k1n6xUNd7vK/V4aZ7x XT3pFmpxl58es06NqsQ+MNWMQF0BbhPtUQZWbqj8awhZjsCPMr80i+0VeGgPOSySkMVcMO OJP9ac1Vw5ZOKsl/bCHya5Njk9a++93oE1nMh3RbumjrNNhOrlatrdL3+bxEmUm0/wSKBP cSPqv1hnsO4ohHT2KJ5sC3FfV+Q5JLPHE/ANYFs9w83vvHmLm5RMi6PkAqaqlQ== 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=1773480640; 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: in-reply-to:in-reply-to:references:references; bh=4jHc+8/h3eqfN641graPuQr++Ttgr4cpAUEG+YByfh0=; b=JG9sxh1kE1I+B2z20teT2+9dHVAga/bS7aEiqhui3qaAnR02mlg0nZZNBaxhNk7tmiAcW9 gF+oFb7t2biFhO1WsiyHH9XzOA6ECT/HHvHNOvdk0o2j0K3wEFThxi5DZTfdwYWA7nkYBM naBCuGVZG9Pf/YsiC8LNGtvgYQDJgms92DnbfRc+hKB20T61RsK8dNTdMyMs3DhNhmtPkU PoGdnOLUYh1BVPpOJxPNvR3Xfd8kJIXEWEa2kZJqdNww21/2yZYmBjT80kLONY9my4/W12 Lxp5ZdzknzruFc4NqEmZtb30rBmrx72WbunzMnoytkv6dZg6c2rb141K2d3lww== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4fXx0w6GD9z1Bmr for ; Sat, 14 Mar 2026 09:30:40 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 62E9UeSf093032 for ; Sat, 14 Mar 2026 09:30:40 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from bugzilla@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 62E9Ue5h093031 for riscv@FreeBSD.org; Sat, 14 Mar 2026 09:30:40 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: bugzilla set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: riscv@FreeBSD.org Subject: [Bug 293353] No overflow handling in the strnlen function Date: Sat, 14 Mar 2026 09:30:41 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: riscv X-Bugzilla-Version: Unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: commit-hook@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: DUPLICATE X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: riscv@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="UTF-8" X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: FreeBSD on the RISC-V instruction set architecture List-Archive: https://lists.freebsd.org/archives/freebsd-riscv List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-riscv@freebsd.org Sender: owner-freebsd-riscv@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D293353 --- Comment #6 from commit-hook@FreeBSD.org --- A commit in branch stable/15 references this bug: URL: https://cgit.FreeBSD.org/src/commit/?id=3D0536513edabc9ce3447738e986b0c9fff= 3907e64 commit 0536513edabc9ce3447738e986b0c9fff3907e64 Author: Strahinja Stani=C5=A1i=C4=87 AuthorDate: 2026-03-07 21:59:25 +0000 Commit: Robert Clausecker CommitDate: 2026-03-14 09:29:21 +0000 libc/riscv64: temporarily disable strnlen() implementation until a fix = is developed strnlen() doesn't seem to cope well with a length argument such that string pointer plus length overflows past the end of the address space. Reviewed by: fuz MFC after: 1 week PR: 293353, 293296 Differential Revision: https://reviews.freebsd.org/D55714 (cherry picked from commit 2a4e3112c811b9892e14e15cfd23538e7e47329c) lib/libc/riscv/string/Makefile.inc | 1 - 1 file changed, 1 deletion(-) --=20 You are receiving this mail because: You are the assignee for the bug.=