[tbb-commits] [Git][tpo/applications/mullvad-browser][mullvad-browser-115.7.0esr-13.0-1] Bug 1867408 - NSS backport

ma1 (@ma1) git at gitlab.torproject.org
Mon Jan 22 15:57:55 UTC 2024



ma1 pushed to branch mullvad-browser-115.7.0esr-13.0-1 at The Tor Project / Applications / Mullvad Browser


Commits:
e0af4349 by hackademix at 2024-01-22T16:57:26+01:00
Bug 1867408 - NSS backport

- - - - -


1 changed file:

- security/nss/lib/ssl/sslsecur.c


Changes:

=====================================
security/nss/lib/ssl/sslsecur.c
=====================================
@@ -488,7 +488,12 @@ ssl_SendSavedWriteData(sslSocket *ss)
         if (rv < 0) {
             return rv;
         }
-        ss->pendingBuf.len -= rv;
+        if (rv > ss->pendingBuf.len) {
+            PORT_Assert(0); /* This shouldn't happen */
+            ss->pendingBuf.len = 0;
+        } else {
+            ss->pendingBuf.len -= rv;
+        }
         if (ss->pendingBuf.len > 0 && rv > 0) {
             /* UGH !! This shifts the whole buffer down by copying it */
             PORT_Memmove(ss->pendingBuf.buf, ss->pendingBuf.buf + rv,



View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/e0af43495ec05b2f0b4a4f035ca4ca6935b54307

-- 
View it on GitLab: https://gitlab.torproject.org/tpo/applications/mullvad-browser/-/commit/e0af43495ec05b2f0b4a4f035ca4ca6935b54307
You're receiving this email because of your account on gitlab.torproject.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.torproject.org/pipermail/tbb-commits/attachments/20240122/4db4acfc/attachment-0001.htm>


More information about the tbb-commits mailing list