diff options
author | Paolo Bonzini <pbonzini@redhat.com> | 2016-05-20 11:09:54 +0200 |
---|---|---|
committer | Daniel P. Berrange <berrange@redhat.com> | 2016-06-13 12:41:17 +0100 |
commit | b35c1f3361ebf6ec9ea5022903af4b559bff6063 (patch) | |
tree | 74a8cc5b6b93c0d682876e98ff8240f7c3d34ddc /target-i386/kvm.c | |
parent | e7ed11f083015bf34a121cfff31540cf9c2bae23 (diff) |
crypto: assert that qcrypto_hash_digest_len is in range
Otherwise unintended results could happen. For example,
Coverity reports a division by zero in qcrypto_afsplit_hash.
While this cannot really happen, it shows that the contract
of qcrypto_hash_digest_len can be improved.
Reviewed-by: Eric Blake <eblake@redhat.com>
Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
Signed-off-by: Daniel P. Berrange <berrange@redhat.com>
Diffstat (limited to 'target-i386/kvm.c')
0 files changed, 0 insertions, 0 deletions