Fix undefined behaviour when printing the X509 and CRL version
authorKurt Roeckx <kurt@roeckx.be>
Sat, 14 Jan 2017 15:10:25 +0000 (16:10 +0100)
committerKurt Roeckx <kurt@roeckx.be>
Sun, 15 Jan 2017 21:22:44 +0000 (22:22 +0100)
commitc565e99a14bf43f11d006d36612fe7943f9e817f
tree23020d57c00bb455bd361c492b7339440e446ccc
parent39ff4d7adde80b87c994649559921b9189b9612f
Fix undefined behaviour when printing the X509 and CRL version

Found by oss-fuzz

Reviewed-by: Andy Polyakov <appro@openssl.org>
GH: #2231
(cherry picked from commit c2ce477f1f3c0a98802fb087b0cf4b0a99ea2b1d)
crypto/x509/t_crl.c
crypto/x509/t_req.c