diff options
author | Matias N. Goldberg <dark_sylinc@yahoo.com.ar> | 2023-08-06 23:21:58 -0300 |
---|---|---|
committer | Matias N. Goldberg <dark_sylinc@yahoo.com.ar> | 2023-08-06 23:21:58 -0300 |
commit | e783e32108520a4d5b866fc0b28f23cedc3c74f6 (patch) | |
tree | 2e4389ef0820f01ac969c4fe213693778934d4be /platform/linuxbsd/os_linuxbsd.h | |
parent | 16a93563bfd3b02ca0a8f6df2026f3a3217f5571 (diff) | |
download | redot-engine-e783e32108520a4d5b866fc0b28f23cedc3c74f6.tar.gz |
Fix integer underflow when rounding up in VoxelGI
The code wanted to divide and round up:
- 0 / 64 = 0
- 63 / 64 = 1
- 64 / 64 = 1
- 65 / 64 = 2
However when the dividend was exactly 0 it would underflow and produce
67108864 instead.
This caused TDRs on empty scenes or extremely slow performance
Fix #80286
Diffstat (limited to 'platform/linuxbsd/os_linuxbsd.h')
0 files changed, 0 insertions, 0 deletions