diff options
author | des <des@FreeBSD.org> | 2015-12-16 09:17:07 +0000 |
---|---|---|
committer | des <des@FreeBSD.org> | 2015-12-16 09:17:07 +0000 |
commit | f487c94c08bac0f4959d84ed0dc62e5ecd215aee (patch) | |
tree | 36ea2cf0bc84393cf3cfe58ee80c6c737bf3100c /lib/libthr/thread/thr_init.c | |
parent | b2f446313468f5dd643849b55606deda0852499b (diff) | |
download | FreeBSD-src-f487c94c08bac0f4959d84ed0dc62e5ecd215aee.zip FreeBSD-src-f487c94c08bac0f4959d84ed0dc62e5ecd215aee.tar.gz |
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
Diffstat (limited to 'lib/libthr/thread/thr_init.c')
0 files changed, 0 insertions, 0 deletions