• Janos Follath's avatar
    Fix buffer overread in mbedtls_x509_get_time() · 87c98074
    Janos Follath authored
    A heap overread might happen when parsing malformed certificates.
    Reported by Peng Li and Yueh-Hsun Lin.
    
    Refactoring the parsing fixes the problem. This commit applies the
    relevant part of the OpenVPN contribution applied to mbed TLS 1.3
    in commit 17da9dd8.
    87c98074