[all-commits] [llvm/llvm-project] 7a20d6: [ELF] Correctly compute .gdb_index size when symbo...
Fangrui Song via All-commits
all-commits at lists.llvm.org
Wed Aug 31 21:04:43 PDT 2022
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 7a20d6abe4e42ce5d19d50d7f90963440750507b
https://github.com/llvm/llvm-project/commit/7a20d6abe4e42ce5d19d50d7f90963440750507b
Author: Fangrui Song <i at maskray.me>
Date: 2022-08-31 (Wed, 31 Aug 2022)
Changed paths:
M lld/ELF/SyntheticSections.cpp
M lld/ELF/SyntheticSections.h
Log Message:
-----------
[ELF] Correctly compute .gdb_index size when symbol's name offset overflows
if `nameOff` overflows, `size` may be underestimated.
In writeTo, `memcpy(buf + sym.nameOff, sym.name.data(), sym.name.size());` may
cause an out-of-bounds write, leading to a SIGSEGV.
More information about the All-commits
mailing list