🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.bugs.dist
3 messages
3 total messages Started by Jordi Mallach Wed, 07 Oct 2026 11:50
Bug#1150228: libgnustep-base1.31: NSRegularExpression returns nil when a replacement yields an empty string
#33
Author: Jordi Mallach
Date: Wed, 07 Oct 2026 11:50
38 lines
3227 bytes
Package: libgnustep-base1.31
Version: 1.31.1-4+b2
Severity: important
Tags: patch fixed-upstream
Forwarded: https://github.com/gnustep/libs-base/issues/800
Control: affects -1 src:sogo

Dear Maintainer,

-[NSRegularExpression stringByReplacingMatchesInString:options:range:withTemplate:]
returns nil instead of @"" whenever the result of the replacement is
empty, e.g. when the pattern matches the whole input, or the input is
empty. -replaceMatchesInString:options:range:withTemplate: has the same
problem and leaves the mutable string untouched.

Debian builds the non-UText code path, which first asks ICU for the output
length with a zero-sized buffer:

  outLength = uregex_replaceAll(r, replacement, replLength, NULL, 0, &s);
  if (0 == s || U_BUFFER_OVERFLOW_ERROR == s)

For an empty result ICU returns 0 with U_STRING_NOT_TERMINATED_WARNING,
which is a warning (negative), not an error, but the "0 == s" check
treats it as a failure and the method returns nil.

Upstream fixed this in libs-base commit 188b2a3faee4 ("fix for issue
#800"), which replaces the "0 == s" checks with U_SUCCESS(s) throughout
Source/NSRegularExpression.m and adds test cases:

  https://github.com/gnustep/libs-base/commit/188b2a3faee4e88d3371000690d0930e15545f06

The replacement hunks apply to 1.31.1 with small offsets. The two
uregex_lookingAt()/uregex_findNext() hunks need adjusting by hand, as
upstream refactored that code in 09de0f4720fa. Please consider
backporting it.

Thanks,
Jordi
Bug#1150228: sogo: Also affects trixie; breaks sogo 5.12.1-3+deb13u3 UI
#1191
Author: Ingo Juergensmann
Date: Sat, 17 Oct 2026 17:50
76 lines
5261 bytes
Package: sogo
Followup-For: Bug #1150228

Dear Maintainer,


This also affects stable. trixie still ships libgnustep-base1.31 1.31.1-3,
which lacks the NSRegularExpression fix (1.31.1-5 in unstable/testing).

sogo 5.12.1-3+deb13u3 (DSA-6561-1, trixie-security) adds XSS patches
("escape angularJS directive for description", "add stripAngular to
stringWithoutHTMLInjection calls", "use legitimate sorting value"). With
them on trixie I see two UI regressions:

- Webmail cannot return to the Inbox when the message list is sorted by
  "Order Received" (sort=arrival, the default). No request is sent and
  nothing is logged. With sort=date it works.
- The invitation card shows "{\{$chip.name}/}" instead of the attendee
  name, although the ATTENDEE line has a valid CN.

I suspect nil results from NSRegularExpression replacements that yield an
empty string, but I have not verified it. Could the fix be made available
in trixie / trixie-security?

Regards, 
Ingo 

-- System Information:
Debian Release: 13.7
  APT prefers stable-security
  APT policy: (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 6.12.111+deb13-amd64 (SMP w/2 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE=en_DE:en_US:en_GB:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages sogo depends on:
ii  adduser                                       3.152
ii  gnustep-base-runtime                          1.31.1-3
ii  gnustep-multiarch [gnustep-layout-multiarch]  2.9.3-6
ii  init-system-helpers                           1.69~deb13u1
ii  libc6                                         2.41-12+deb13u4
ii  libcrypt1                                     1:4.4.38-1
ii  libcurl4t64                                   8.14.1-2+deb13u7
ii  libgcc-s1                                     14.2.0-19
ii  libglib2.0-0t64                               2.84.4-3~deb13u5
ii  libgnustep-base1.31                           1.31.1-3
ii  liblasso3t64                                  2.8.2-9+deb13u1
ii  libmemcached11t64                             1.1.4-1.1+b2
ii  liboath0t64                                   2.6.12-1
ii  libobjc4                                      14.2.0-19
ii  libsbjson2.3t64                               2.3.2-5+b1
ii  libsodium23                                   1.0.18-1+deb13u1
ii  libsope1                                      5.12.1-2
ii  libssl3t64                                    3.5.7-1~deb13u3
ii  libytnef0                                     2.1.2-1+b2
ii  libzip5                                       1.11.3-2
ii  lsb-base                                      11.6
ii  memcached                                     1.6.38-1
ii  sogo-common                                   5.12.1-3+deb13u3
ii  systemd                                       257.13-1~deb13u1
ii  sysvinit-utils [lsb-base]                     3.14-4
ii  zip                                           3.0-15+deb13u1

sogo recommends no packages.

Versions of packages sogo suggests:
ii  postgresql  17+278

-- Configuration Files:
/etc/sogo/sogo.conf [Errno 13] Permission denied: '/etc/sogo/sogo.conf'

-- no debconf information
Bug#1150228: sogo: Also affects trixie; breaks sogo 5.12.1-3+deb13u3 UI
#1192
Author: Yavor Doganov
Date: Sat, 17 Oct 2026 18:10
17 lines
3076 bytes
Ingo Juergensmann wrote:
> - Webmail cannot return to the Inbox when the message list is sorted by
>   "Order Received" (sort=arrival, the default). No request is sent and
>   nothing is logged. With sort=date it works.
> - The invitation card shows "{\{$chip.name}/}" instead of the attendee
>   name, although the ATTENDEE line has a valid CN.

Looks bad enough to me.  Thanks for informing us; the upload of
sogo/5.12.11-1 to unstable contained some workaround for this bug so I
thought something similar was done for stable.

> I suspect nil results from NSRegularExpression replacements that yield an
> empty string, but I have not verified it. Could the fix be made available
> in trixie / trixie-security?

Sure, I'll prepare a pu for trixie but it's up to the release team to
approve it.
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