diff options
author | Ben Laurie <ben@openssl.org> | 2007-04-05 15:45:58 +0000 |
---|---|---|
committer | Ben Laurie <ben@openssl.org> | 2007-04-05 15:45:58 +0000 |
commit | f6301f6888096a65919e07a3f9b37c2b672517c4 (patch) | |
tree | 025ded80bca0a9fa0e83ad19a1104df1fd446c79 /crypto/aes/aes_cfb.c | |
parent | 44907e6064f54121f62c610f55cba62b2b555e00 (diff) | |
download | openssl-f6301f6888096a65919e07a3f9b37c2b672517c4.tar.gz |
Avoid overrun. Coverity ID 60.
Diffstat (limited to 'crypto/aes/aes_cfb.c')
-rw-r--r-- | crypto/aes/aes_cfb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/aes/aes_cfb.c b/crypto/aes/aes_cfb.c index 5ee3e7277b..064b0d8b13 100644 --- a/crypto/aes/aes_cfb.c +++ b/crypto/aes/aes_cfb.c @@ -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; |