HomePhabricator

[DebugInfo] Reject line tables of version > 5

Authored by jhenderson on Feb 10 2020, 6:17 AM.

Description

[DebugInfo] Reject line tables of version > 5

If a debug line section with version of greater than 5 is encountered,
prior to this change the parser would accept it and treat it as version

  1. This might work to some extent, but then it might not at all, as it

really depends on the format of the unspecified future version, which
will be different (otherwise there would be no point in changing the
version number). Any information we could provide has a good chance of
being invalid, so we should just refuse to parse such tables.

Reviewed by: dblaikie, MaskRay

Differential Revision: https://reviews.llvm.org/D74204

Details

Committed
jhendersonFeb 10 2020, 6:43 AM
Reviewer
dblaikie
Differential Revision
D74204: [DebugInfo] Reject line tables of version > 5
Parents
rGcd37f0ad648b: [NFC] Fix line endings
Branches
Unknown
Tags
Unknown