pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

coeurl: added a patch that fixes an application crash during destructor call.



Module Name:	pkgsrc-wip
Committed By:	Stepan Ipatov <st.ipatov%gmail.com@localhost>
Pushed By:	st.ipatov
Date:		Sat Nov 22 07:48:00 2025 +0000
Changeset:	ea2aa87215c847c424dbb8fd4744a7a0fc3e8703

Modified Files:
	coeurl/Makefile
	coeurl/distinfo
Added Files:
	coeurl/patches/patch-lib_client.cpp

Log Message:
coeurl: added a patch that fixes an application crash during destructor call.

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=ea2aa87215c847c424dbb8fd4744a7a0fc3e8703

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 coeurl/Makefile                     |  1 +
 coeurl/distinfo                     |  1 +
 coeurl/patches/patch-lib_client.cpp | 15 +++++++++++++++
 3 files changed, 17 insertions(+)

diffs:
diff --git a/coeurl/Makefile b/coeurl/Makefile
index df1c8694f2..25a6687ea4 100644
--- a/coeurl/Makefile
+++ b/coeurl/Makefile
@@ -2,6 +2,7 @@
 
 DISTNAME=	coeurl-v0.3.1
 PKGNAME=	${DISTNAME:S,-v,-,}
+PKGREVISION=	1
 CATEGORIES=	www
 MASTER_SITES=	https://nheko.im/nheko-reborn/coeurl/-/archive/v0.3.1/
 
diff --git a/coeurl/distinfo b/coeurl/distinfo
index d4958fe7ab..b1b14c8d2e 100644
--- a/coeurl/distinfo
+++ b/coeurl/distinfo
@@ -3,3 +3,4 @@ $NetBSD$
 BLAKE2s (coeurl-v0.3.1.tar.gz) = 7f8d387fce3d0a69b65c29522a39712d80a56a7ce4c6e19f8c9c6aedc9a07b2d
 SHA512 (coeurl-v0.3.1.tar.gz) = 2232a09d435cc0bc7897f452a7c144474aaac582d88c1f84c2ae38a3b6bc034228c8b257b3efa1806d26c8694ea5bed6bbb68f34d6691c22dcaad0e0508810c7
 Size (coeurl-v0.3.1.tar.gz) = 52996 bytes
+SHA1 (patch-lib_client.cpp) = 35538c5c934dbf7a00b3c5376ac2af502226b66d
diff --git a/coeurl/patches/patch-lib_client.cpp b/coeurl/patches/patch-lib_client.cpp
new file mode 100644
index 0000000000..5f3d307cc2
--- /dev/null
+++ b/coeurl/patches/patch-lib_client.cpp
@@ -0,0 +1,15 @@
+$NetBSD$
+
+Fix for a use-after-free error causing a SIGSEGV crash during destructor call.
+
+--- lib/client.cpp.orig	2025-11-22 07:37:21.756132969 +0000
++++ lib/client.cpp
+@@ -250,6 +250,8 @@ Client::~Client() {
+     event_del(&this->stop_event);
+     event_del(&this->cancel_requests_timer);
+     event_base_free(this->evbase);
++    curl_multi_setopt(this->multi, CURLMOPT_SOCKETFUNCTION, NULL);
++    curl_multi_setopt(this->multi, CURLMOPT_TIMERFUNCTION, NULL);
+     curl_multi_cleanup(this->multi);
+ }
+ 


Home | Main Index | Thread Index | Old Index