🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
1 messages
1 total messages Started by Paul Martin Fri, 06 Nov 2026 15:00
Bug#1149546: cwidget: diff for NMU version 0.5.18-6.1
#3495
Author: Paul Martin
Date: Fri, 06 Nov 2026 15:00
87 lines
4959 bytes
--iNsfBxkqCkt1D2+r
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

Control: tags 1148483 + patch
Control: tags 1148483 + pending
Control: tags 1149546 + pending

Dear maintainer,

I've prepared an NMU for cwidget (versioned as 0.5.18-6.1) and
uploaded it to DELAYED/15. Please feel free to tell me if I
should cancel it.

Regards.


-- 
Paul Martin <pm@debian.org>

--iNsfBxkqCkt1D2+r
Content-Type: text/x-diff; charset=utf-8
Content-Disposition: attachment; filename=cwidget-0.5.18-6.1-nmu.diff
Content-Transfer-Encoding: 8bit

diffstat for cwidget-0.5.18 cwidget-0.5.18

 changelog                                   |    8 ++++++++
 patches/0003-Fix-RasPi-libc-exception.patch |   27 +++++++++++++++++++++++++++
 patches/series                              |    1 +
 3 files changed, 36 insertions(+)

diff -Nru cwidget-0.5.18/debian/changelog cwidget-0.5.18/debian/changelog
--- cwidget-0.5.18/debian/changelog	2022-08-06 02:59:19.000000000 +0100
+++ cwidget-0.5.18/debian/changelog	2026-11-06 14:42:58.000000000 +0000
@@ -1,3 +1,11 @@
+cwidget (0.5.18-6.1) unstable; urgency=medium
+
+  * Non-maintainer upload.
+  * Fix missing return code checking which causes crash with newer libc
+    on arm64. (Closes: #1148483, #1149546)
+
+ -- Paul Martin <pm@debian.org>  Fri, 06 Nov 2026 14:42:58 +0000
+
 cwidget (0.5.18-6) unstable; urgency=medium
 
   [ Debian Janitor ]
diff -Nru cwidget-0.5.18/debian/patches/0003-Fix-RasPi-libc-exception.patch cwidget-0.5.18/debian/patches/0003-Fix-RasPi-libc-exception.patch
--- cwidget-0.5.18/debian/patches/0003-Fix-RasPi-libc-exception.patch	1970-01-01 01:00:00.000000000 +0100
+++ cwidget-0.5.18/debian/patches/0003-Fix-RasPi-libc-exception.patch	2026-11-06 14:12:48.000000000 +0000
@@ -0,0 +1,27 @@
+From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
+From:  <pm@debian.org>
+Date: Sep, 30 2026 15:16:32 +0100
+Subject: [PATCH] Fix crash on Raspberry Pi due to incorrect errno check
+
+Paweł Jasiak observes in bug #1148483:
+
+In cwidget-0.5.18/src/cwidget/toplevel.cc:488 result of select is used
+incorrectly. It's allowed to return any value different than -1 on success.
+errno can be checked **only** if select returns -1.
+
+Fixes: #1149546, #1148483
+
+Author: Paul Martin <pm@debian.org>
+Bug-Debian: https://bugs.debian.org/1149546
+
+--- cwidget-0.5.18.orig/src/cwidget/toplevel.cc
++++ cwidget-0.5.18/src/cwidget/toplevel.cc
+@@ -487,7 +487,7 @@ namespace cwidget
+ 
+ 	    if(result != 1)
+ 	      {
+-		if(errno != EINTR && errno != 0)
++		if(result == -1 && errno != EINTR && errno != 0)
+ 		  {
+ 		    // Probably means that there was an error reading
+ 		    // standard input.  (could also be ENOMEM)
diff -Nru cwidget-0.5.18/debian/patches/series cwidget-0.5.18/debian/patches/series
--- cwidget-0.5.18/debian/patches/series	2022-08-05 02:20:52.000000000 +0100
+++ cwidget-0.5.18/debian/patches/series	2026-11-06 14:12:48.000000000 +0000
@@ -1,2 +1,3 @@
 0001-Change-gettext-domainname-to-libcwidget4-1.patch
 0002-Fix-cwidget-and-aptitude-FTBFS.patch
+0003-Fix-RasPi-libc-exception.patch

--iNsfBxkqCkt1D2+r--
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