Make sure slice::from_raw_parts is not called with null pointer or 0 len in merge_operator#804
Make sure slice::from_raw_parts is not called with null pointer or 0 len in merge_operator#804define-null wants to merge 3 commits intotikv:masterfrom
Conversation
|
Welcome @define-null! |
|
Link to the contributing guide provided by the bot is broken. Should be perhaps https://github.com/tikv/tikv/blob/master/CONTRIBUTING.md |
Signed-off-by: Vasilii Demidenok <879658+define-null@users.noreply.github.com>
f40ff8e to
16c6cc3
Compare
|
PTAL @v01dstar |
|
/approve |
|
/approve |
|
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: Connor1996, v01dstar The full list of commands accepted by this bot can be found here. The pull request process is described here DetailsNeeds approval from an approver in each of these files:
Approvers can indicate their approval by writing |
[LGTM Timeline notifier]Timeline:
|
|
New changes are detected. LGTM label has been removed. |
It was found that on version 1.81 the slice::from_raw_parts may be called with null pointer or len equal 0 in merge_operator, causing panic:
This commit fixes it by wrapping slice::from_raw_parts call