Avoid overrun. Coverity ID 60.
This commit is contained in:
parent
44907e6064
commit
f6301f6888
1 changed files with 1 additions and 1 deletions
|
@ -190,7 +190,7 @@ void AES_cfbr_encrypt_block(const unsigned char *in,unsigned char *out,
|
|||
unsigned char *ivec,const int enc)
|
||||
{
|
||||
int n,rem,num;
|
||||
unsigned char ovec[AES_BLOCK_SIZE*2];
|
||||
unsigned char ovec[AES_BLOCK_SIZE*2 + 1]; /* +1 because we dererefence (but don't use) one byte off the end */
|
||||
|
||||
if (nbits<=0 || nbits>128) return;
|
||||
|
||||
|
|
Loading…
Reference in a new issue