Skip to content
Commit 604e930e authored by Faith Ekstrand's avatar Faith Ekstrand Committed by Dylan Baker
Browse files

nir/serialize: Alloc constants off the variable

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.

Fixes: 120da009 "nir: add serialization and deserialization"
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=107366


Reviewed-by: default avatarLionel Landwerlin <lionel.g.landwerlin@intel.com>
Tested-by: default avatarMark Janes <mark.a.janes@intel.com>
(cherry picked from commit f214baf7)
parent 4066610a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment