mirror of
git://slackware.nl/current.git
synced 2025-01-15 15:41:54 +01:00
3dc2470097
extra/tigervnc/tigervnc-1.12.0-x86_64-4_slack15.0.txz: Rebuilt. Recompiled against xorg-server-1.20.14, including patches for several security issues. Thanks to marav. For more information, see: https://www.cve.org/CVERecord?id=CVE-2022-3550 https://www.cve.org/CVERecord?id=CVE-2022-3551 https://www.cve.org/CVERecord?id=CVE-2022-3553 https://www.cve.org/CVERecord?id=CVE-2022-4283 https://www.cve.org/CVERecord?id=CVE-2022-46340 https://www.cve.org/CVERecord?id=CVE-2022-46341 https://www.cve.org/CVERecord?id=CVE-2022-46342 https://www.cve.org/CVERecord?id=CVE-2022-46343 https://www.cve.org/CVERecord?id=CVE-2022-46344 https://www.cve.org/CVERecord?id=CVE-2023-0494 https://www.cve.org/CVERecord?id=CVE-2023-1393 https://www.cve.org/CVERecord?id=CVE-2023-5367 https://www.cve.org/CVERecord?id=CVE-2023-5380 (* Security fix *)
43 lines
1.8 KiB
Diff
43 lines
1.8 KiB
Diff
From dfd057996b26420309c324ec844a5ba6dd07eda3 Mon Sep 17 00:00:00 2001
|
|
From: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
|
|
Date: Sat, 2 Jul 2022 14:17:18 -0700
|
|
Subject: xquartz: Fix a possible crash when editing the Application menu due
|
|
to mutaing immutable arrays
|
|
|
|
Crashing on exception: -[__NSCFArray replaceObjectAtIndex:withObject:]: mutating method sent to immutable object
|
|
|
|
Application Specific Backtrace 0:
|
|
0 CoreFoundation 0x00007ff80d2c5e9b __exceptionPreprocess + 242
|
|
1 libobjc.A.dylib 0x00007ff80d027e48 objc_exception_throw + 48
|
|
2 CoreFoundation 0x00007ff80d38167b _CFThrowFormattedException + 194
|
|
3 CoreFoundation 0x00007ff80d382a25 -[__NSCFArray removeObjectAtIndex:].cold.1 + 0
|
|
4 CoreFoundation 0x00007ff80d2e6c0b -[__NSCFArray replaceObjectAtIndex:withObject:] + 119
|
|
5 X11.bin 0x00000001003180f9 -[X11Controller tableView:setObjectValue:forTableColumn:row:] + 169
|
|
|
|
Fixes: https://github.com/XQuartz/XQuartz/issues/267
|
|
Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu@apple.com>
|
|
---
|
|
hw/xquartz/X11Controller.m | 7 +++++--
|
|
1 file changed, 5 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/hw/xquartz/X11Controller.m b/hw/xquartz/X11Controller.m
|
|
index 3b55bb6a5..e9a939312 100644
|
|
--- a/hw/xquartz/X11Controller.m
|
|
+++ b/hw/xquartz/X11Controller.m
|
|
@@ -469,8 +469,11 @@ extern char *bundle_id_prefix;
|
|
self.table_apps = table_apps;
|
|
|
|
NSArray * const apps = self.apps;
|
|
- if (apps != nil)
|
|
- [table_apps addObjectsFromArray:apps];
|
|
+ if (apps != nil) {
|
|
+ for (NSArray <NSString *> * row in apps) {
|
|
+ [table_apps addObject:row.mutableCopy];
|
|
+ }
|
|
+ }
|
|
|
|
columns = [apps_table tableColumns];
|
|
[[columns objectAtIndex:0] setIdentifier:@"0"];
|
|
--
|
|
cgit v1.2.1
|
|
|