Browse Source

fix HD() misuse; from brent cook

OPENBSD_5_6
deraadt 10 years ago
parent
commit
0dedf80951
2 changed files with 4 additions and 4 deletions
  1. +2
    -2
      src/lib/libcrypto/arc4random/getentropy_linux.c
  2. +2
    -2
      src/lib/libcrypto/crypto/getentropy_linux.c

+ 2
- 2
src/lib/libcrypto/arc4random/getentropy_linux.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: getentropy_linux.c,v 1.13 2014/06/25 17:04:18 beck Exp $ */
/* $OpenBSD: getentropy_linux.c,v 1.14 2014/06/26 13:48:11 deraadt Exp $ */
/*
* Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@ -465,7 +465,7 @@ getentropy_fallback(void *buf, size_t len)
#ifdef AT_BASE
p = (char *) getauxval(AT_BASE);
if (p)
HD(p, sizeof(p));
HD(p);
#endif
SHA512_Final(results, &ctx);


+ 2
- 2
src/lib/libcrypto/crypto/getentropy_linux.c View File

@ -1,4 +1,4 @@
/* $OpenBSD: getentropy_linux.c,v 1.13 2014/06/25 17:04:18 beck Exp $ */
/* $OpenBSD: getentropy_linux.c,v 1.14 2014/06/26 13:48:11 deraadt Exp $ */
/*
* Copyright (c) 2014 Theo de Raadt <deraadt@openbsd.org>
@ -465,7 +465,7 @@ getentropy_fallback(void *buf, size_t len)
#ifdef AT_BASE
p = (char *) getauxval(AT_BASE);
if (p)
HD(p, sizeof(p));
HD(p);
#endif
SHA512_Final(results, &ctx);


Loading…
Cancel
Save