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 <[email protected]>
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 <[email protected]> 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: <[email protected]> +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 <[email protected]> +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

