commit | b35c1f3361ebf6ec9ea5022903af4b559bff6063 | [log] [tgz] |
---|---|---|
author | Paolo Bonzini <pbonzini@redhat.com> | Fri May 20 11:09:54 2016 +0200 |
committer | Daniel P. Berrange <berrange@redhat.com> | Mon Jun 13 12:41:17 2016 +0100 |
tree | 74a8cc5b6b93c0d682876e98ff8240f7c3d34ddc | |
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>