Skip to content
Snippets Groups Projects
Commit 4dcba1b5 authored by Nikita Pettik's avatar Nikita Pettik
Browse files

vinyl: init all vars before cleanup in vy_lsm_split_range()

If vy_key_from_msgpack() fails in vy_lsm_split_range(), clean-up
procedure is called. However, at this moment struct vy_range *parts[2]
is not initialized ergo contains garbage and access to this structure
may result in crash, segfault or disk formatting. Let's move
initialization of mentioned variables before call of
vy_lsm_split_range().

Part of #4864
parent 9f281978
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