[PATCH] libdwfl: Fix wrong type to make gcc -fsanitize=undefined happy.

Mark Wielaard mjw at redhat.com
Tue Apr 28 15:37:05 UTC 2015


On Thu, 2015-04-23 at 10:05 -0700, Roland McGrath wrote:
> > Something like can be done without unions:
> > 
> > #define msgstr (*(char (*)[sizeof msgtable])&msgtable)
> > 
> > AFACT it's well-defined C and permits to perform bound checking.
> 
> That's less clean than a union.

I like the union solution more too. Please do push it.

Thanks,

Mark


More information about the elfutils-devel mailing list