Re: [Mesa-dev] [PATCH] nir/serialize: Alloc constants off the variable

2018-07-24 Thread Lionel Landwerlin
On 24/07/18 19:02, Jason Ekstrand wrote: nir_sweep assumes that constants area always allocated off the variable to which they belong. Violating this assumption causes them to get freed early and leads to use-after-free bugs. Cc: mesa-sta...@lists.freedesktop.org Reviewed-by: Lionel

[Mesa-dev] [PATCH] nir/serialize: Alloc constants off the variable

2018-07-24 Thread Jason Ekstrand
nir_sweep assumes that constants area always allocated off the variable to which they belong. Violating this assumption causes them to get freed early and leads to use-after-free bugs. Cc: mesa-sta...@lists.freedesktop.org --- src/compiler/nir/nir_serialize.c | 2 +- 1 file changed, 1