[tarantool-patches] Re: [PATCH 0/4] Fix integer overflow behaviour during VDBE execution

Vladislav Shpilevoy v.shpilevoy at tarantool.org
Fri Feb 22 21:30:52 MSK 2019


LGTM.

On 20/02/2019 14:57, Nikita Pettik wrote:
> Branch: https://github.com/tarantool/tarantool/tree/np/gh-3735-integer-overflow
> Issue: https://github.com/tarantool/tarantool/issues/3735
> 
> Current patch-set fixes integer overflow behaviour during VDBE
> execution. Originally, SQLite acts quite misleading in such
> situations: intead of raising error, it simply treats overflowed
> integers as floating point numbers. Lets fix it everywhere it is
> possible (math and CAST operators, validate decoded msgpack).
> 
> Nikita Pettik (4):
>    sql: raise an error if int is overflowed during math operations
>    sql: raise an integer overflow error during CAST
>    sql: refactor sqlVdbeMsgpackGet()
>    sql: raise integer overflow error during msgpack decode
> 
>   src/box/sql/vdbe.c                 |  21 ++++--
>   src/box/sql/vdbeInt.h              |  13 +++-
>   src/box/sql/vdbeaux.c              | 132 ++++++++++++++++++-------------------
>   src/box/sql/vdbemem.c              |   8 ++-
>   test/sql/integer-overflow.result   |  76 +++++++++++++++++++++
>   test/sql/integer-overflow.test.lua |  34 ++++++++++
>   6 files changed, 205 insertions(+), 79 deletions(-)
>   create mode 100644 test/sql/integer-overflow.result
>   create mode 100644 test/sql/integer-overflow.test.lua
> 
> -- 
> 2.15.1
> 
> 




More information about the Tarantool-patches mailing list