box: add check against setting box.cfg options to inf and nan
Setting a box.cfg option to inf or nan can result in a crash or invalid behavior. For example, setting `box.cfg.checkpoint_interval` to 0/0 triggers an assertion failure. Let's add a check against inf and nan for all options. These special numbers don't make any sense as configuration option values anyway. Closes #4962 NO_DOC=bug fix
Showing
- changelogs/unreleased/gh-4962-box-cfg-forbid-infinite-numbers.md 5 additions, 0 deletions...ogs/unreleased/gh-4962-box-cfg-forbid-infinite-numbers.md
- src/box/lua/load_cfg.lua 8 additions, 0 deletionssrc/box/lua/load_cfg.lua
- test/box-luatest/gh_4962_cfg_infinite_numbers_test.lua 28 additions, 0 deletionstest/box-luatest/gh_4962_cfg_infinite_numbers_test.lua
Please register or sign in to comment