]> code.ossystems Code Review - openembedded-core.git/commit
recipes-devtools: fix segfault in lib32-gcc with "." multilib_dir
authorPaul Gortmaker <paul.gortmaker@windriver.com>
Thu, 26 Jun 2014 19:08:47 +0000 (15:08 -0400)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sun, 29 Jun 2014 07:58:17 +0000 (08:58 +0100)
commitbf1473d0c1b099b8d919835cc430b99606134aab
tree1ac97d614e1ca6d6e8ef9aa011232bcaa5257dfe
parent98353862c08be2f1724aaad7aa4ed0521e3621f2
recipes-devtools: fix segfault in lib32-gcc with "." multilib_dir

When enabling a lib32-gcc in a 64 bit build, without doing any
other configuration, the mutilib dir is unspecified, which is
represented internally in gcc as "." and as such uncovers an
invalid free on a non-malloc'd pointer.

As suggested by the gcc folks, simply make sure the "." case
is also stored in a malloc'd pointer, so that the intended
runtime behaviour of the code remains unchanged.

Patch has been accepted by upstream maintainers of gcc.

Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/recipes-devtools/gcc/gcc-4.9.inc
meta/recipes-devtools/gcc/gcc-4.9/0053-gcc-fix-segfault-from-calling-free-on-non-malloc-d-a.patch [new file with mode: 0644]