From nobody Sun Nov 23 19:59:45 2025 X-Original-To: tcltk@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 4dF0D13fhSz6HZ3p for ; Sun, 23 Nov 2025 19:59:45 +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" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4dF0D11w79z3X5C for ; Sun, 23 Nov 2025 19:59:45 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763927985; 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=sBs566n6x2Y8jqgMHDnqhwkQ8hJtnogthyWcFP7AqRE=; b=dq/LIcfpzrWmXYjdq2iEdk+8U5CT+2K52ZNvVvvcWXeskvszcnAPplmdyREn30kvAtJNM6 Y8STWK0K2XgKIm/rHY9EFBOELRRO8rIuQn5F7XVYzJN81MKwVmV8dXforTArdvfTI9r3E3 knED6SPlzVJNtgIdj7RegwnIuRh91+s4YUGUdAY9hEYOLBTqVCf3TectMeysG+gSLfmWlS 6vj+zQp4OTm/KcGUbKeGM7he0eaW6dCi1n4iJrqiKW7FhAf67RvTo2m7vmcO6H8q3Z3Tri t2mEJXoRU+DYQAmTlgdtBtr+hal9U/U/6y6kvMjrTVMVb93owoJBWI/2eWYRFw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1763927985; 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=sBs566n6x2Y8jqgMHDnqhwkQ8hJtnogthyWcFP7AqRE=; b=FcJQBdP0Stws23POPzkKRVTRJ7Ym3LwbAlO2yHrCW99gr4ysySA5i9OQqX2mI59WOlSNLa 7nxUj5j/EdRdSYG+riMdqsmElFg4aOOwdLZ3+xAwO808kifbfgT7/2FKr8KFBVkoOtxh+/ 236Di83D96fnoKTtlxK4UpEL5POucUUXl54xMqqZ4W8kf52zY4O9SsCg1nu51J0ZRYaU2I gYdbxCdcE/32Skl1p7VWw1ZLxMlrzpVQYg9b69xAjLrxKREqXqXFAQOdfFjfV/0rHgEizD UTDCgDtvCAejArTzYFJkn+DlZP+wHTZI9TpEBAiS6Af/Sn2rPafJtJ/SpZfNKA== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1763927985; a=rsa-sha256; cv=none; b=WE2Ka0piNUiQ5YvxsK1GkBYbV5N7P6WK5fn6Ja/mGQRhQG4mT8YhPWDKDZPwP4xx0NRij8 zofsQUpxcpJgfsdUUS1A1ftlHiHqR3c8Ih5JlSQif9OLbqYtF2o5vbr6uLe91TccYHcZtg JQGUOHim+7HgyRHI7AXHIDa2ILzh0cUuHZlVvuxbcWr4t5/rdRWNxAvBg781KIq4/RzxEF qRVWVp1Yyrbs2ZuxVA1wY5efLEOF0wBNnTC2lEdKR82g5Bp3i6X6ZUjOTFHutd0CCzx4Uv WAUHL3KR5DUF7XX/mWH8Nv1TK+QB2KdCGMmbXypOcGMewliCvETdfRGvWpewfQ== ARC-Authentication-Results: i=1; mx1.freebsd.org; none 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 4dF0D10nHJzjnL for ; Sun, 23 Nov 2025 19:59:45 +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 5ANJxiEj061801 for ; Sun, 23 Nov 2025 19:59:44 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 5ANJximv061800 for tcltk@FreeBSD.org; Sun, 23 Nov 2025 19:59:44 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: tcltk@FreeBSD.org Subject: [Bug 261829] lang/expect: fix build with only lang/tcl87 installed Date: Sun, 23 Nov 2025 19:59:45 +0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Ports & Packages X-Bugzilla-Component: Individual Port(s) X-Bugzilla-Version: Latest X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: dim@FreeBSD.org X-Bugzilla-Status: Closed X-Bugzilla-Resolution: FIXED X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: gahr@FreeBSD.org X-Bugzilla-Flags: maintainer-feedback+ X-Bugzilla-Changed-Fields: attachments.created 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-specific Tcl/Tk discussions List-Archive: https://lists.freebsd.org/archives/freebsd-tcltk List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: freebsd-tcltk@freebsd.org Sender: owner-freebsd-tcltk@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D261829 --- Comment #5 from Dimitry Andric --- Created attachment 265606 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D265606&action= =3Dedit lang/expect: fix format string vulnerability in exp_clib.c (In reply to Shawn Webb from comment #4) Looks like it was generated a _very_ long time ago using "make makepatch", = but if you run this again you get a patch that is functionally equivalent, but = with lots of context differences. In any case, something like this new patch should work. I've replaced the fprintf() calls with simpler fputs() ones. You could also do fprintf(fp, "%= s", str) but I think that is more cumbersome. --=20 You are receiving this mail because: You are on the CC list for the bug.=