diff options
author | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-01-18 19:52:59 +0100 |
---|---|---|
committer | Fabio Alessandrelli <fabio.alessandrelli@gmail.com> | 2020-01-19 11:49:10 +0100 |
commit | 534bf89976da8776e45846555379bd09aa96af70 (patch) | |
tree | 02b6587ecbd0ebd18e9e99fd3611ec8a8e8b404e /editor/editor_run_script.cpp | |
parent | d4a222cd9d849a63f0535f70cbf78700bc5c815b (diff) |
PacketPeer use heap buffer for var encoding.
Used to allocate in stack (via alloca) which causes crashes when trying
to encode big variables.
The buffer grows as needed up to `encode_buffer_max_size` (which is
8MiB by default) and always in power of 2.
Diffstat (limited to 'editor/editor_run_script.cpp')
0 files changed, 0 insertions, 0 deletions