fix bounds checks (#4038)

Ensure we `panic()` instead of crash on graphics memory buffer overflow

Also bump the buffer size to 32Mb from 8Mb to make this rarer (but still
possible)

Release Notes: Fixes some crahes due to lack of graphics buffer spacae
d2c436dcdcNathan Sobo committed on 1/12/2024, 11:28:19 PM· committed by GitHubparents8014d9aaa5c6a8
1 file changedLine totals unavailable