Browse Source

fix integer overflow in elf.h macro SHF_EXCLUDE

Rich Felker 10 năm trước cách đây
mục cha
commit
e98a54643e
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      include/elf.h

+ 1 - 1
include/elf.h

@@ -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