]> git.ipfire.org Git - thirdparty/curl.git/commit
ws: Reject frames with unknown reserved bits set
authorAndrew Kaster <andrew@ladybird.org>
Tue, 21 Jan 2025 16:57:46 +0000 (09:57 -0700)
committerDaniel Stenberg <daniel@haxx.se>
Tue, 28 Jan 2025 09:19:39 +0000 (10:19 +0100)
commit1b740aedcdebe3c15e202c215c56a0ed12d53501
tree03affec55d3e6a4f488858a2e6d365461eadc5f7
parente2ec7bf1b40d20338c7db18932160cd01a125007
ws: Reject frames with unknown reserved bits set

RFC 6455 Section 5.2 notes that for bits RSV1, RSV2, and RSV3 of the
framing header, a non-zero value that is not defined by a negotiated
extension MUST Fail the WebSocket connection.

Test 2310 verifies

Closes #16069
.github/workflows/windows.yml
lib/ws.c
tests/data/Makefile.am
tests/data/test2310 [new file with mode: 0644]
tests/libtest/Makefile.inc
tests/libtest/lib2310.c [new file with mode: 0644]