you can trace the code to see for how many years it did that, not by me.

again, no stream is unseekable completely, it can seekable in the buffered
bytes range if you have a buffer layer.


2014-04-13 9:08 GMT+08:00 Trent Nelson <notifications@github.com>:

> In xbmc/filesystem/CurlFile.cpp:
>
> > @@ -1134,6 +1134,10 @@ bool CCurlFile::Exists(const CURL& url)
> >  int64_t CCurlFile::Seek(int64_t iFilePosition, int iWhence)
> >  {
> >    int64_t nextPos = m_state->m_filePos;
> > +
> > +  if(!m_seekable)
> > +    return -1;
> > +
>
> Without this change, we will attempt a seek on streams explicitly marked
> as unseekable. Sounds like UB to me. Sounds dangerous to me.
>
> --
> Reply to this email directly or view it on GitHub<https://github.com/xbmc/xbmc/pull/4546/files#r11562765>
> .
>