]> Cypherpunks.ru repositories - gostls13.git/commit
debug/dwarf: handle malformed line table with bad program offset
authorThan McIntosh <thanm@google.com>
Thu, 23 Jun 2022 18:11:59 +0000 (14:11 -0400)
committerThan McIntosh <thanm@google.com>
Thu, 23 Jun 2022 19:05:29 +0000 (19:05 +0000)
commitde5329f1de4cd4a938323012910310e548b2d936
tree32685844faf4dfa1419b20cf8eef413834f9f631
parent15605ca827723d568f780402d03b29842fd20eec
debug/dwarf: handle malformed line table with bad program offset

Touch up the line table reader to ensure that it can detect and reject
an invalid program offset field in the table header.

Fixes #53329.

Change-Id: Ia8d684e909af3aca3014b4a3d0dfd431e3f5a9f0
Reviewed-on: https://go-review.googlesource.com/c/go/+/413814
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
src/debug/dwarf/line.go