[PATCH] libc: deal with aux vect inside __uClibc_main only if !SHARED

Rich Felker dalias at aerifal.cx
Thu Dec 13 18:56:02 UTC 2012


On Thu, Dec 13, 2012 at 12:34:39PM +0100, Filippo ARCIDIACONO wrote:
> It's not safe to use the aux vect inside __uClibc_main if we are running
> with shared libraries, because it could have been already modified.
> For example, if some constructor plays with environment variables by
> using unsetenv, the modifications done into the stack to unset an
> environment variable, have impacts on the aux vect due to the extra NULL
> entries added.

A similar bug exists in libgcc on PPC and so far they don't seem eagar
to fix it...

http://gcc.gnu.org/bugzilla/show_bug.cgi?id=55431

Rich


More information about the uClibc mailing list