Fix length check writing status request extension
authorMatt Caswell <matt@openssl.org>
Fri, 14 Oct 2016 10:49:06 +0000 (11:49 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 28 Oct 2016 08:40:55 +0000 (09:40 +0100)
commit8c9365a690e2d5f0c49f3d9a3d41973ed9dcedcc
treec9957e7fe2ed819b7f92f23c06d5bf9be78b7f75
parent3bceb47a272cc930c48b88743c4734a891b1c09a
Fix length check writing status request extension

The status request extension did not correctly check its length, meaning
that writing the extension could go 2 bytes beyond the buffer size. In
practice this makes little difference because, due to logic in buffer.c the
buffer is actually over allocated by approximately 5k!

Issue reported by Guido Vranken.

Reviewed-by: Rich Salz <rsalz@openssl.org>
ssl/t1_lib.c