Browse Source

fix varargs error

When compiling with "-g -O0" valgrind complained about "Conditional jump
or move depends on uninitialised value(s)", c.f. e.g. [1]

[1] https://travis-ci.org/libtom/libtomcrypt/jobs/588690930
Steffen Jaeckel 6 years ago
parent
commit
e9ff57d5d7
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/misc/bcrypt/bcrypt.c

+ 1 - 1
src/misc/bcrypt/bcrypt.c

@@ -144,7 +144,7 @@ int bcrypt_pbkdf_openbsd(const          char *password, unsigned long password_l
        x = MAXBLOCKSIZE;
        if ((err = hash_memory_multi(hash_idx, buf[0], &x,
                                     salt, salt_len,
-                                    blkbuf, 4,
+                                    blkbuf, 4uL,
                                     NULL, 0)) != CRYPT_OK) {
           goto LBL_ERR;
        }