[all-commits] [llvm/llvm-project] 25863c: [ELF] .note.gnu.property: error for invalid pr_dat...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Tue Aug 25 08:06:14 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 25863cc512a38ae9b1235ee62faa79ff2aa3c226
https://github.com/llvm/llvm-project/commit/25863cc512a38ae9b1235ee62faa79ff2aa3c226
Author: Fangrui Song <i at maskray.me>
Date: 2020-08-25 (Tue, 25 Aug 2020)
Changed paths:
M lld/ELF/InputFiles.cpp
A lld/test/ELF/gnu-property-err.s
Log Message:
-----------
[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
More information about the All-commits
mailing list