mirror of
https://github.com/ARMmbed/mbedtls.git
synced 2025-07-13 19:56:44 +08:00

Modify the function mbedtls_x509_csr_parse_der() so that it checks the parsed CSR version integer before it increments the value. This prevents a potential signed integer overflow, as these have undefined behaviour in the C standard.