]> www.wagner.pp.ru Git - openssl-gost/engine.git/commit
Fix false positive static analysis issue #2
authorSergei Ianovich <sergei.ianovich@ya.ru>
Tue, 30 Jul 2024 14:55:22 +0000 (14:55 +0000)
committerSergei Ianovich <sergei.ianovich@ya.ru>
Tue, 30 Jul 2024 14:55:22 +0000 (14:55 +0000)
commita2ddce6cbbcf7dfe726278f6d2c0da6a09350e6d
treea12b4d78ec162307799203e6af6c74b20e2d95f4
parent5cf4af80f03f7be62a34310a31de60852a0c1b2c
Fix false positive static analysis issue #2

Infer complains:
```
test_digest.c:662: error: Dead Store
  The value written to `&p` is never used.
  660.     if (t->truncate) {
  661.         outsize = t->truncate;
  662.  params[p++] = OSSL_PARAM_construct_size_t("size", &outsize);
               ^
  663.     }
  664.     else
```

Altough the complain is false positive, fixing it will allow for future
use of the tools in automated tests.
test_digest.c