Skip to content

OOM when HLS playlist redirects (302) to non m3u resource (MPEG-TS ) #2301

@stari4ek

Description

@stari4ek
  • checked with dev-v1, dev-v2
  • demo player
  • there're IPTV services which redirect to MPEG-TS with 302 Moved Temporarily to show user "contact help desk" kind of errors
  • "Infinite" m3u parsing (HlsPlaylistParser.parse) with OOM in the end
  • parser pushes garbage to the list (I've got 300k elements with 200Mb+ allocated)
Queue<String> extraLines = new LinkedList<>();
// ...
extraLines.add(line);
$ curl -v http://1ttvauth.top/w/10188/1/sam/<AUTH_TOKEN>/playlist.m3u8
*   Trying 186.2.163.150...
* Connected to 1ttvauth.top (186.2.163.150) port 80 (#0)
> GET /w/10188/1/sam/<AUTH_TOKEN>/playlist.m3u8 HTTP/1.1
> Host: 1ttvauth.top
> User-Agent: curl/7.47.0
> Accept: */*
> 
< HTTP/1.1 302 Moved Temporarily
< Date: Thu, 05 Jan 2017 21:24:09 GMT
< Content-Type: application/octet-stream
< Transfer-Encoding: chunked
< Connection: keep-alive
< Keep-Alive: timeout=60
< Set-Cookie: __ddg_=97228; expires=Fri, 06-Jan-17 21:24:09 GMT; path=/; domain=.1ttvauth.top
< Access-Control-Allow-Origin: *
< Location: http://50.7.134.117/error/ts/error-114.ts
< Server: ddos-guard.net
< 
* Connection #0 to host 1ttvauth.top left intact
  • desktop players like VLC, mplayer - work well

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions