Skip to content

ginputstream: Don’t skip off the end of resizable streams

Philip Withnall requested to merge pwithnall/glib:587-seek-behaviour into master

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, which took that approach.

Signed-off-by: Philip Withnall

Fixes: #587 (closed)

Merge request reports