public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: John Dennis <jdennis@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/jss] pqc: Resolves: bug #654657 - Incorrect socket accept error message due to bad pointer arithmetic
Date: Tue, 28 Jul 2026 16:48:13 GMT	[thread overview]
Message-ID: <178525729387.1.6232716990214081543.rpms-jss-af4d29e93a75@fedoraproject.org> (raw)

A new commit has been pushed.

Repo   : rpms/jss
Branch : pqc
Commit : af4d29e93a751b56bc49859e2200b0483df67fde
Author : John Dennis <jdennis@redhat.com>
Date   : 2010-12-06T15:09:52-05:00
Stats  : +34/-1 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/jss/c/af4d29e93a751b56bc49859e2200b0483df67fde?branch=pqc

Log:
Resolves: bug #654657 - Incorrect socket accept error message due to bad pointer arithmetic

---
diff --git a/jss-bad-error-string-pointer.patch b/jss-bad-error-string-pointer.patch
new file mode 100644
index 0000000..05244c3
--- /dev/null
+++ b/jss-bad-error-string-pointer.patch
@@ -0,0 +1,27 @@
+--- jss-4.2.6.orig/mozilla/security/jss/org/mozilla/jss/ssl/SSLServerSocket.c	2010-11-17 18:54:56.000000000 -0500
++++ jss-4.2.6/mozilla/security/jss/org/mozilla/jss/ssl/SSLServerSocket.c	2010-11-18 09:46:34.000000000 -0500
+@@ -124,20 +124,16 @@
+             /* Clean up after PR_interrupt. */
+             PR_NT_CancelIo(sock->fd);
+ #endif
+-            JSSL_throwSSLSocketException(env, 
+-                "Accept operation interrupted with error code " + err);
++            JSSL_throwSSLSocketException(env, "Accept operation interrupted");
+         } else if( err == PR_IO_TIMEOUT_ERROR ) {
+ #ifdef WINNT
+             PR_NT_CancelIo(sock->fd);
+ #endif
+-            JSSL_throwSSLSocketException(env, 
+-                "Accept operation timed out with error code " + err);
++            JSSL_throwSSLSocketException(env, "Accept operation timed out");
+         } else if( err == PR_IO_ERROR ) {
+-            JSSL_throwSSLSocketException(env, 
+-                "Accept operation received IO error with error code " + err);
++            JSSL_throwSSLSocketException(env, "Accept operation received IO error");
+         } else {
+-            JSSL_throwSSLSocketException(env, 
+-                "Accept operation failed with error code " + err);
++            JSSL_throwSSLSocketException(env, "Accept operation failed");
+         }
+         goto finish;
+     }

diff --git a/jss.spec b/jss.spec
index 032e397..b9a28a5 100644
--- a/jss.spec
+++ b/jss.spec
@@ -1,6 +1,6 @@
 Name:           jss
 Version:        4.2.6
-Release:        8%{?dist}
+Release:        9%{?dist}
 Summary:        Java Security Services (JSS)
 
 Group:          System Environment/Libraries
@@ -30,6 +30,7 @@ Patch5:         jss-loadlibrary.patch
 Patch6:         jss-ocspSettings.patch
 Patch7:         jss-ECC_keygen_byCurveName.patch
 Patch8:         jss-VerifyCertificate.patch
+Patch9:         jss-bad-error-string-pointer.patch
 
 
 %description
@@ -55,6 +56,7 @@ This package contains the API documentation for JSS.
 %patch6 -p1
 %patch7 -p1
 %patch8 -p1
+%patch9 -p1
 
 %build
 [ -z "$JAVA_HOME" ] && export JAVA_HOME=%{_jvmdir}/java
@@ -150,6 +152,10 @@ rm -rf $RPM_BUILD_ROOT
 
 
 %changelog
+* Mon Dec  6 2010 John Dennis <jdennis@redhat.com> - 4.2.6-9
+- Resolves: bug #654657 - Incorrect socket accept error message due to bad pointer arithmetic
+  added patch jss-bad-error-string-pointer.patch
+
 * Mon Nov 1 2010 Christina Fu <cfu@redhat.com> 4.2.6-8
 - Bugzilla Bug # 647364 - Expose updated certificate verification function in JSS
 

                 reply	other threads:[~2026-07-28 16:48 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=178525729387.1.6232716990214081543.rpms-jss-af4d29e93a75@fedoraproject.org \
    --to=jdennis@redhat.com \
    --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