QGrpcHttp2Channel: validate server-sent grpc-status range


The parsed value was cast directly to StatusCode without a range check.
A hostile server could send e.g. "99" or "-1", narrowing into an
undefined StatusCode enumerator that application switch statements may
branch on unpredictably.

Reject any value outside [0, Unauthenticated] with StatusCode::Unknown
instead, mirroring upstream gRPC's own GRPC_STATUS_UNKNOWN fallback for
invalid status codes.

Pick-to: 6.12 6.11 6.8
Fixes: QTBUG-148148
Change-Id: Ib251e39459cd44786e9264e2b4e6657ae8b6128e
Reviewed-by: Ivan Solovev <ivan.solovev@qt.io>
commit73e54ca3dc29465412d23ec80d5473d7010c4276
parent378ea257f8ced5e52430d6e587025205f20e4240
authorDennis Oberst <dennis.oberst@qt.io>
committerDennis Oberst <dennis.oberst@qt.io>
commit timeTue, 21 Jul 2026 18:18:28 +0000