]> git.ipfire.org Git - thirdparty/openssl.git/commitdiff
params: clean up TODO
authorPauli <ppzgs1@gmail.com>
Tue, 16 Mar 2021 00:00:25 +0000 (10:00 +1000)
committerPauli <ppzgs1@gmail.com>
Wed, 17 Mar 2021 00:33:45 +0000 (10:33 +1000)
The TODO being reworked to just be a comment.

Fixes #14374

Reviewed-by: Shane Lontis <shane.lontis@oracle.com>
(Merged from https://github.com/openssl/openssl/pull/14565)

crypto/params_from_text.c

index 3ff94c7475f7c7d508b310e6fb9bae2515dc1ae5..bf3ca616410fca785a6a8e81ba25b4c1c3648096 100644 (file)
@@ -75,8 +75,8 @@ static int prepare_from_text(const OSSL_PARAM *paramdefs, const char *key,
         *buf_n = (buf_bits + 7) / 8;
 
         /*
-         * TODO(v3.0) is this the right way to do this?  This code expects
-         * a zero data size to simply mean "arbitrary size".
+         * A zero data size means "arbitrary size", so only do the
+         * range checking if a size is specified.
          */
         if (p->data_size > 0) {
             if (buf_bits > p->data_size * 8