gallivm/cache: don't require a null terminator for cache data.
authorDave Airlie <airlied@redhat.com>
Mon, 15 Jun 2020 00:16:06 +0000 (10:16 +1000)
committerDave Airlie <airlied@redhat.com>
Mon, 15 Jun 2020 23:48:01 +0000 (09:48 +1000)
commit25a629558ca1265c1d8423e3c8203795738358b5
tree201eb9856b5f9a5218f09144f843b1ba71261395
parent8b6820c92d213087c3ed050fdd0e8bd5847a90e6
gallivm/cache: don't require a null terminator for cache data.

Fixes crashes seen with
./bin/egl_ext_device_base
since cache support was added.

Fixes: 4962d3e10733 ("gallivm: add cache interface to mcjit")
Closes: https://gitlab.freedesktop.org/mesa/mesa/-/issues/3118
Tested-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Roland Scheidegger <sroland@vmware.com>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/5467>
src/gallium/auxiliary/gallivm/lp_bld_misc.cpp