mirror of git://sourceware.org/git/glibc.git
Update.
2000-06-02 Ulrich Drepper <drepper@redhat.com> * elf/rtld.c (process_envvars): Test for = after variable name.
This commit is contained in:
parent
6c021fdc2f
commit
75e8d1f516
|
|
@ -1,3 +1,7 @@
|
||||||
|
2000-06-02 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* elf/rtld.c (process_envvars): Test for = after variable name.
|
||||||
|
|
||||||
2000-06-01 Ulrich Drepper <drepper@redhat.com>
|
2000-06-01 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* sysdeps/generic/initfini.c (_init): One less relocation. Don't
|
* sysdeps/generic/initfini.c (_init): One less relocation. Don't
|
||||||
|
|
|
||||||
10
elf/rtld.c
10
elf/rtld.c
|
|
@ -1324,9 +1324,15 @@ process_envvars (enum mode *modep, int *lazyp)
|
||||||
|
|
||||||
while ((envline = _dl_next_ld_env_entry (&runp)) != NULL)
|
while ((envline = _dl_next_ld_env_entry (&runp)) != NULL)
|
||||||
{
|
{
|
||||||
size_t len = strcspn (envline, "=") - 3;
|
size_t len = strcspn (envline, "=");
|
||||||
|
|
||||||
switch (len)
|
if (envline[len] != '=')
|
||||||
|
/* This is a "LD_" variable at the end of the string without
|
||||||
|
a '=' character. Ignore it since otherwise we will access
|
||||||
|
invalid memory below. */
|
||||||
|
break;
|
||||||
|
|
||||||
|
switch (len - 3)
|
||||||
{
|
{
|
||||||
case 4:
|
case 4:
|
||||||
/* Warning level, verbose or not. */
|
/* Warning level, verbose or not. */
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue