You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
and fix crash when vd_aux is invalid (llvm#86611).
vd_version, vd_flags, vd_ndx, and vd_cnt in Elf{32,64}_Verdef are
16-bit. Change VerDef to use uint16_t instead.
vda_name specifies a NUL-terminated string. Update getVersionDefinitions
to remove some `.c_str()`.
Pull Request: llvm#128434
# AUX-PAST-END: warning: '[[FILE]]': invalid SHT_GNU_verdef section with index 1: version definition 1 refers to an auxiliary entry that goes past the end of the section
9
+
10
+
--- !ELF
11
+
FileHeader:
12
+
Class: ELFCLASS64
13
+
Data: ELFDATA2LSB
14
+
Type: ET_DYN
15
+
Sections:
16
+
- Name: .gnu.version_d
17
+
Type: SHT_GNU_verdef
18
+
Entries:
19
+
- Names:
20
+
- FOO
21
+
## The correct sh_size is 28.
22
+
ShSize: 27
23
+
DynamicSymbols:
24
+
- Name: foo
25
+
26
+
## Check we report a warning when a version definition is not correctly aligned in memory.
0 commit comments