websockets: check for negative payload lengths

- in en- and decoding, check the websocket frame payload lengths for
  negative values (from curl_off_t) and error the operation in that case
- add test 2307 to verify

Closes #12707
This commit is contained in:
Stefan Eissing 2024-01-15 13:02:34 +01:00 committed by Daniel Stenberg
parent 9034a16d97
commit 49ca84144e
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
4 changed files with 85 additions and 1 deletions

View file

@ -81,6 +81,8 @@
2301
2302
2305
# response body seem not to be handled by hyper
2307
%endif
2043
# The CRL test (313) doesn't work with rustls because rustls doesn't support