mirror of
https://github.com/golang/net.git
synced 2026-03-31 10:27:08 +09:00
The addition of FramePriorityUpdate (0x10) in RFC 9218 introduced a gap in the frameParsers array indices (0x0a-0x0f). These indices were initialized to nil, causing a panic when typeFrameParser accessed them for unassigned frame types (e.g., ALTSVC 0x0a). This change adds a nil check in typeFrameParser to safely fallback to parseUnknownFrame for these unassigned types, preventing the crash. Fixes golang/go#77652 Change-Id: I14d7ad85afc1eafabc46417a9fff10f9e0a22446 Reviewed-on: https://go-review.googlesource.com/c/net/+/746180 LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Damien Neil <dneil@google.com> Auto-Submit: Damien Neil <dneil@google.com> Reviewed-by: Mark Freeman <markfreeman@google.com>