Files
Vita3K/vita3k
Dicot0721 3d53d7cb93 ngs: Fix attempts to allocate huge amounts of memory causing the process to freeze.
- `uint32_t decoded_size` may overflow to a very large number by subtracting a number larger than itself, which causes `data.extra_storage.resize(curr_pos + decoded_size * sizeof(float) * 2)` to try to allocate huge amounts of memory (and the process freezes as a result).
- I'm not actually sure if I wrote it correctly this way, I just referenced the previous line of code, but judging by the results, it works fine.
2025-02-16 02:27:06 +03:00
..