crypto/aes/aes_ctr.c:112: error: UNINITIALIZED_VALUE
  The value read from tmp[_] was never initialized.
Showing all 1 steps of the trace


crypto/aes/aes_ctr.c:112:3: 
110.   			AES_encrypt(counter, tmp, key);
111.   		}
112. > 		*(out++) = *(in++) ^ tmp[n];
113.   		n = (n+1) % AES_BLOCK_SIZE;
114.   	}

void AES_ctr128_encrypt(const unsigned char *in, unsigned char *out,
	const unsigned long length, const AES_KEY *key,
	unsigned char *counter, unsigned int *num) {
	unsigned int n;
	unsigned long l=length;
	unsigned char tmp[AES_BLOCK_SIZE];
	assert(in && out && key && counter && num);
	n = *num;
	while (l--) {
		if (n == 0) {
			AES_ctr128_inc(counter);
			AES_encrypt(counter, tmp, key);
		}
		*(out++) = *(in++) ^ tmp[n];
		n = (n+1) % AES_BLOCK_SIZE;
	}
	*num=n;
}
['void AES_ctr128_encrypt(const unsigned char *in, unsigned char *out,\n\tconst unsigned long length, const AES_KEY *key,\n\tunsigned char *counter, unsigned int *num) {\n\tunsigned int n;\n\tunsigned long l=length;\n\tunsigned char tmp[AES_BLOCK_SIZE];\n\tassert(in && out && key && counter && num);\n\tn = *num;\n\twhile (l--) {\n\t\tif (n == 0) {\n\t\t\tAES_ctr128_inc(counter);\n\t\t\tAES_encrypt(counter, tmp, key);\n\t\t}\n\t\t*(out++) = *(in++) ^ tmp[n];\n\t\tn = (n+1) % AES_BLOCK_SIZE;\n\t}\n\t*num=n;\n}']