-
Notifications
You must be signed in to change notification settings - Fork 2.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
gopls/internal/crash: don't crash in xrefs on out of bound nodes
As we've seen many times, it is currently (unfortunately) possible that go/ast nodes exceed the bounds of the parsed file. Handle this possibility correctly while building the xrefs index. Updates golang/go#66683 Fixes golang/go#70446 Change-Id: If6364876eb7b8ed8ca11a058417aa028d6b55b41 Reviewed-on: https://go-review.googlesource.com/c/tools/+/630675 LUCI-TryBot-Result: Go LUCI <[email protected]> Auto-Submit: Robert Findley <[email protected]> Reviewed-by: Alan Donovan <[email protected]>
- Loading branch information
Showing
1 changed file
with
19 additions
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters