mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-11 11:44:03 +02:00
Bug 604457 - gutf8inputstream.c: increasing unknown size pointer
This commit is contained in:
@@ -271,7 +271,7 @@ g_utf8_input_stream_read (GInputStream *stream,
|
|||||||
base_stream = g_filter_input_stream_get_base_stream (G_FILTER_INPUT_STREAM (stream));
|
base_stream = g_filter_input_stream_get_base_stream (G_FILTER_INPUT_STREAM (stream));
|
||||||
|
|
||||||
nread = g_input_stream_read (base_stream,
|
nread = g_input_stream_read (base_stream,
|
||||||
buffer + oldread,
|
(char *)buffer + oldread,
|
||||||
count - oldread,
|
count - oldread,
|
||||||
cancellable,
|
cancellable,
|
||||||
error);
|
error);
|
||||||
@@ -289,7 +289,7 @@ g_utf8_input_stream_read (GInputStream *stream,
|
|||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
/* validate */
|
/* validate */
|
||||||
valid = g_utf8_validate (buffer + offset, nread - offset, &end);
|
valid = g_utf8_validate ((char *)buffer + offset, nread - offset, &end);
|
||||||
nvalid = end - (char *)buffer;
|
nvalid = end - (char *)buffer;
|
||||||
|
|
||||||
if (valid)
|
if (valid)
|
||||||
|
Reference in New Issue
Block a user