Ensure we have length checks for all extensions
authorMatt Caswell <matt@openssl.org>
Fri, 14 Oct 2016 12:07:00 +0000 (13:07 +0100)
committerMatt Caswell <matt@openssl.org>
Fri, 28 Oct 2016 08:43:41 +0000 (09:43 +0100)
commita520723f29aac6598ff0d69e34f5e9b88213e511
tree5f793c868af5506b8ba8ae520d12ddab1316b26f
parent83a1d4b2011ff3a7798250902bdacbca6e1766c0
Ensure we have length checks for all extensions

The previous commit inspired a review of all the length checks for the
extension adding code. This adds more robust checks and adds checks where
some were missing previously. The real solution for this is to use WPACKET
which is currently in master - but that cannot be applied to release
branches.

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