aboutsummaryrefslogtreecommitdiff
path: root/benchmark
diff options
context:
space:
mode:
authorDmitry Belyavskiy <beldmit@gmail.com>2018-12-29 15:01:32 +0300
committerDmitry Belyavskiy <beldmit@gmail.com>2018-12-29 15:01:32 +0300
commit6087586263eb1351a5fa370b233b8d747d0e1f59 (patch)
tree466a5c73b04cb2ec3cbb3a309df0feac2fabe908 /benchmark
parentb9935fbf77164cf491fb12df74f7a85e877813cd (diff)
downloadgost-engine-6087586263eb1351a5fa370b233b8d747d0e1f59.zip
gost-engine-6087586263eb1351a5fa370b233b8d747d0e1f59.tar.gz
gost-engine-6087586263eb1351a5fa370b233b8d747d0e1f59.tar.bz2
Some PVS Studio nits
Diffstat (limited to 'benchmark')
-rw-r--r--benchmark/sign.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/benchmark/sign.c b/benchmark/sign.c
index 417d8dd..2d1d786 100644
--- a/benchmark/sign.c
+++ b/benchmark/sign.c
@@ -131,6 +131,10 @@ int main(int argc, char **argv)
fflush(stdout);
siglen = EVP_PKEY_size(pkey);
sigbuf = malloc(siglen * cycles);
+ if (!sigbuf) {
+ fprintf(stderr, "No tests were run, malloc failure.\n");
+ exit(1);
+ }
for (pass = 0; pass < 2; pass++) {
struct timespec ts;