public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Jindrich Novy <jnovy@fedoraproject.org>
To: git-commits@fedoraproject.org
Subject: [rpms/curl] curl-v8.23.0-3: - update to 7.19.4 (fixes CVE-2009-0037)
Date: Tue, 03 Nov 2026 12:33:05 GMT	[thread overview]
Message-ID: <179370918537.1.161427979671179661.rpms-curl-5144908d02d5@fedoraproject.org> (raw)

            A new commit has been pushed.

            Repo   : rpms/curl
            Branch : curl-v8.23.0-3
            Commit : 5144908d02d532cef3625595ef40cc3f4e0f129a
            Author : Jindrich Novy <jnovy@fedoraproject.org>
            Date   : 2009-03-03T07:08:27+00:00
            Stats  : +47/-29 in 5 file(s)
            URL    : https://src.fedoraproject.org/rpms/curl/c/5144908d02d532cef3625595ef40cc3f4e0f129a?branch=curl-v8.23.0-3

            Log:
            - update to 7.19.4 (fixes CVE-2009-0037)
- fix leak in curl_easy* functions, thanks to Kamil Dudka
- drop nss-fix patch, applied upstream

---
diff --git a/.cvsignore b/.cvsignore
index 7968136..5cafa0e 100644
--- a/.cvsignore
+++ b/.cvsignore
@@ -1,2 +1 @@
-curl-7.18.2.tar.bz2
-curl-7.19.3.tar.bz2
+curl-7.19.4.tar.bz2

diff --git a/curl-7.19.3-nss-fix.patch b/curl-7.19.3-nss-fix.patch
deleted file mode 100644
index 03c72e4..0000000
--- a/curl-7.19.3-nss-fix.patch
+++ /dev/null
@@ -1,22 +0,0 @@
-diff -ruNp curl-7.19.3.orig/lib/nss.c curl-7.19.3/lib/nss.c
---- curl-7.19.3.orig/lib/nss.c	2009-01-07 15:12:01.000000000 +0100
-+++ curl-7.19.3/lib/nss.c	2009-02-16 11:39:41.912075708 +0100
-@@ -1140,7 +1140,7 @@ CURLcode Curl_nss_connect(struct connect
-       n = strrchr(data->set.str[STRING_CERT], '/');
-       if(n) {
-         n++; /* skip last slash */
--        nickname = aprintf(nickname, "PEM Token #%d:%s", 1, n);
-+        nickname = aprintf("PEM Token #%d:%s", 1, n);
-         if(!nickname)
-           return CURLE_OUT_OF_MEMORY;
- 
-@@ -1171,7 +1171,8 @@ CURLcode Curl_nss_connect(struct connect
- 
-     if(SSL_GetClientAuthDataHook(model,
-                                  (SSLGetClientAuthData) SelectClientCert,
--                                 (void *)connssl) != SECSuccess) {
-+                                 (void *)connssl->client_nickname) !=
-+       SECSuccess) {
-       curlerr = CURLE_SSL_CERTPROBLEM;
-       goto error;
-     }

diff --git a/curl-7.19.4-easy-leak.patch b/curl-7.19.4-easy-leak.patch
new file mode 100644
index 0000000..bb02547
--- /dev/null
+++ b/curl-7.19.4-easy-leak.patch
@@ -0,0 +1,36 @@
+diff -up curl-7.19.4/lib/easy.c.easy-leak curl-7.19.4/lib/easy.c
+--- curl-7.19.4/lib/easy.c.easy-leak	2009-01-29 21:41:51.000000000 +0100
++++ curl-7.19.4/lib/easy.c	2009-03-03 07:54:58.000000000 +0100
+@@ -352,13 +352,11 @@ CURL *curl_easy_init(void)
+   struct SessionHandle *data;
+ 
+   /* Make sure we inited the global SSL stuff */
+-  if(!initialized) {
+-    res = curl_global_init(CURL_GLOBAL_DEFAULT);
+-    if(res) {
+-      /* something in the global init failed, return nothing */
+-      DEBUGF(fprintf(stderr, "Error: curl_global_init failed\n"));
+-      return NULL;
+-    }
++  res = curl_global_init(CURL_GLOBAL_DEFAULT);
++  if(res) {
++    /* something in the global init failed, return nothing */
++    DEBUGF(fprintf(stderr, "Error: curl_global_init failed\n"));
++    return NULL;
+   }
+ 
+   /* We use curl_open() with undefined URL so far */
+@@ -549,10 +547,10 @@ void curl_easy_cleanup(CURL *curl)
+ {
+   struct SessionHandle *data = (struct SessionHandle *)curl;
+ 
+-  if(!data)
+-    return;
++  if(data)
++    Curl_close(data);
+ 
+-  Curl_close(data);
++  curl_global_cleanup();
+ }
+ 
+ /*

diff --git a/curl.spec b/curl.spec
index 6720c42..9aa6e95 100644
--- a/curl.spec
+++ b/curl.spec
@@ -1,14 +1,14 @@
 Summary: A utility for getting files from remote servers (FTP, HTTP, and others)
 Name: curl
-Version: 7.19.3
-Release: 2%{?dist}
+Version: 7.19.4
+Release: 1%{?dist}
 License: MIT
 Group: Applications/Internet
 Source: http://curl.haxx.se/download/%{name}-%{version}.tar.bz2
 Patch1: curl-7.15.3-multilib.patch
 Patch2: curl-7.16.0-privlibs.patch
 Patch3: curl-7.17.1-badsocket.patch
-Patch4: curl-7.19.3-nss-fix.patch
+Patch4: curl-7.19.4-easy-leak.patch
 Provides: webclient
 URL: http://curl.haxx.se/
 BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
@@ -49,7 +49,7 @@ use cURL's capabilities internally.
 %patch1 -p1 -b .multilib
 %patch2 -p1 -b .privlibs
 %patch3 -p1 -b .badsocket
-%patch4 -p1 -b .nssfix
+%patch4 -p1 -b .easy-leak
 
 # Convert docs to UTF-8
 for f in CHANGES README; do
@@ -118,6 +118,11 @@ rm -rf $RPM_BUILD_ROOT
 %{_datadir}/aclocal/libcurl.m4
 
 %changelog
+* Tue Mar 03 2009 Jindrich Novy <jnovy@redhat.com> 7.19.4-1
+- update to 7.19.4 (fixes CVE-2009-0037)
+- fix leak in curl_easy* functions, thanks to Kamil Dudka
+- drop nss-fix patch, applied upstream
+
 * Tue Feb 24 2009 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 7.19.3-2
 - Rebuilt for https://fedoraproject.org/wiki/Fedora_11_Mass_Rebuild
 

diff --git a/sources b/sources
index 9e320af..988cd13 100644
--- a/sources
+++ b/sources
@@ -1 +1 @@
-10eb8c13350c735eff20d7b4530be8cd  curl-7.19.3.tar.bz2
+2734167c1e5f7ce6be99b75d2d371d85  curl-7.19.4.tar.bz2

                 reply	other threads:[~2026-11-03 12:33 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=179370918537.1.161427979671179661.rpms-curl-5144908d02d5@fedoraproject.org \
    --to=jnovy@fedoraproject.org \
    --cc=git-commits@fedoraproject.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox