From d73101266d78a879c30071bb3b744820b5a42485 Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Tue, 18 Dec 2018 18:11:42 +0000 Subject: [PATCH] Don't promise that passing a NULL to mbedtls_mpi_read_string works --- include/mbedtls/bignum.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/mbedtls/bignum.h b/include/mbedtls/bignum.h index e0c863f7b..d3337d2fb 100644 --- a/include/mbedtls/bignum.h +++ b/include/mbedtls/bignum.h @@ -412,8 +412,7 @@ int mbedtls_mpi_read_string( mbedtls_mpi *X, int radix, const char *s ); * \param X The source MPI. This must point to an initialized MPI. * \param radix The numeric base of the output string. * \param buf The buffer to write the string to. This must be writable - * buffer of length \p buflen Bytes. It May be \c NULL if - * `buflen == 0`. + * buffer of length \p buflen Bytes. * \param buflen The available size in Bytes of \p buf. * \param olen The address at which to store the length of the string * written, including the final \c NULL byte. This must