mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2024-12-29 08:56:15 +01:00
giochannel: Fix length_size bounds check
The inverted condition is an obvious error introduced by ecdf91400e
.
Fixes https://gitlab.gnome.org/GNOME/glib/-/issues/2323
This commit is contained in:
parent
fa248f7f71
commit
a149bf2f90
@ -899,7 +899,7 @@ g_io_channel_set_line_term (GIOChannel *channel,
|
|||||||
{
|
{
|
||||||
/* FIXME: We’re constrained by line_term_len being a guint here */
|
/* FIXME: We’re constrained by line_term_len being a guint here */
|
||||||
gsize length_size = strlen (line_term);
|
gsize length_size = strlen (line_term);
|
||||||
g_return_if_fail (length_size > G_MAXUINT);
|
g_return_if_fail (length_size <= G_MAXUINT);
|
||||||
length_unsigned = (guint) length_size;
|
length_unsigned = (guint) length_size;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user