sql: properly check result of decimal parsing
This patch fixes a crash that can occur when SQL parses a decimal literal that represents a number greater than or equal to 10^38. Closes #9469 NO_DOC=bugfix
Showing
- changelogs/unreleased/gh-9469-too-big-decimal.md 4 additions, 0 deletionschangelogs/unreleased/gh-9469-too-big-decimal.md
- src/box/errcode.h 1 addition, 0 deletionssrc/box/errcode.h
- src/box/sql/build.c 5 additions, 1 deletionsrc/box/sql/build.c
- src/box/sql/expr.c 1 addition, 0 deletionssrc/box/sql/expr.c
- test/box/error.result 1 addition, 0 deletionstest/box/error.result
- test/sql-luatest/gh_9469_too_big_decimals_test.lua 34 additions, 0 deletionstest/sql-luatest/gh_9469_too_big_decimals_test.lua
Loading
Please register or sign in to comment