coverity 1462577: Incorrect expression
authorPauli <paul.dale@oracle.com>
Sun, 26 Apr 2020 21:40:17 +0000 (07:40 +1000)
committerPauli <paul.dale@oracle.com>
Thu, 30 Apr 2020 10:21:16 +0000 (20:21 +1000)
Reviewed-by: Tomas Mraz <tmraz@fedoraproject.org>
(Merged from https://github.com/openssl/openssl/pull/11651)

test/param_build_test.c

index a253f063181b07d582fcc489c8d937040841f1b7..d2cf78dc972e2d56316a4815347677869d0430b2 100644 (file)
@@ -205,7 +205,7 @@ static int builder_limit_test(void)
     
     for (i = 0; i < n; i++) {
         names[i][0] = 'A' + (i / 26) - 1;
-        names[i][0] = 'a' + (i % 26) - 1;
+        names[i][1] = 'a' + (i % 26) - 1;
         names[i][2] = '\0';
         if (!TEST_true(OSSL_PARAM_BLD_push_int(bld, names[i], 3 * i + 1)))
             goto err;