]> granicus.if.org Git - musl/commitdiff
fix integer overflow in elf.h macro SHF_EXCLUDE
authorRich Felker <dalias@aerifal.cx>
Fri, 1 May 2015 17:35:51 +0000 (13:35 -0400)
committerRich Felker <dalias@aerifal.cx>
Fri, 1 May 2015 17:35:51 +0000 (13:35 -0400)
include/elf.h

index c748c445ee5cd6028bb9467e3601032bff8f22fb..1d43670c6e9541bea31cdf0afbda3da3c5066d42 100644 (file)
@@ -319,7 +319,7 @@ typedef struct {
 #define SHF_MASKOS          0x0ff00000
 #define SHF_MASKPROC        0xf0000000
 #define SHF_ORDERED         (1 << 30)
-#define SHF_EXCLUDE         (1 << 31)
+#define SHF_EXCLUDE         (1U << 31)
 
 #define GRP_COMDAT     0x1