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:43:41 +0000 (09:43 +0100)
commit83a1d4b2011ff3a7798250902bdacbca6e1766c0
tree24740cde1c7a47251f1cf9ae9145735425b71533
parent57aa2f154e3e0f427be59497f58092dd3ec0528a
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