diff options
author | Kim Alvefur <zash@zash.se> | 2022-07-11 17:01:55 +0200 |
---|---|---|
committer | Kim Alvefur <zash@zash.se> | 2022-07-11 17:01:55 +0200 |
commit | e893bbf6817ff4193d9639afc40143fd792c9a4b (patch) | |
tree | a759130d39f816df05b084c4d8e7867e33a9dae1 /spec/json/fail30.json | |
parent | e12c9a83df999049970403cbbd6a6427f79f889e (diff) | |
download | prosody-e893bbf6817ff4193d9639afc40143fd792c9a4b.tar.gz prosody-e893bbf6817ff4193d9639afc40143fd792c9a4b.zip |
util.crypto: Use stack space buffers
Removes assumption that LUAL_BUFFERSIZE is known at pre-processing time,
which it is not in Lua 5.3 and 5.4, where it is a computed macro based
on sizeof.
Allocation of stack space is safer and faster, no need to worry about
luaL_prepbuffer failing to allocate memory and skipping free()
Diffstat (limited to 'spec/json/fail30.json')
0 files changed, 0 insertions, 0 deletions