summaryrefslogtreecommitdiffstats
path: root/crypto/camellia
diff options
context:
space:
mode:
authorBen Laurie <ben@openssl.org>2007-04-04 15:13:31 +0000
committerBen Laurie <ben@openssl.org>2007-04-04 15:13:31 +0000
commit260c497cdd8e017699f46e6f9a182ddcaaf6e345 (patch)
tree27397f402c3295fb00ae9e5d9415141b70f09dec /crypto/camellia
parent313fce7b61ecaf5879cf84b256bdd0964134836e (diff)
Fix buffer overrun. Coverity ID 106.
Diffstat (limited to 'crypto/camellia')
-rw-r--r--crypto/camellia/cmll_cfb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/crypto/camellia/cmll_cfb.c b/crypto/camellia/cmll_cfb.c
index af0f9f49ad..1b02bebd52 100644
--- 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;