tuple: fix crash on hashing tuple with double fields
`tuple_hash_field()` doesn't advance the MsgPack cursor after hashing a tuple field with the type `double`, which can result in crashes both in memtx (while inserting a tuple into a hash index) and in vinyl (while writing a bloom filter on dump or compaction). The bug was introduced by commit 51af059c ("box: compare and hash msgpack value of double key field as double"). Closes #10090 NO_DOC=bug fix
Showing
- changelogs/unreleased/gh-10090-tuple-hash-double-fix.md 6 additions, 0 deletionschangelogs/unreleased/gh-10090-tuple-hash-double-fix.md
- src/box/tuple_hash.cc 1 addition, 1 deletionsrc/box/tuple_hash.cc
- test/box-luatest/gh_10090_tuple_hash_double_test.lua 37 additions, 0 deletionstest/box-luatest/gh_10090_tuple_hash_double_test.lua
- test/vinyl-luatest/gh_10090_tuple_hash_double_test.lua 38 additions, 0 deletionstest/vinyl-luatest/gh_10090_tuple_hash_double_test.lua
Loading
Please register or sign in to comment