Fix undefined behaviour when printing the X509 serial
authorKurt Roeckx <kurt@roeckx.be>
Sat, 14 Jan 2017 14:58:42 +0000 (15:58 +0100)
committerKurt Roeckx <kurt@roeckx.be>
Sun, 15 Jan 2017 21:22:40 +0000 (22:22 +0100)
commitb17d15f07ab02b8449db096eaafa56e93b242dee
tree9a941f07f8641b08773f92d5358c7fc2395150b1
parentba2efdc9ed75659a75d8b8c3cd4ae5bd3c181c65
Fix undefined behaviour when printing the X509 serial

Found by afl

Reviewed-by: Andy Polyakov <appro@openssl.org>
GH: #2230
(cherry picked from commit 244d7b288f2b9ab7f6a2dbf068eccd6e20d9eef6)
crypto/x509/t_x509.c