mirror of
https://github.com/stefanberger/libtpms
synced 2026-01-08 12:24:40 +00:00
tpm2: Fix a potential overflow expression (coverity)
Signed-off-by: Stefan Berger <stefanb@linux.ibm.com>
This commit is contained in:
parent
3b047cb5fe
commit
77950dd917
@ -426,7 +426,7 @@ BnSetBit(
|
||||
// Grow the number if necessary to set the bit.
|
||||
while(bn->size <= offset)
|
||||
bn->d[bn->size++] = 0;
|
||||
bn->d[offset] |= (crypt_uword_t)(1 << RADIX_MOD(bitNum));
|
||||
bn->d[offset] |= ((crypt_uword_t)1 << RADIX_MOD(bitNum));
|
||||
return TRUE;
|
||||
}
|
||||
/* 10.2.3.3.17 BnTestBit() */
|
||||
|
||||
Loading…
Reference in New Issue
Block a user