From nobody Wed May 21 06:12:01 2025 X-Original-To: gnome@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 4b2Lfn21WJz5wtw7 for ; Wed, 21 May 2025 06:12:01 +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 "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4b2Lfm6wtlz4KKc for ; Wed, 21 May 2025 06:12:00 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1747807921; 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=Zjl4FwtiG+e+7PQ+9R4yQ5fkHMzootyTvPXLcd63t/k=; b=Gz24USzI3a5LVxyiJjbvXlW8TOfNSuC/A7VAx/ryTbYS1vDqlFdZkcELz94+zjiBk/blAH S0C8cOwjevt0VfYCtwa0uZF5KGAxkCzkm0qydpBJZjXP8wdYaLD7Iv52t9eXUEgN2JpUNv Hjy/dIVZVM5F6Y+tQOlHDzG6x0foEgvnQD6CQMZiNYLWOySzPkw+ywqxv0sFLxyaC2YqLH tTwlWv+s0ljSKb07B2tUritxezPpJBySy308GBssm41ZzOaIH+GwEfmnae+F2d6EE0nNWN vk1Ug66RzKcOF7i1NoHN0eLVdrfX+SRR5qCDlnU6vz3lSX5/Fl74Pi8W9NxVlg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1747807921; 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=Zjl4FwtiG+e+7PQ+9R4yQ5fkHMzootyTvPXLcd63t/k=; b=BeIuRtpNsO73feSn1crZYpbaGk7UF9khjRv299O1qgkU1D5d1vXbN8PuvU65d75mz0pH5r oUlLuWHrlhpDN9KHjQrkZuKeSXE4h2FQLWDQfHNcAl84K/Q/Xte5KwIGl/tbYN9RBVMmEJ mXPrmwpabnGPUq5Ehi7EY2NFjXpmHbpLMfsEMWeH/QlOjN+wubX1kSO09oayLx8l6MgwZZ sg+DeKivF8m8wU42PyLdqi3yHqF6RWETqq09U/z0W4IPoZN+FHM6NE5lwoRc126Ez8089E Hf0AlHqFySC0a3NTm0z9GP8h2fL+V01aGtLG8EJdj/32fj2NlwI12mL+DEU1rw== ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1747807921; a=rsa-sha256; cv=none; b=aMiAwnhRxonc7KX/8/NrlN6RPb7LgMqwnhlHrN/DrIdWxVklV/8mUG5DWQrIGwcyn96Wpl ff8VD2XfPHJarlCCJwEvRPEV8NO+zxH1Rnvr5M6tTdyQUWTdTXwsP8cFfn0FjHZ8eaTLkl pGZVRQoJoYag7ri6nY+hkOxnce6udP+YkoVCfDtO6wgjNy83T9M3MwKVgR2ohm/dfj4BYx yCZin2kmWmohWz8iUb9YPPqE2Sip+SpfaKwPxzTceH3i0ikIxQTSvvtSzuSc/GuotAbmyl 260tKGc/a0RyJiwENBEk9OH0iK6e+YtmfJZtWOvWqXuYT0V7nLaAf3s/miu/PQ== 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 4b2Lfm6GC7z6fk for ; Wed, 21 May 2025 06:12:00 +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 54L6C0XF098003 for ; Wed, 21 May 2025 06:12:00 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 54L6C0Ds098001 for gnome@FreeBSD.org; Wed, 21 May 2025 06:12:00 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: gnome@FreeBSD.org Subject: [Bug 286439] textproc/libxml2 local port patch causes random x11/mate-terminal build failures Date: Wed, 21 May 2025 06:12:01 +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: truckman@FreeBSD.org X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: ports-bugs@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: GNOME for FreeBSD -- porting and maintaining List-Archive: https://lists.freebsd.org/archives/freebsd-gnome List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-gnome@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D286439 --- Comment #1 from Don Lewis --- This is the patched version of python/libxml.c: static void libxml_xmlErrorFuncHandler(ATTRIBUTE_UNUSED void *ctx, const char *msg, ...) { va_list ap; PyObject *list; PyObject *message; PyObject *result; char str[1000]; unsigned char *ptr =3D (unsigned char *)str; #ifdef DEBUG_ERROR printf("libxml_xmlErrorFuncHandler(%p, %s, ...) called\n", ctx, msg); #endif #if PY_MAJOR_VERSION >=3D 3 /* Ensure the error string doesn't start at UTF8 continuation. */ while (*ptr && (*ptr & 0xc0) =3D=3D 0x80) ptr++; #endif The problem is that at this point, buf[] is still uninitialized and just contains stack garbage. If it doesn't contain any NUL bytes, the loop can walk ptr off the end of the array. Even if this doesn't happen, when ptr is used later, it will have a nonsense value. --=20 You are receiving this mail because: You are on the CC list for the bug.=