[all-commits] [llvm/llvm-project] ede7c0: [lldb/COFF] Remove strtab zeroing hack
Pavel Labath via All-commits
all-commits at lists.llvm.org
Fri Jul 17 04:26:06 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: ede7c02b38c0c3adf7fb9ee308bd0f6d92a0eb4e
https://github.com/llvm/llvm-project/commit/ede7c02b38c0c3adf7fb9ee308bd0f6d92a0eb4e
Author: Pavel Labath <pavel at labath.sk>
Date: 2020-07-17 (Fri, 17 Jul 2020)
Changed paths:
M lldb/source/Plugins/ObjectFile/PECOFF/ObjectFilePECOFF.cpp
Log Message:
-----------
[lldb/COFF] Remove strtab zeroing hack
Summary:
This code (recently responsible for a unaligned access sanitizer
failure) claims that the string table offset zero should result in an
empty string.
I cannot find any mention of this detail in the Microsoft COFF
documentation, and the llvm COFF parser also does not handle offset zero
specially. This code was introduced in 0076e7159, which also does not go
into specifics, citing "various bugfixes".
Given that this is obviously a hack, and does not cause tests to fail, I
think we should just delete it.
Reviewers: amccarth, markmentovai
Subscribers: lldb-commits
Tags: #lldb
Differential Revision: https://reviews.llvm.org/D83881
More information about the All-commits
mailing list