This is the mail archive of the mailing list for the glibc project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

GNU C Library master sources branch master updated. glibc-2.22-604-g04ae79a

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU C Library master sources".

The branch, master has been updated
       via  04ae79a363e2a85096c4dbdf6d5469d3a19a6907 (commit)
      from  eed3e1eb79bcfa9b52609fd875fa2d522e2d6bce (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------;a=commitdiff;h=04ae79a363e2a85096c4dbdf6d5469d3a19a6907

commit 04ae79a363e2a85096c4dbdf6d5469d3a19a6907
Author: Florian Weimer <>
Date:   Tue Dec 15 09:49:17 2015 +0100

    Fix aliasing violation in tst-rec-dlopen

diff --git a/ChangeLog b/ChangeLog
index aadde3f..3b1750c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2015-12-15  Florian Weimer  <>
+	* dlfcn/tst-rec-dlopen.c (call_func): Cast dlsym result, fixing an
+	aliasing violation.
 2015-12-14  Joseph Myers  <>
 	[BZ #18472]
diff --git a/dlfcn/tst-rec-dlopen.c b/dlfcn/tst-rec-dlopen.c
index 01353fb..1ab7aa9 100644
--- a/dlfcn/tst-rec-dlopen.c
+++ b/dlfcn/tst-rec-dlopen.c
@@ -57,7 +57,7 @@ call_func (const char *dso_name, const char *func_name)
   dlerror ();
   /* Lookup func.  */
-  *(void **) (&func) = dlsym (dso, func_name);
+  func = (int (*) (void)) dlsym (dso, func_name);
   if (func == NULL)
       err = dlerror ();


Summary of changes:
 ChangeLog              |    5 +++++
 dlfcn/tst-rec-dlopen.c |    2 +-
 2 files changed, 6 insertions(+), 1 deletions(-)

GNU C Library master sources

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]