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:
313fce7
)
Fix buffer overrun. Coverity ID 106.
author
Ben Laurie
<ben@openssl.org>
Wed, 4 Apr 2007 15:13:31 +0000
(15:13 +0000)
committer
Ben Laurie
<ben@openssl.org>
Wed, 4 Apr 2007 15:13:31 +0000
(15:13 +0000)
crypto/camellia/cmll_cfb.c
patch
|
blob
|
history
diff --git
a/crypto/camellia/cmll_cfb.c
b/crypto/camellia/cmll_cfb.c
index af0f9f49ad9051612fcf01266a86456e5f885d13..1b02bebd52d98f28cb4cc6aef1c6dc52900e0835 100644
(file)
--- a/
crypto/camellia/cmll_cfb.c
+++ b/
crypto/camellia/cmll_cfb.c
@@
-173,7
+173,7
@@
void Camellia_cfbr_encrypt_block(const unsigned char *in,unsigned char *out,
unsigned char *ivec,const int enc)
{
int n,rem,num;
- unsigned char ovec[CAMELLIA_BLOCK_SIZE*2
];
+ unsigned char ovec[CAMELLIA_BLOCK_SIZE*2
+ 1]; /* +1 because we dereference (but don't use) one byte beyond the end */
if (nbits<=0 || nbits>128) return;