Commit 73d6e9ec authored by Jan Beulich's avatar Jan Beulich Committed by David Gibson
Browse files

libfdt: fix undefined behaviour in fdt_splice_()



libfdt: fix undefined behaviour in fdt_splice_()

Along the lines of commit d0b3ab0a ("libfdt: Fix undefined behaviour
in fdt_offset_ptr()"), fdt_splice_() similarly may not use pointer
arithmetic to do overflow checks. (The left side of the checks added by
d4c7c25c ["libfdt: check for potential overrun in _fdt_splice()"]
doesn't really lend itself to similar replacement though.)

Signed-off-by: default avatarJan Beulich <jbeulich@suse.com>
Message-Id: <f2d09e81-7cb8-c5cc-9699-1ac05b0626ff@suse.com>
Signed-off-by: default avatarDavid Gibson <david@gibson.dropbear.id.au>
parent 2525da3d
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment