mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-08 11:18:08 +02:00
vtn_bindgen2: Fix memory corruption
This sometimes causes memory corruption, specifically on 32-bit x86 where it can result in a build failure Signed-off-by: Sasha Finkelstein <fnkl.kernel@gmail.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/33847>
This commit is contained in:
parent
7c12df63de
commit
1601668155
1 changed files with 2 additions and 2 deletions
|
|
@ -75,8 +75,8 @@ lower_to_bindgen_return(nir_shader *nir)
|
|||
* parameters.
|
||||
*/
|
||||
libfunc->num_params--;
|
||||
memcpy(libfunc->params, libfunc->params + 1,
|
||||
sizeof(libfunc->params[0]) * libfunc->num_params);
|
||||
memmove(libfunc->params, libfunc->params + 1,
|
||||
sizeof(libfunc->params[0]) * libfunc->num_params);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue