After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 562393 - g_buffered_input_stream_read_byte broken if data available
g_buffered_input_stream_read_byte broken if data available
Status: RESOLVED FIXED
Product: glib
Classification: Platform
Component: gio
2.19.x
Other Linux
: Normal normal
: ---
Assigned To: gtkdev
gtkdev
Depends on:
Blocks:
 
 
Reported: 2008-11-26 22:29 UTC by Philip Withnall
Modified: 2008-11-28 06:14 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Fix data availability condition in g_buffered_input_stream_read_byte. (402 bytes, patch)
2008-11-26 22:30 UTC, Philip Withnall
committed Details | Review

Description Philip Withnall 2008-11-26 22:29:48 UTC
If data is available (in the buffer), g_buffered_input_stream_read_byte will skip over returning it. Patch coming.
Comment 1 Philip Withnall 2008-11-26 22:30:21 UTC
Created attachment 123500 [details] [review]
Fix data availability condition in g_buffered_input_stream_read_byte.
Comment 2 Matthias Clasen 2008-11-28 05:57:15 UTC
2008-11-28  Matthias Clasen  <mclasen@redhat.com>

        Bug 562393 – g_buffered_input_stream_read_byte broken if data
        available

        * gio/gbufferedinputstream.c (g_buffered_input_stream_read_byte): Fix
        handling of buffered content.  Patch by Philip Withnall

        * gio/tests/buffered-input-stream.c: Add a testcase for this bug.
        * gio/tests/Makefile.am: And build it