From cbe50578f886cced15d32e9fe2a65324c6de53f4 Mon Sep 17 00:00:00 2001 From: Peter Hutterer Date: Fri, 17 Apr 2026 10:33:14 +1000 Subject: [PATCH] randr/rrsdispatch: reject invalid format in SProcRRChangeProviderProperty No real effect here since we check stuff->format early in ProcRRChangeProviderProperty anyway. But this just makes it a bit more obvious (and more consistent with other functions). Assisted-by: Claude:claude-claude-opus-4-6 Part-of: --- randr/rrsdispatch.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/randr/rrsdispatch.c b/randr/rrsdispatch.c index 2bc7dc1f6..cfd7afa4a 100644 --- a/randr/rrsdispatch.c +++ b/randr/rrsdispatch.c @@ -519,6 +519,9 @@ SProcRRChangeProviderProperty(ClientPtr client) case 32: SwapRestL(stuff); break; + default: + client->errorValue = stuff->format; + return BadValue; } return ProcRandrVector[stuff->randrReqType] (client); }