diff options
author | Paolo Bonzini | 2016-05-20 11:09:54 +0200 |
---|---|---|
committer | Daniel P. Berrange | 2016-06-13 13:41:17 +0200 |
commit | b35c1f3361ebf6ec9ea5022903af4b559bff6063 (patch) | |
tree | 74a8cc5b6b93c0d682876e98ff8240f7c3d34ddc /include/standard-headers/linux/input-event-codes.h | |
parent | crypto: remove temp files on completion of secrets test (diff) | |
download | qemu-b35c1f3361ebf6ec9ea5022903af4b559bff6063.tar.gz qemu-b35c1f3361ebf6ec9ea5022903af4b559bff6063.tar.xz qemu-b35c1f3361ebf6ec9ea5022903af4b559bff6063.zip |
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 'include/standard-headers/linux/input-event-codes.h')
0 files changed, 0 insertions, 0 deletions