Skip to content
Snippets Groups Projects
Commit c267b0b8 authored by Vladimir Davydov's avatar Vladimir Davydov
Browse files

tuple: fix on-stack buffer allocation in tuple_hash_field

The buffer is defined in a nested {} block. This gives the compiler the
liberty to overwrite it once the block has been executed, which would be
incorrect since the content of the buffer is used outside the {} block.
This results in box/hash and viny/bloom test failures when tarantool is
compiled in the release mode. Fix this by moving the buffer definition
to the beginning of the function.

Fixes commit 0dfd99c4 ("tuple: fix hashing of integer numbers").
parent 0dfd99c4
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment