Commit 260c497c authored by Ben Laurie's avatar Ben Laurie
Browse files

Fix buffer overrun. Coverity ID 106.

parent 313fce7b
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;