]> 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>
Fri, 30 Oct 2020 19:12:42 +0000 (15:12 -0400)
commitf242252b8f22c10a9d16366f1a409af48f6fa1e0
tree0a18d2525633275db6dd62b138ab0a6888770ac5
parent2d02c3c076ac8634521854d2bab3bd3d9181c3d2
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