summaryrefslogtreecommitdiffstats
path: root/cpukit/dtc/libfdt/fdt_ro.c
diff options
context:
space:
mode:
authorCourtney Cavin <courtney.cavin@sonymobile.com>2015-12-01 16:43:10 -0800
committerSebastian Huber <sebastian.huber@embedded-brains.de>2018-07-19 07:01:08 +0200
commitb41cd6cb076e465346cb0b02899bea74ad8f18d9 (patch)
treea0cee7d40bf4349ee26e94e4d8e06a0e18f3e8eb /cpukit/dtc/libfdt/fdt_ro.c
parentscore: Add a FALLTHROUGH comment to kvprintf() (diff)
downloadrtems-b41cd6cb076e465346cb0b02899bea74ad8f18d9.tar.bz2
libfdt: check for potential overrun in _fdt_splice()
This patch catches the conditions where: - 'splicepoint' is set to a point outside of [ fdt, fdt_totalsize(fdt) ) - 'newlen' is negative, or 'splicepoint' plus 'newlen' results in overflow Either of these cases can be caused by math which overflows in calling functions, or by sizes specified through dynamic means. Signed-off-by: Courtney Cavin <courtney.cavin@sonymobile.com> Signed-off-by: Bjorn Andersson <bjorn.andersson@sonymobile.com>
Diffstat (limited to 'cpukit/dtc/libfdt/fdt_ro.c')
0 files changed, 0 insertions, 0 deletions