Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F149807034
D8701.id22688.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
539 B
Referenced Files
None
Subscribers
None
D8701.id22688.diff
View Options
Index: contrib/elftoolchain/libelf/libelf_ehdr.c
===================================================================
--- contrib/elftoolchain/libelf/libelf_ehdr.c
+++ contrib/elftoolchain/libelf/libelf_ehdr.c
@@ -193,7 +193,7 @@
return (NULL);
}
- if (shnum != 0 || shoff == 0LL) { /* not using extended numbering */
+ if (shnum != 0 && phnum != PN_XNUM && strndx != SHN_XINDEX && shoff == 0LL) { /* not using extended numbering */
e->e_u.e_elf.e_nphdr = phnum;
e->e_u.e_elf.e_nscn = shnum;
e->e_u.e_elf.e_strndx = strndx;
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sat, Mar 28, 6:17 AM (1 h, 54 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
30460701
Default Alt Text
D8701.id22688.diff (539 B)
Attached To
Mode
D8701: libelf: Fix extended numbering detection
Attached
Detach File
Event Timeline
Log In to Comment