summaryrefslogtreecommitdiffstats
path: root/cpukit/dtc/libfdt/fdt_strerror.c
diff options
context:
space:
mode:
authorNicholas Piggin <npiggin@gmail.com>2019-05-09 19:41:20 +1000
committerSebastian Huber <sebastian.huber@embedded-brains.de>2020-03-02 07:52:20 +0100
commit4902d42398555e138d34e6c7f078def03cdb17d4 (patch)
treefe1a309b276f8bec86ff07c82987836649655598 /cpukit/dtc/libfdt/fdt_strerror.c
parentlibfdt: Make fdt_get_max_phandle() an inline (diff)
downloadrtems-4902d42398555e138d34e6c7f078def03cdb17d4.tar.bz2
libfdt: Ensure fdt_add_property frees allocated name string on failure
If fdt_add_property or fdt_property_placeholder fail after allocating a string for the name, they return without freeing that string. This does not change the structure of the tree, but in very specific cases it could lead to undesirable space consumption. Fix this by rolling back the string allocation in this situation. Signed-off-by: Nicholas Piggin <npiggin@gmail.com> Message-Id: <20190509094122.834-2-npiggin@gmail.com> Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
Diffstat (limited to 'cpukit/dtc/libfdt/fdt_strerror.c')
0 files changed, 0 insertions, 0 deletions