]> www.infradead.org Git - users/jedix/linux-maple.git/commit
maple_tree: Fix double null
authorLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 29 Sep 2020 19:17:04 +0000 (15:17 -0400)
committerLiam R. Howlett <Liam.Howlett@Oracle.com>
Tue, 5 Jan 2021 17:30:32 +0000 (12:30 -0500)
commite4de660cea1b0a8c71a0a22dedb12503498053f8
treed16954ceee17a368b98e44e3b72331253db56267
parent761989935ea4977fe02366f8473aa8f9368b5dd4
maple_tree: Fix double null

Google reported a double null in Android.  The captured reproducer is in
set42.  Issue was a store spanning offsets, so the entry before the
start offset and the entry after the end offset needs to be checked
instead of assuming the entry being added would write to a single
offset.

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