diff options
author | RedworkDE <10944644+RedworkDE@users.noreply.github.com> | 2023-03-07 15:36:57 +0100 |
---|---|---|
committer | Yuri Sizov <yuris@humnom.net> | 2023-03-14 13:59:03 +0100 |
commit | f9bb1d3174e7ab88b738b48967972d13f53da627 (patch) | |
tree | e9a56122f458a27cb9ecda92c7705066c3150459 /scene | |
parent | b4a1bfd6d5d9587c2771e9882e02569cd91d3dcb (diff) |
Fix buffer overrun in CPUParticles3D
(cherry picked from commit 89980dd9c98a01b6d353a9a087f5a4caec2dd1aa)
Diffstat (limited to 'scene')
-rw-r--r-- | scene/3d/cpu_particles_3d.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scene/3d/cpu_particles_3d.cpp b/scene/3d/cpu_particles_3d.cpp index c88eb033de..23855b2d8e 100644 --- a/scene/3d/cpu_particles_3d.cpp +++ b/scene/3d/cpu_particles_3d.cpp @@ -1207,7 +1207,7 @@ void CPUParticles3D::_update_particle_data_buffer() { ptr[10] = t.basis.rows[2][2]; ptr[11] = t.origin.z; } else { - memset(ptr, 0, sizeof(Transform3D)); + memset(ptr, 0, sizeof(float) * 12); } Color c = r[idx].color; |