]> 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>
Fri, 30 Oct 2020 19:03:29 +0000 (15:03 -0400)
commit0e6fc8c5a923f6c59ae381bb8e715a3f1f076ec9
tree5370645feac46bc6ed92777dad027ef6c5912b82
parentb140c2912e22486ec24cd9bc90f9b61b45b3e9b2
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