[PATCH] D65391: [ELF.h] - Check the case when e_shstrndx=SHN_XINDEX, but the corresponding sh_link is broken.

Fangrui Song via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Wed Jul 31 05:03:08 PDT 2019


MaskRay accepted this revision.
MaskRay added a comment.
This revision is now accepted and ready to land.

> should be taken from zero section sh_link field

the sh_link field of the section header at index 0?



================
Comment at: test/Object/invalid.test:610
+
+## Check the case when e_shstrndx == SHN_XINDEX, but null section's sh_link contains
+## index of section header string table that is larger than number of the sections.
----------------
null section -> the section header at index 0


CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D65391/new/

https://reviews.llvm.org/D65391





More information about the llvm-commits mailing list