[PATCH] elf.h SHF_EXCLUDE signed int 31 bit shift triggers undefined behaviour.
Florian Weimer
fweimer@redhat.com
Wed Apr 22 08:15:00 GMT 2015
On 04/21/2015 11:20 AM, Mark Wielaard wrote:
> -#define SHF_EXCLUDE (1 << 31) /* Section is excluded unless
> +#define SHF_EXCLUDE (1U << 31) /* Section is excluded unless
I think the safer change is to use -0x80000000 as the value of the
constant, without making it unsigned. Otherwise my previous objections
apply.
I'm sorry it has come to this, I can empathize with your struggles to
get patches applied to glibc.
--
Florian Weimer / Red Hat Product Security
More information about the Libc-alpha
mailing list