From e4eefc716a16fd7a879189b5322b9275b5b80b9e Mon Sep 17 00:00:00 2001 From: Jerry Yu Date: Sat, 9 Oct 2021 10:40:40 +0800 Subject: [PATCH] Improve document for chk_buf_read_ptr Signed-off-by: Jerry Yu --- library/ssl_misc.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/library/ssl_misc.h b/library/ssl_misc.h index 4205a477c1..6b33cb5dbc 100644 --- a/library/ssl_misc.h +++ b/library/ssl_misc.h @@ -414,7 +414,9 @@ static inline int mbedtls_ssl_chk_buf_ptr( const uint8_t *cur, * greater or equal than a needed length. If it is not the case, it * returns #MBEDTLS_ERR_SSL_DECODE_ERROR error and pends a * #MBEDTLS_SSL_ALERT_MSG_DECODE_ERROR alert message. - * It is used to guaranteed remaining length. + * + * This is a function-like macro. It is guaranteed to evaluate each + * argument exactly once. * * \param cur Pointer to the current position in the buffer. * \param end Pointer to one past the end of the buffer.