Changeset 4a22ee6 in mod_gnutls


Ignore:
Timestamp:
Jan 21, 2020, 2:53:14 PM (10 months ago)
Author:
Fiona Klute <fiona.klute@…>
Branches:
master, proxy-ticket
Children:
9db4dcd
Parents:
1c76ea7
Message:

Fix speculative reads using cached data

The rollback buffer (ctxt->input_cbuf) write must receive the full
length of buffered data, including any that might have been buffered
from a previous speculative read. The previous "rc" holds only the
amount of freshly received data, "*len" is the total amount of
retrieved data.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/gnutls_io.c

    r1c76ea7 r4a22ee6  
    252252                /* We want to rollback this read. */
    253253                char_buffer_write(&ctxt->input_cbuf, buf,
    254                         rc);
     254                                  *len);
    255255            }
    256256            return ctxt->input_rc;
Note: See TracChangeset for help on using the changeset viewer.