Menu

#109 is_seekable() returns false for streams creted fmemopen

None
closed
nobody
None
5
2020-08-04
2015-06-17
No

For cases where we pass a buffer and buffer_size to open_read and have
fmemopen, is_seekable was returning false. The effect of this is that reading files and using format auto-detection fails when reading.
With this patch applied the implementation checks whether seeking actually works when files are not
regular files.

1 Attachments

Discussion

  • Stefan Sauer

    Stefan Sauer - 2015-06-24

    Improved version that also handles fstat failing, the current code would read uninitialized memory.

     
  • Mans Rullgard

    Mans Rullgard - 2020-08-04
    • status: open --> closed
    • Group: -->
     
  • Mans Rullgard

    Mans Rullgard - 2020-08-04

    I have applied a simper version with just the fseek() test.

     

Log in to post a comment.