]> code.ossystems Code Review - openembedded-core.git/commit
eglibc-nativesdk: Fix buffer overrun with a relocated SDK
authorJason Wessel <jason.wessel@windriver.com>
Thu, 10 Jan 2013 18:55:11 +0000 (12:55 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 8 Feb 2013 14:46:12 +0000 (14:46 +0000)
commit8ebd85d29eb1a9c0c0d3cd79e7dda8b857c27bbb
treeacb205787aa249b4e3728b39c1ec38dab6e135a1
parent0a07ec7d13becc7ce87c502e75a006300a7090a5
eglibc-nativesdk: Fix buffer overrun with a relocated SDK

When ld-linux-*.so.2 is relocated to a path that is longer than the
original fixed location, the dynamic loader will crash in open_path
because it implicitly assumes that max_dirnamelen is a fixed size that
never changes.

The allocated buffer will not be large enough to contain the directory
path string which is larger than the fixed location provided at build
time.

Signed-off-by: Jason Wessel <jason.wessel@windriver.com>
Signed-off-by: Mark Hatle <mark.hatle@windriver.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
meta/recipes-core/eglibc/eglibc-2.17/relocatable_sdk_fix_openpath.patch [new file with mode: 0644]
meta/recipes-core/eglibc/eglibc_2.17.bb