core: do not limit the length of an error message by 512 bytes
Now the error message is allocated by `malloc' if it doesn't fit into the static buffer. Closes #4975 NO_DOC=bugfix
Showing
- changelogs/unreleased/gh-4975-errors-in-init-scripts-are-stripped.md 3 additions, 0 deletions...unreleased/gh-4975-errors-in-init-scripts-are-stripped.md
- src/box/error.cc 4 additions, 4 deletionssrc/box/error.cc
- src/lib/core/diag.c 46 additions, 8 deletionssrc/lib/core/diag.c
- src/lib/core/diag.h 7 additions, 3 deletionssrc/lib/core/diag.h
- src/lib/core/exception.cc 1 addition, 1 deletionsrc/lib/core/exception.cc
- src/lua/error.lua 7 additions, 3 deletionssrc/lua/error.lua
- test/app-luatest/gh_4975_errors_in_init_scripts_are_stripped_test.lua 22 additions, 0 deletions...test/gh_4975_errors_in_init_scripts_are_stripped_test.lua
- test/box/error.result 9 additions, 0 deletionstest/box/error.result
- test/box/error.test.lua 4 additions, 0 deletionstest/box/error.test.lua
- test/unit/error.c 92 additions, 1 deletiontest/unit/error.c
- test/vinyl/ddl.result 2 additions, 1 deletiontest/vinyl/ddl.result
Loading
Please register or sign in to comment