]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix placement of data during add operation during certain
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Mon, 2 Mar 2020 15:43:00 +0000 (10:43 -0500)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 5 Jan 2021 17:28:24 +0000 (12:28 -0500)
commitb466475678597cdc8a450038ad96347a7fdd507c
treec44c4735aca95777db6c7f325105935ce33810ce
parent2e2242afe304cdfebda619c855f1d9c36b41a42b
maple_tree: Fix placement of data during add operation during certain
conditions.

When partially overwriting the sources end slot and coalescing data
during the copy operation, there was a potential for an overflow during
a store operation.  Avoid the overflow by using the new node end instead
of the slot passed in as the destination.

Signed-off-by: Liam R. Howlett <Liam.Howlett@Oracle.com>
lib/maple_tree.c