Skip to content

intel/compiler: Fix dynarray usage in intel_clc

The code builds up the dynamic array of objects (spirv_objs) and collect pointers to each of them into another dynamic array (spirv_ptr_objs).

If the growth of the first array cause a reallocation, it is possible that the previous pointers end up invalid.

Fixes: 77e929a5 ("intel/clc: allow multiple CL files to be compiled together") Reviewed-by: Lionel Landwerlin lionel.g.landwerlin@intel.com Reviewed-by: Jordan Justen jordan.l.justen@intel.com

Merge request reports