Skip to content
Commit fb4041ae authored by Mark Wielaard's avatar Mark Wielaard Committed by Florian Weimer
Browse files

elf.h SHF_EXCLUDE signed int 31 bit shift triggers undefined behaviour.

Any use of SHF_EXCLUDE in code that tries to check it against sh_flags
will trigger undefined behaviour because it is defined as a 31 bit shift
against an signed integer. Fix by explicitly using an unsigned int.
parent 3f2e21e9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment