mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Update.
2000-12-27 Ben Collins <bcollins@debian.org> * elf/dl-open.c (_dl_open): Correctly set the new objname pointer when reallocating the error strings. Reported by Kalle Olavi Niemitalo <kon@iki.fi>
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2000-12-27 Ben Collins <bcollins@debian.org>
|
||||||
|
|
||||||
|
* elf/dl-open.c (_dl_open): Correctly set the new objname pointer
|
||||||
|
when reallocating the error strings.
|
||||||
|
Reported by Kalle Olavi Niemitalo <kon@iki.fi>
|
||||||
|
|
||||||
2000-12-27 Ulrich Drepper <drepper@redhat.com>
|
2000-12-27 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
* dlfcn/Makefile (tests): Add errmsg1.
|
* dlfcn/Makefile (tests): Add errmsg1.
|
||||||
|
@ -403,9 +403,9 @@ _dl_open (const char *file, int mode, const void *caller)
|
|||||||
len_errstring = strlen (errstring) + 1;
|
len_errstring = strlen (errstring) + 1;
|
||||||
if (objname == errstring + len_errstring)
|
if (objname == errstring + len_errstring)
|
||||||
{
|
{
|
||||||
len_errstring += strlen (objname) + 1;
|
size_t total_len = len_errstring + strlen (objname) + 1;
|
||||||
local_errstring = alloca (len_errstring);
|
local_errstring = alloca (total_len);
|
||||||
memcpy (local_errstring, errstring, len_errstring);
|
memcpy (local_errstring, errstring, total_len);
|
||||||
objname = local_errstring + len_errstring;
|
objname = local_errstring + len_errstring;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
Reference in New Issue
Block a user