hls.js
hls.js copied to clipboard
HLS clients SHOULD range-check responses
Is your feature request related to a problem? Please describe.
Clients SHOULD range-check responses to prevent buffer overflows.
We've encountered at least one issue (#7001) where a server did not respond to a range request correctly (or a browser did not send the request correctly) and the response contained the wrong number of bytes.
Describe the solution you'd like
This was investigated and draft changes were made (https://github.com/video-dev/hls.js/compare/master...task/log-byte-ranges), but we still need a complete PR that addresses the issue for all loaders (xhr and fetch).
Additional context
No response