[ELF] .note.gnu.property: error for invalid pr_datasize
A n_type==NT_GNU_PROPERTY_TYPE_0 note encodes a program property. If pr_datasize is invalid, LLD may crash (https://github.com/ClangBuiltLinux/linux/issues/1141) This patch adds some error checking, supports big-endian, and add some tests for invalid n_descsz. Differential Revision: https://reviews.llvm.org/D86422
Loading
Please sign in to comment