radv: don't pass null to _mesa_sha1_update
authorRhys Perry <pendingchaos02@gmail.com>
Wed, 5 Aug 2020 20:03:22 +0000 (21:03 +0100)
committerMarge Bot <eric+marge@anholt.net>
Thu, 20 Aug 2020 10:52:19 +0000 (10:52 +0000)
commit4f08af6766c23295922a08a95d0183820f7bc702
tree08f582e28adc59ec714793513753a135c4f9aa8b
parent30fca3b2e65c6125c24894ed11b15e09a52b42e6
radv: don't pass null to _mesa_sha1_update

This could then pass NULL to memcpy. Fixes UBSan error:
../src/util/sha1/sha1.c:140:8: runtime error: null pointer passed as argument 2, which is declared to never be null

Signed-off-by: Rhys Perry <pendingchaos02@gmail.com>
Reviewed-by: Samuel Pitoiset <samuel.pitoiset@gmail.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/6206>
src/amd/vulkan/radv_pipeline_cache.c