summaryrefslogtreecommitdiffstats
path: root/ui/console.c
diff options
context:
space:
mode:
authorPrasad J Pandit2017-02-20 12:23:07 +0100
committerDaniel P. Berrange2017-02-27 14:37:14 +0100
commit32c813e6c2a857b93b897901b7e20281397528a3 (patch)
tree949d518cce241451e88996cb0fa68193194c7410 /ui/console.c
parentcrypto: fix leak in ivgen essiv init (diff)
downloadqemu-32c813e6c2a857b93b897901b7e20281397528a3.tar.gz
qemu-32c813e6c2a857b93b897901b7e20281397528a3.tar.xz
qemu-32c813e6c2a857b93b897901b7e20281397528a3.zip
crypto: assert cipher algorithm is always valid
Crypto routines 'qcrypto_cipher_get_block_len' and 'qcrypto_cipher_get_key_len' return non-zero cipher block and key lengths from static arrays 'alg_block_len[]' and 'alg_key_len[]' respectively. Returning 'zero(0)' value from either of them would likely lead to an error condition. Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org> Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'ui/console.c')
0 files changed, 0 insertions, 0 deletions