Reject block options with an oversized value


A Block1 or Block2 option value is 0-3 bytes (RFC 7959 §2.2).
createFromFrame() accepted longer values, decoding them into a block
number that overflows the 20-bit NUM field.

Reject a block option whose value exceeds 3 bytes while parsing, next
to the existing reserved-SZX check, so the invalid value never enters
the reply.

Task-number: QTBUG-149345
Pick-to: 6.12 6.11 6.8
Change-Id: Ic228c3c20705e5c1dc7d3b671a91201e1215aec7
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
commit57ce6be4a1c457a15d666697d0e98c48f55ccd80
parentff567721167650f0b9215f40875f3a8b8c87a8e7
authorMate Barany <mate.barany@qt.io>
committerMate Barany <mate.barany@qt.io>
commit timeWed, 2 Sep 2026 07:31:04 +0000