Commit 5dc8b001 authored by Simon McVittie's avatar Simon McVittie
Browse files

giochannel: Don't store negative line_term_len in GIOChannel struct

Adding test coverage indicated that this was another bug in 0cc11f74.

Fixes: 0cc11f74 "giochannel: Forbid very long line terminator strings"
Resolves: #2323

Signed-off-by: Simon McVittie's avatarSimon McVittie <smcv@collabora.com>
parent a149bf2f
......@@ -905,7 +905,7 @@ g_io_channel_set_line_term (GIOChannel *channel,
g_free (channel->line_term);
channel->line_term = line_term ? g_memdup2 (line_term, length_unsigned) : NULL;
channel->line_term_len = length;
channel->line_term_len = length_unsigned;
}
/**
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment