Added an explicit initialisation to a stack buffer to prevent an (harmless) uninitialised read reported by valgrind.
This commit is contained in:
parent
eaa0d38fa8
commit
3c6823cad7
1 changed files with 1 additions and 0 deletions
|
|
@ -150,6 +150,7 @@ br_hmac_outCT(const br_hmac_context *ctx,
|
||||||
* Hash state is obtained whenever we reach a full block. This
|
* Hash state is obtained whenever we reach a full block. This
|
||||||
* is the result we want if and only if u == kz.
|
* is the result we want if and only if u == kz.
|
||||||
*/
|
*/
|
||||||
|
memset(tmp2, 0, sizeof tmp2);
|
||||||
for (u = 0; u < km; u ++) {
|
for (u = 0; u < km; u ++) {
|
||||||
uint32_t v;
|
uint32_t v;
|
||||||
uint32_t d, e, x0, x1;
|
uint32_t d, e, x0, x1;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue