🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.devel.release
5 messages
5 total messages Started by Mike Gabriel Wed, 04 Nov 2026 20:20
Bug#1153044: trixie-pu: package lomiri-terminal-app/2.0.5-2+deb13u1
#324
Author: Mike Gabriel
Date: Wed, 04 Nov 2026 20:20
201 lines
10506 bytes
This is a multi-part MIME message sent by reportbug.


--===============2270845629754343642==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: lomiri-terminal-app@packages.debian.org
Control: affects -1 + src:lomiri-terminal-app
User: release.debian.org@packages.debian.org
Usertags: pu

Please accept upload of lomiri-terminal-app 2.0.5-2+deb13u1 to Debian
trixie.

[ Reason ]
Fix use-after-free issue, fix focus/foregrounding problem with settings dialog.

[ Impact ]
Above problems remain present in Lomiri on Debian trixie.

[ Tests ]
Manual tests on Debian 13's Lomiri.

[ Risks ]
Only for Lomiri / lomiri-terminal-app users.

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
  [x] the issue is verified as fixed in unstable

[ Changes ]

+ lomiri-terminal-app (2.0.5-2+deb13u1) trixie; urgency=medium
+
+   * debian/patches:
+     + Trivially rebase 2001_use-noto-fonts.patch.
+     + Add 0001_Fix-use-after-free-when-leaving-selection-mode.patch. Fix
+       use-after-free when leacing selection mode.
+     + Add 0002_Work-around-refocusing-the-settings-page.patch. Fix re-focusing
+       the settings dialog when having been sent to background before.
+
+  -- Mike Gabriel <sunweaver@debian.org>  Wed, 04 Nov 2026 20:57:56 +0100

[ Other info ]
None.

--===============2270845629754343642==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="lomiri-terminal-app_2.0.5-2_2.0.5-2+deb13u1.debdiff"

diff -Nru lomiri-terminal-app-2.0.5/debian/changelog lomiri-terminal-app-2.0.5/debian/changelog
--- lomiri-terminal-app-2.0.5/debian/changelog	2025-06-20 14:02:09.000000000 +0200
+++ lomiri-terminal-app-2.0.5/debian/changelog	2026-11-04 20:57:56.000000000 +0100
@@ -1,3 +1,14 @@
+lomiri-terminal-app (2.0.5-2+deb13u1) trixie; urgency=medium
+
+  * debian/patches:
+    + Trivially rebase 2001_use-noto-fonts.patch.
+    + Add 0001_Fix-use-after-free-when-leaving-selection-mode.patch. Fix
+      use-after-free when leacing selection mode.
+    + Add 0002_Work-around-refocusing-the-settings-page.patch. Fix re-focusing
+      the settings dialog when having been sent to background before.
+
+ -- Mike Gabriel <sunweaver@debian.org>  Wed, 04 Nov 2026 20:57:56 +0100
+
 lomiri-terminal-app (2.0.5-2) unstable; urgency=medium
 
   [ Robert Tari ]
diff -Nru lomiri-terminal-app-2.0.5/debian/patches/0001_Fix-use-after-free-when-leaving-selection-mode.patch lomiri-terminal-app-2.0.5/debian/patches/0001_Fix-use-after-free-when-leaving-selection-mode.patch
--- lomiri-terminal-app-2.0.5/debian/patches/0001_Fix-use-after-free-when-leaving-selection-mode.patch	1970-01-01 01:00:00.000000000 +0100
+++ lomiri-terminal-app-2.0.5/debian/patches/0001_Fix-use-after-free-when-leaving-selection-mode.patch	2026-11-04 20:53:23.000000000 +0100
@@ -0,0 +1,62 @@
+From 8e94bc20f6a621f4d877c9f19dc91af9f095c60f Mon Sep 17 00:00:00 2001
+From: mad0ps <34516201-mad0ps@users.noreply.gitlab.com>
+Date: Wed, 19 Aug 2026 08:07:39 +0700
+Subject: [PATCH] Fix use-after-free when leaving selection mode
+
+The "exit selection mode" bar lives in the bottomMessage Loader, whose
+active property is turned on by PropertyChanges in the SELECTION state.
+Its MouseArea.onClicked reset terminalPage.state as its first statement,
+which reverts that PropertyChanges and makes the Loader tear down its
+item tree synchronously -- including the MouseArea still executing. The
+following PopupUtils.open() then ran against freed objects, aborting the
+process with munmap_chunk(): invalid pointer.
+
+This regressed in 8dcfc136. The same two statements previously lived in
+closeSelectionButton / closeSelectionButtonTab, AbstractButtons toggled
+through visible, where leaving the state hid them instead of destroying
+them, so the handler could finish safely.
+
+Move the body into terminalPage.exitSelectionMode(), which runs on an
+object that survives the state change; open the popover while the bar is
+still alive and pass dummyForOtherActions as the caller, as the other two
+call sites already do; defer the state change with Qt.callLater so the
+teardown happens after the handler has returned.
+---
+ app/qml/TerminalPage.qml | 19 +++++++++++++++----
+ 1 file changed, 15 insertions(+), 4 deletions(-)
+
+--- a/app/qml/TerminalPage.qml
++++ b/app/qml/TerminalPage.qml
+@@ -45,6 +45,20 @@
+         }
+     }
+ 
++    // Leaving selection mode must not run inside the bottomMessage
++    // MouseArea: the SELECTION state keeps bottomMessage.active true, so
++    // resetting the state destroys the Loader item tree -- including this
++    // very MouseArea -- while its handler is still executing. Opening the
++    // popover afterwards then dereferences freed memory and aborts the
++    // process (munmap_chunk(): invalid pointer).
++    // Open the popover while the item is still alive, and defer the state
++    // change until the handler has returned.
++    function exitSelectionMode() {
++        PopupUtils.open(Qt.resolvedUrl("AlternateActionPopover.qml"),
++                        dummyForOtherActions);
++        Qt.callLater(function () { terminalPage.state = "DEFAULT"; });
++    }
++
+     function changeColor(color) {
+         var red = 1 - (color.r * 0.05)
+         var green = 1 - (color.g * 0.05)
+@@ -286,10 +300,7 @@
+                 anchors.fill: parent
+                 cursorShape: Qt.PointingHandCursor
+                 hoverEnabled: false
+-                onClicked: {
+-                  terminalPage.state = "DEFAULT";
+-                  PopupUtils.open(Qt.resolvedUrl("AlternateActionPopover.qml"));
+-                }
++                onClicked: terminalPage.exitSelectionMode()
+             }
+         }
+     }
diff -Nru lomiri-terminal-app-2.0.5/debian/patches/0002_Work-around-refocusing-the-settings-page.patch lomiri-terminal-app-2.0.5/debian/patches/0002_Work-around-refocusing-the-settings-page.patch
--- lomiri-terminal-app-2.0.5/debian/patches/0002_Work-around-refocusing-the-settings-page.patch	1970-01-01 01:00:00.000000000 +0100
+++ lomiri-terminal-app-2.0.5/debian/patches/0002_Work-around-refocusing-the-settings-page.patch	2026-11-04 20:46:54.000000000 +0100
@@ -0,0 +1,30 @@
+From b2adb4d6446fb423729dabed7ac701cf2d40c249 Mon Sep 17 00:00:00 2001
+From: Kugi Eusebio <kugi_eusebio@protonmail.com>
+Date: Tue, 1 Jul 2025 14:33:20 +0000
+Subject: [PATCH] Work around refocusing the settings page
+
+---
+ app/qml/TerminalPage.qml | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/app/qml/TerminalPage.qml b/app/qml/TerminalPage.qml
+index d92db30..aa1edd1 100644
+--- a/app/qml/TerminalPage.qml
++++ b/app/qml/TerminalPage.qml
+@@ -41,7 +41,13 @@ Page {
+         if (!settingsLoader.item) {
+             settingsLoader.active = true;
+         } else {
++            // TODO: UT doesn't support window.raise yet
++            // requestActivate should be enough but it doesn't
++            // work properly in UT.Fix this once it's supported
++            settingsLoader.item.hide();
++            settingsLoader.item.show();
+             settingsLoader.item.requestActivate();
++            settingsLoader.item.raise();
+         }
+     }
+ 
+-- 
+2.47.3
+
diff -Nru lomiri-terminal-app-2.0.5/debian/patches/2001_use-noto-fonts.patch lomiri-terminal-app-2.0.5/debian/patches/2001_use-noto-fonts.patch
--- lomiri-terminal-app-2.0.5/debian/patches/2001_use-noto-fonts.patch	2025-05-05 22:55:16.000000000 +0200
+++ lomiri-terminal-app-2.0.5/debian/patches/2001_use-noto-fonts.patch	2026-11-04 20:53:16.000000000 +0100
@@ -4,7 +4,7 @@
 
 --- a/app/qml/TerminalSettings.qml
 +++ b/app/qml/TerminalSettings.qml
-@@ -67,7 +67,7 @@
+@@ -73,7 +73,7 @@
      property Settings innerSettings: Settings {
          id: innerSettings
          property int fontSize: defaultFontSize
diff -Nru lomiri-terminal-app-2.0.5/debian/patches/series lomiri-terminal-app-2.0.5/debian/patches/series
--- lomiri-terminal-app-2.0.5/debian/patches/series	2025-06-20 14:01:58.000000000 +0200
+++ lomiri-terminal-app-2.0.5/debian/patches/series	2026-11-04 20:56:10.000000000 +0100
@@ -2,3 +2,5 @@
 2003_ignore-autopilot.patch
 2004_hide-app-if-not-in-lomiri.patch
 2005_suppress-xkb-compose.patch
+0001_Fix-use-after-free-when-leaving-selection-mode.patch
+0002_Work-around-refocusing-the-settings-page.patch

--===============2270845629754343642==--
Processed: trixie-pu: package lomiri-terminal-app/2.0.5-2+deb13u1
#323
Author: Debian Bug Tracking System
Date: Wed, 04 Nov 2026 20:20
11 lines
2314 bytes
Processing control commands:

> affects -1 + src:lomiri-terminal-app
Bug #1153044 [release.debian.org] trixie-pu: package lomiri-terminal-app/2.0.5-2+deb13u1
Added indication that 1153044 affects src:lomiri-terminal-app

-- 
1153044: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1153044
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
Bug#1153044: lomiri-terminal-app 2.0.5-2+deb13u1 flagged for acceptance
#816
Author: Adam D Barratt
Date: Sat, 14 Nov 2026 12:10
17 lines
2329 bytes
package release.debian.org
tags 1153044 = trixie pending
thanks

Hi,

The upload referenced by this bug report has been flagged for acceptance into the proposed-updates queue for Debian trixie.

Thanks for your contribution!

Upload details
==============

Package: lomiri-terminal-app
Version: 2.0.5-2+deb13u1

Explanation: fix use-after-free issue; fix re-focusing the settings dialog when having been sent to background before
Processed: lomiri-terminal-app 2.0.5-2+deb13u1 flagged for acceptance
#817
Author: Debian Bug Tracking System
Date: Sat, 14 Nov 2026 12:10
19 lines
2418 bytes
Processing commands for control@bugs.debian.org:

> package release.debian.org
Limiting to bugs with field 'package' containing at least one of 'release.debian.org'
Limit currently set to 'package':'release.debian.org'

> tags 1153044 = trixie pending
Bug #1153044 [release.debian.org] trixie-pu: package lomiri-terminal-app/2.0.5-2+deb13u1
Added tag(s) pending.
> thanks
Stopping processing here.

Please contact me if you need assistance.
-- 
1153044: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1153044
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
Bug#1153044: marked as done (trixie-pu: package lomiri-terminal-app/2.0.5-2+deb13u1)
#1053
Author: Debian Bug Tracking System
Date: Sat, 21 Nov 2026 09:50
368 lines
18854 bytes
This is a multi-part message in MIME format...

------------=_1795253389-3309611-0
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
Content-Type: text/plain; charset="utf-8"

Your message dated Sat, 21 Nov 2026 09:28:03 +0000
with message-id <E1xUhO7-00000008t07-0dwU@coccia.debian.org>
and subject line Released in 13.8
has caused the Debian Bug report #1153044,
regarding trixie-pu: package lomiri-terminal-app/2.0.5-2+deb13u1
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact owner@bugs.debian.org
immediately.)


--=20
1153044: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=3D1153044
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems

------------=_1795253389-3309611-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at submit) by bugs.debian.org; 4 Nov 2026 20:14:09 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-30.1 required=4.0 tests=BAYES_00,
	BODY_INCLUDES_CONTROL_AFFECTS,BODY_INCLUDES_PACKAGE,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,FOURLA,FVGT_m_MULTI_ODD,
	HAS_PACKAGE,MD5_SHA1_SUM,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,
	XMAILER_REPORTBUG autolearn=ham autolearn_force=no
	version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 154; hammy, 150; neutral, 280; spammy,
	0. spammytokens: hammytokens:0.000-+--XDebbugsCc,
	0.000-+--X-Debbugs-Cc, 0.000-+--trixie, 0.000-+--H*Ad:N*Bug,
	0.000-+--HTo:N*Debian
Return-path: <mike.gabriel@das-netzwerkteam.de>
Received: from fregna.das-netzwerkteam.de ([148.251.53.130]:54898)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_X25519__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <mike.gabriel@das-netzwerkteam.de>)
	id 1xOhN2-00Bp5K-2c
	for submit@bugs.debian.org;
	Wed, 04 Nov 2026 20:14:09 +0000
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=das-netzwerkteam.de;
	s=dkim; t=1793823247;
	bh=tD+OFbIKVy+ATMX9y1ALTInat6xKZIRIHJ3vS2wU1rk=;
	h=From:To:Subject:Date:From;
	b=cxFNokZswl07SPp9rnktMhPoHa9ZHFXJKMx7YmOw7QAlaTyvqDqMQ6jpfjkARdBYy
	 gLUVspLk3coAwjunl7r8qgY5d4q8QJtZgu8KdZn9lWpmnC+luEPTp3S7l3tibWGJL6
	 KBkAX8cM9FTqBzmxg+GD0x4JePMN/RG2Z1ubePWy8Pnx48lVjwt/+MnXtg7Tgdy6nE
	 Ql19WXYG/FV7L3QJBF3aVM0oRpnO15czILsxEstQQC0/Bbn71ZBy2Nxu3SZFnjweDG
	 VEOV30IiaGE+RdAfYsHvHEYgujE+IqziLFjX/0OpT6eEcFRZqBP9hfuNz2/Fae/D5k
	 O71rxMroxPrR+XBTjpEmKo7fqHlFWy2m16d0API5ArO9ou5wXAl64ugzRn+th5ewWj
	 QVS4TkITcraYhdQJa9QNZUkz5rgp4V0fmqa5Pn60v2RX3p3xnRpblBGJeJrbaOfGYM
	 5MXbl/o5Gb3VLfozV3s77ZzQdTSKUL4crjxnCyPw0sFq63t2Yr5nDvYGGURNJbnVBI
	 bKVZbJOEtpW57Of6cfYKOx9MTYrG03wj57K3xnuFlTGTH6V6DK6t2Wegm8a2toIZ47
	 49RF4/2d3rv4zmgeyPS4gNR22MfCj27flgBi1MTFGE4UwC+pfEi2GvFlyXM8UrkuAG
	 VL1SyKKqlc3sscXD197JJ/5g=
Received: from grimnir.das-netzwerkteam.de (grimnir.das-netzwerkteam.de [IPv6:2a01:4f8:202:1381::105])
	by fregna.das-netzwerkteam.de (Postfix) with ESMTPS id 2F54A61C88
	for <submit@bugs.debian.org>; Wed,  4 Nov 2026 20:14:07 +0000 (UTC)
Received: from sunobo (localhost [127.0.0.1])
	by grimnir.das-netzwerkteam.de (Postfix) with ESMTPS id CAE84C090C;
	Wed,  4 Nov 2026 21:14:06 +0100 (CET)
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=das-netzwerkteam.de;
	s=dkim; t=1793823246;
	h=from:from:reply-to:subject:subject:date:date:message-id:message-id:
	 to:to:cc:mime-version:mime-version:content-type:content-type;
	bh=tD+OFbIKVy+ATMX9y1ALTInat6xKZIRIHJ3vS2wU1rk=;
	b=YTlQzmGdcHvQ1xUnnfFIKzwmT3i1ekL1HD9L6Etv/oM5UmxY61Us3eMq8h19QKyrOMbETO
	/n6TdeEJ7DQGo9r8iTSbtRpDEWJchBFmt20hIy358v3XjAQBIJvLlZclmxixmFi1VlPGDW
	GK4NKTUI+wb99I6k2Y0+ZZjvLz0pbVQl6/DQPnvBJw2/S2T+BYX965iOD92pPiEDhqCBiZ
	tB1przWYKozAv/QsICuyv8UhP+SAefyZFkszg+UvCpRp4tqO6rNKaPLkKF3VN3LwvXfMDO
	6DN1zF7K9kS7WfVfwpvkHl3l4LksT9Vyb6oA4B2AdLtgDzt5NRB95BQ0fCv2/+leecUQvP
	uAAULuY43Wtf2DaXlV3BkPat5yafqEw+1zZihBNrlOYFLffu9mO5SHI5KBW3dh7YwKHPEj
	OqOILdN7ENOfBJ0KDNHmYGz1hN5cFkkIuIxOqWgsPvnvpXW/isl4Zsu20/x1bqAkt31o8S
	aDlx2KBf5nEXDazQ3agHByHQJj6gzu6tzsUWPJPXT0s638ZLHF0ATpeG+MoLUx1SeUnw9A
	Kfewoh35XLoMTxSH9sS+TH+bd/6+sFWyybaRSQkQqWagGq5yGbc5XFHuNn+bPSbbudzKiI
	UgkRhLFA3/qXndR+IY6ix96m7haYM8JgCHCCspxiJIasR7eOYqcSs=
Received: by sunobo (Postfix, from userid 1000)
	id 8EDE18D; Wed, 04 Nov 2026 21:14:06 +0100 (CET)
Content-Type: multipart/mixed; boundary="===============2270845629754343642=="
MIME-Version: 1.0
From: Mike Gabriel <mike.gabriel@das-netzwerkteam.de>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: trixie-pu: package lomiri-terminal-app/2.0.5-2+deb13u1
Message-ID: <179382324655.3176729.1061923657098601162.reportbug@sunobo>
X-Mailer: reportbug 13.2.0
Date: Wed, 04 Nov 2026 21:14:06 +0100
Delivered-To: submit@bugs.debian.org

This is a multi-part MIME message sent by reportbug.


--===============2270845629754343642==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Package: release.debian.org
Severity: normal
Tags: trixie
X-Debbugs-Cc: lomiri-terminal-app@packages.debian.org
Control: affects -1 + src:lomiri-terminal-app
User: release.debian.org@packages.debian.org
Usertags: pu

Please accept upload of lomiri-terminal-app 2.0.5-2+deb13u1 to Debian
trixie.

[ Reason ]
Fix use-after-free issue, fix focus/foregrounding problem with settings dialog.

[ Impact ]
Above problems remain present in Lomiri on Debian trixie.

[ Tests ]
Manual tests on Debian 13's Lomiri.

[ Risks ]
Only for Lomiri / lomiri-terminal-app users.

[ Checklist ]
  [x] *all* changes are documented in the d/changelog
  [x] I reviewed all changes and I approve them
  [x] attach debdiff against the package in (old)stable
  [x] the issue is verified as fixed in unstable

[ Changes ]

+ lomiri-terminal-app (2.0.5-2+deb13u1) trixie; urgency=medium
+
+   * debian/patches:
+     + Trivially rebase 2001_use-noto-fonts.patch.
+     + Add 0001_Fix-use-after-free-when-leaving-selection-mode.patch. Fix
+       use-after-free when leacing selection mode.
+     + Add 0002_Work-around-refocusing-the-settings-page.patch. Fix re-focusing
+       the settings dialog when having been sent to background before.
+
+  -- Mike Gabriel <sunweaver@debian.org>  Wed, 04 Nov 2026 20:57:56 +0100

[ Other info ]
None.

--===============2270845629754343642==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment; filename="lomiri-terminal-app_2.0.5-2_2.0.5-2+deb13u1.debdiff"

diff -Nru lomiri-terminal-app-2.0.5/debian/changelog lomiri-terminal-app-2.0.5/debian/changelog
--- lomiri-terminal-app-2.0.5/debian/changelog	2025-06-20 14:02:09.000000000 +0200
+++ lomiri-terminal-app-2.0.5/debian/changelog	2026-11-04 20:57:56.000000000 +0100
@@ -1,3 +1,14 @@
+lomiri-terminal-app (2.0.5-2+deb13u1) trixie; urgency=medium
+
+  * debian/patches:
+    + Trivially rebase 2001_use-noto-fonts.patch.
+    + Add 0001_Fix-use-after-free-when-leaving-selection-mode.patch. Fix
+      use-after-free when leacing selection mode.
+    + Add 0002_Work-around-refocusing-the-settings-page.patch. Fix re-focusing
+      the settings dialog when having been sent to background before.
+
+ -- Mike Gabriel <sunweaver@debian.org>  Wed, 04 Nov 2026 20:57:56 +0100
+
 lomiri-terminal-app (2.0.5-2) unstable; urgency=medium
 
   [ Robert Tari ]
diff -Nru lomiri-terminal-app-2.0.5/debian/patches/0001_Fix-use-after-free-when-leaving-selection-mode.patch lomiri-terminal-app-2.0.5/debian/patches/0001_Fix-use-after-free-when-leaving-selection-mode.patch
--- lomiri-terminal-app-2.0.5/debian/patches/0001_Fix-use-after-free-when-leaving-selection-mode.patch	1970-01-01 01:00:00.000000000 +0100
+++ lomiri-terminal-app-2.0.5/debian/patches/0001_Fix-use-after-free-when-leaving-selection-mode.patch	2026-11-04 20:53:23.000000000 +0100
@@ -0,0 +1,62 @@
+From 8e94bc20f6a621f4d877c9f19dc91af9f095c60f Mon Sep 17 00:00:00 2001
+From: mad0ps <34516201-mad0ps@users.noreply.gitlab.com>
+Date: Wed, 19 Aug 2026 08:07:39 +0700
+Subject: [PATCH] Fix use-after-free when leaving selection mode
+
+The "exit selection mode" bar lives in the bottomMessage Loader, whose
+active property is turned on by PropertyChanges in the SELECTION state.
+Its MouseArea.onClicked reset terminalPage.state as its first statement,
+which reverts that PropertyChanges and makes the Loader tear down its
+item tree synchronously -- including the MouseArea still executing. The
+following PopupUtils.open() then ran against freed objects, aborting the
+process with munmap_chunk(): invalid pointer.
+
+This regressed in 8dcfc136. The same two statements previously lived in
+closeSelectionButton / closeSelectionButtonTab, AbstractButtons toggled
+through visible, where leaving the state hid them instead of destroying
+them, so the handler could finish safely.
+
+Move the body into terminalPage.exitSelectionMode(), which runs on an
+object that survives the state change; open the popover while the bar is
+still alive and pass dummyForOtherActions as the caller, as the other two
+call sites already do; defer the state change with Qt.callLater so the
+teardown happens after the handler has returned.
+---
+ app/qml/TerminalPage.qml | 19 +++++++++++++++----
+ 1 file changed, 15 insertions(+), 4 deletions(-)
+
+--- a/app/qml/TerminalPage.qml
++++ b/app/qml/TerminalPage.qml
+@@ -45,6 +45,20 @@
+         }
+     }
+ 
++    // Leaving selection mode must not run inside the bottomMessage
++    // MouseArea: the SELECTION state keeps bottomMessage.active true, so
++    // resetting the state destroys the Loader item tree -- including this
++    // very MouseArea -- while its handler is still executing. Opening the
++    // popover afterwards then dereferences freed memory and aborts the
++    // process (munmap_chunk(): invalid pointer).
++    // Open the popover while the item is still alive, and defer the state
++    // change until the handler has returned.
++    function exitSelectionMode() {
++        PopupUtils.open(Qt.resolvedUrl("AlternateActionPopover.qml"),
++                        dummyForOtherActions);
++        Qt.callLater(function () { terminalPage.state = "DEFAULT"; });
++    }
++
+     function changeColor(color) {
+         var red = 1 - (color.r * 0.05)
+         var green = 1 - (color.g * 0.05)
+@@ -286,10 +300,7 @@
+                 anchors.fill: parent
+                 cursorShape: Qt.PointingHandCursor
+                 hoverEnabled: false
+-                onClicked: {
+-                  terminalPage.state = "DEFAULT";
+-                  PopupUtils.open(Qt.resolvedUrl("AlternateActionPopover.qml"));
+-                }
++                onClicked: terminalPage.exitSelectionMode()
+             }
+         }
+     }
diff -Nru lomiri-terminal-app-2.0.5/debian/patches/0002_Work-around-refocusing-the-settings-page.patch lomiri-terminal-app-2.0.5/debian/patches/0002_Work-around-refocusing-the-settings-page.patch
--- lomiri-terminal-app-2.0.5/debian/patches/0002_Work-around-refocusing-the-settings-page.patch	1970-01-01 01:00:00.000000000 +0100
+++ lomiri-terminal-app-2.0.5/debian/patches/0002_Work-around-refocusing-the-settings-page.patch	2026-11-04 20:46:54.000000000 +0100
@@ -0,0 +1,30 @@
+From b2adb4d6446fb423729dabed7ac701cf2d40c249 Mon Sep 17 00:00:00 2001
+From: Kugi Eusebio <kugi_eusebio@protonmail.com>
+Date: Tue, 1 Jul 2025 14:33:20 +0000
+Subject: [PATCH] Work around refocusing the settings page
+
+---
+ app/qml/TerminalPage.qml | 6 ++++++
+ 1 file changed, 6 insertions(+)
+
+diff --git a/app/qml/TerminalPage.qml b/app/qml/TerminalPage.qml
+index d92db30..aa1edd1 100644
+--- a/app/qml/TerminalPage.qml
++++ b/app/qml/TerminalPage.qml
+@@ -41,7 +41,13 @@ Page {
+         if (!settingsLoader.item) {
+             settingsLoader.active = true;
+         } else {
++            // TODO: UT doesn't support window.raise yet
++            // requestActivate should be enough but it doesn't
++            // work properly in UT.Fix this once it's supported
++            settingsLoader.item.hide();
++            settingsLoader.item.show();
+             settingsLoader.item.requestActivate();
++            settingsLoader.item.raise();
+         }
+     }
+ 
+-- 
+2.47.3
+
diff -Nru lomiri-terminal-app-2.0.5/debian/patches/2001_use-noto-fonts.patch lomiri-terminal-app-2.0.5/debian/patches/2001_use-noto-fonts.patch
--- lomiri-terminal-app-2.0.5/debian/patches/2001_use-noto-fonts.patch	2025-05-05 22:55:16.000000000 +0200
+++ lomiri-terminal-app-2.0.5/debian/patches/2001_use-noto-fonts.patch	2026-11-04 20:53:16.000000000 +0100
@@ -4,7 +4,7 @@
 
 --- a/app/qml/TerminalSettings.qml
 +++ b/app/qml/TerminalSettings.qml
-@@ -67,7 +67,7 @@
+@@ -73,7 +73,7 @@
      property Settings innerSettings: Settings {
          id: innerSettings
          property int fontSize: defaultFontSize
diff -Nru lomiri-terminal-app-2.0.5/debian/patches/series lomiri-terminal-app-2.0.5/debian/patches/series
--- lomiri-terminal-app-2.0.5/debian/patches/series	2025-06-20 14:01:58.000000000 +0200
+++ lomiri-terminal-app-2.0.5/debian/patches/series	2026-11-04 20:56:10.000000000 +0100
@@ -2,3 +2,5 @@
 2003_ignore-autopilot.patch
 2004_hide-app-if-not-in-lomiri.patch
 2005_suppress-xkb-compose.patch
+0001_Fix-use-after-free-when-leaving-selection-mode.patch
+0002_Work-around-refocusing-the-settings-page.patch

--===============2270845629754343642==--

------------=_1795253389-3309611-0
Content-Type: message/rfc822
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

Received: (at 1153044-done) by bugs.debian.org; 21 Nov 2026 09:28:11 +0000
X-Spam-Checker-Version: SpamAssassin 4.0.1-bugs.debian.org_2005_01_02
	(2024-03-25) on buxtehude.debian.org
X-Spam-Level: 
X-Spam-Status: No, score=-105.1 required=4.0 tests=BAYES_00,DKIM_SIGNED,
	DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED,SPF_HELO_PASS,
	SPF_PASS,USER_IN_DKIM_WELCOMELIST,VERSION autolearn=ham
	autolearn_force=no version=4.0.1-bugs.debian.org_2005_01_02
X-Spam-Bayes: score:0.0000 Tokens: new, 7; hammy, 73; neutral, 16; spammy, 0.
	spammytokens: hammytokens:0.000-+--H*r:sk:coccia.,
	0.000-+--H*MI:coccia, 0.000-+--H*m:coccia, 0.000-+--H*r:submission,
	0.000-+--H*F:U*jmw
Return-path: <jmw@coccia.debian.org>
Received: from mitropoulos.debian.org ([2001:648:2ffc:deb:216:61ff:fe9d:958d]:60872)
	by buxtehude.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <jmw@coccia.debian.org>)
	id 1xUhOG-00DruX-1u
	for 1153044-done@bugs.debian.org;
	Sat, 21 Nov 2026 09:28:11 +0000
Received: via submission
	from C=NA,ST=NA,L=Ankh Morpork,O=Debian SMTP,OU=Debian SMTP CA,CN=coccia.debian.org,EMAIL=hostmaster@coccia.debian.org (verified)
	by mitropoulos.debian.org with esmtps (TLS1.3:ECDHE_SECP256R1__RSA_PSS_RSAE_SHA256__AES_256_GCM:256)
	(Exim 4.96)
	(envelope-from <jmw@coccia.debian.org>)
	id 1xUhO8-004ifG-2N
	for 1153044-done@bugs.debian.org;
	Sat, 21 Nov 2026 09:28:04 +0000
DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed;
	d=coccia.debian.org; s=smtpauto.coccia; h=Date:From:Message-Id:
	Content-Transfer-Encoding:Content-Type:MIME-Version:Subject:To:Reply-To:Cc:
	Content-ID:Content-Description:In-Reply-To:References;
	bh=j3C+QfqZhEAyGCz+F5Nny7uVPSJTnuL2JF6zBnHyDlM=; b=SaQGTmWWq/5pdcgc6DmKv1NrDh
	+MOExpDWNxWHZKQ1QIjnotdIMs1/dU/BM309ARC46pckIt86jIw66dijvdbkNmKI+i/+7WJT3wqFc
	bxvE024pBdVk12b+Vel1Olf7Nkvkn8Jr2pzdda2JYPzTnt4/FAtfojFMNDAPEK+VaWelrE6PKIvtP
	94zYroMgFbZcsdZOp6JkOEsncIzJjMy/J48pzriaIrQrBGWR9rGCZVJ9FsfvEcvHmT30siX6ItOTs
	EXAXzmLT3aKwKeKriKuiwiTvbX5VDDnjg5ZWATb4iBvj0rPJJY5lJM9gCQbqtzN2OwSyVOCy8iF56
	lHAevmng==;
Received: from jmw by coccia.debian.org with local (Exim 4.98.2)
	(envelope-from <jmw@coccia.debian.org>)
	id 1xUhO7-00000008t07-0dwU
	for 1153044-done@bugs.debian.org;
	Sat, 21 Nov 2026 09:28:03 +0000
To: 1153044-done@bugs.debian.org
Subject: Released in 13.8
MIME-Version: 1.0
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: 8bit
Message-Id: <E1xUhO7-00000008t07-0dwU@coccia.debian.org>
From: Jonathan Wiltshire <jmw@coccia.debian.org>
Date: Sat, 21 Nov 2026 09:28:03 +0000
X-CrossAssassin-Score: 101

Version: 13.8

This update was released as part of 13.8.
------------=_1795253389-3309611-0--
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads