ginputstream: Don’t skip off the end of resizable streams
The default implementation of g_input_stream_skip()
can skip off the
end of resizable streams, as that’s the behaviour of g_seekable_seek()
for that type of stream.
This has previously been fixed for local file input streams (commit
89f96158), and a unit test added there.
However, the fix should be more generally made in GInputStream
.
This commit reworks an old patch by Dan Winship on https://bugzilla.gnome.org/show_bug.cgi?id=681374, which took that approach.
Signed-off-by: Philip Withnall pwithnall@endlessos.org
Fixes: #587 (closed)