projects
/
oweals
/
openssl.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44907e6
)
Avoid overrun. Coverity ID 60.
author
Ben Laurie
<ben@openssl.org>
Thu, 5 Apr 2007 15:45:58 +0000
(15:45 +0000)
committer
Ben Laurie
<ben@openssl.org>
Thu, 5 Apr 2007 15:45:58 +0000
(15:45 +0000)
crypto/aes/aes_cfb.c
patch
|
blob
|
history
diff --git
a/crypto/aes/aes_cfb.c
b/crypto/aes/aes_cfb.c
index 5ee3e7277b5ca4bd058cd782bfd491ac6b51508b..064b0d8b13a2bd9d944dda1a07414f61f2bc7a6c 100644
(file)
--- 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;