[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [Git][tpo/applications/tor-browser][tor-browser-115.7.0esr-13.5-1] Bug 1867408 - NSS backport



Title: GitLab

ma1 pushed to branch tor-browser-115.7.0esr-13.5-1 at The Tor Project / Applications / Tor Browser

Commits:

  • cbeecf99
    by hackademix at 2024-01-22T16:29:11+01:00
    Bug 1867408 - NSS backport
    

1 changed file:

Changes:

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

  • _______________________________________________
    tor-commits mailing list
    tor-commits@xxxxxxxxxxxxxxxxxxxx
    https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits