HomeFreeBSD

Reset bufpos to 0 immediately after refilling the buffer. Otherwise, we

Description

Reset bufpos to 0 immediately after refilling the buffer. Otherwise, we
risk leaving the connection in an indeterminate state if the server fails
to send a chunk delimiter. Depending on the application and on the sizes
of the preceding chunks, the result can be anything from missing data to a
segfault. With this patch, it will be reported as a protocol error.

PR: 204771
MFC after: 1 week

Details

Provenance
desAuthored on
Parents
rS292329: Fix ARP reply handling changed in r286955.
Branches
Unknown
Tags
Unknown