summaryrefslogtreecommitdiff
path: root/lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2024-05-23 11:23:07 +0200
committerGitHub <noreply@github.com>2024-05-23 11:23:07 +0200
commita2824632cba8e7d98a5cbf9acb3ca5d9960c95cb (patch)
tree0a05a2d76d1662c73f172933aa1dc2059f97deba /lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp
parent8930ba98e01bc66949e482b396f8389d64388359 (diff)
[lldb/DWARF] Make sure bad abbreviation codes do not crash lldb (#93006)
We currently cannot represent abbreviation codes with more than 16 bits, and we were lldb-asserting if we ever ran into one. While I haven't seen any real DWARF with these kinds of abbreviations, it is possible to hit this with handcrafted evil dwarf, due some sort of corruptions, or just bugs (the addition of PeekDIEName makes these bugs more likely, as the function blindly dereferences offsets within the debug info section) . Missing abbreviations were already reporting an error. This patch turns sure that large abbreviations into an error as well, and adds a test for both cases.
Diffstat (limited to 'lldb/source/Plugins/ScriptInterpreter/Python/ScriptInterpreterPython.cpp')
0 files changed, 0 insertions, 0 deletions