Skip to content

Commit

Permalink
Update.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Ulrich Drepper committed Dec 28, 2000
1 parent f116c77 commit 7231f6f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -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>

* dlfcn/Makefile (tests): Add errmsg1.
Expand Down
6 changes: 3 additions & 3 deletions elf/dl-open.c
Original file line number Diff line number Diff line change
Expand Up @@ -403,9 +403,9 @@ _dl_open (const char *file, int mode, const void *caller)
len_errstring = strlen (errstring) + 1;
if (objname == errstring + len_errstring)
{
len_errstring += strlen (objname) + 1;
local_errstring = alloca (len_errstring);
memcpy (local_errstring, errstring, len_errstring);
size_t total_len = len_errstring + strlen (objname) + 1;
local_errstring = alloca (total_len);
memcpy (local_errstring, errstring, total_len);
objname = local_errstring + len_errstring;
}
else
Expand Down

0 comments on commit 7231f6f

Please sign in to comment.