[Tarantool-patches] [PATCH 2/2] box: on cfg properly check memory quota

Nikita Pettik korablev at tarantool.org
Thu Mar 5 14:41:44 MSK 2020


On 05 Mar 01:14, Vladislav Shpilevoy wrote:
> box_check_config() didn't check memtx_memory and vinyl_memory
> upper bound. As a result, it was possible to set memory size
> higher than what the quota allows as maximum.
> 
> That worked only when box.cfg() was called first time, because
> quota_init() does not check its value. Subsequent box.cfg() calls
> use quota_set(), which aborts the program if a size is too big.
> Only in debug mode. In release quota_set() also worked with any
> sizes.
> 
> Closes #4705
> ---

LGTM.



More information about the Tarantool-patches mailing list