mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 03:02:10 +01:00
Fix an off-by-one error in g_markup_parse_context_parse(). (#142794,
Tue Jun 1 21:56:31 2004 Matthias Clasen <maclas@gmx.de> * glib/gmarkup.c (advance_char): Fix an off-by-one error in g_markup_parse_context_parse(). (#142794, Morten Welinder)
This commit is contained in:
parent
7d662e34e2
commit
d131dec3eb
@ -1,3 +1,8 @@
|
|||||||
|
Tue Jun 1 21:56:31 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gmarkup.c (advance_char): Fix an off-by-one error
|
||||||
|
in g_markup_parse_context_parse(). (#142794, Morten Welinder)
|
||||||
|
|
||||||
Sun May 16 23:20:33 2004 Matthias Clasen <maclas@gmx.de>
|
Sun May 16 23:20:33 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* glib/gcompletion.c (g_completion_add_items):
|
* glib/gcompletion.c (g_completion_add_items):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Tue Jun 1 21:56:31 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gmarkup.c (advance_char): Fix an off-by-one error
|
||||||
|
in g_markup_parse_context_parse(). (#142794, Morten Welinder)
|
||||||
|
|
||||||
Sun May 16 23:20:33 2004 Matthias Clasen <maclas@gmx.de>
|
Sun May 16 23:20:33 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* glib/gcompletion.c (g_completion_add_items):
|
* glib/gcompletion.c (g_completion_add_items):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Tue Jun 1 21:56:31 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gmarkup.c (advance_char): Fix an off-by-one error
|
||||||
|
in g_markup_parse_context_parse(). (#142794, Morten Welinder)
|
||||||
|
|
||||||
Sun May 16 23:20:33 2004 Matthias Clasen <maclas@gmx.de>
|
Sun May 16 23:20:33 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* glib/gcompletion.c (g_completion_add_items):
|
* glib/gcompletion.c (g_completion_add_items):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Tue Jun 1 21:56:31 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gmarkup.c (advance_char): Fix an off-by-one error
|
||||||
|
in g_markup_parse_context_parse(). (#142794, Morten Welinder)
|
||||||
|
|
||||||
Sun May 16 23:20:33 2004 Matthias Clasen <maclas@gmx.de>
|
Sun May 16 23:20:33 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* glib/gcompletion.c (g_completion_add_items):
|
* glib/gcompletion.c (g_completion_add_items):
|
||||||
|
@ -1,3 +1,8 @@
|
|||||||
|
Tue Jun 1 21:56:31 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
|
* glib/gmarkup.c (advance_char): Fix an off-by-one error
|
||||||
|
in g_markup_parse_context_parse(). (#142794, Morten Welinder)
|
||||||
|
|
||||||
Sun May 16 23:20:33 2004 Matthias Clasen <maclas@gmx.de>
|
Sun May 16 23:20:33 2004 Matthias Clasen <maclas@gmx.de>
|
||||||
|
|
||||||
* glib/gcompletion.c (g_completion_add_items):
|
* glib/gcompletion.c (g_completion_add_items):
|
||||||
|
@ -662,16 +662,21 @@ unescape_text (GMarkupParseContext *context,
|
|||||||
static gboolean
|
static gboolean
|
||||||
advance_char (GMarkupParseContext *context)
|
advance_char (GMarkupParseContext *context)
|
||||||
{
|
{
|
||||||
|
g_return_val_if_fail (context->iter != context->current_text_end, FALSE);
|
||||||
|
|
||||||
context->iter = g_utf8_next_char (context->iter);
|
context->iter = g_utf8_next_char (context->iter);
|
||||||
context->char_number += 1;
|
context->char_number += 1;
|
||||||
|
|
||||||
|
if (context->iter == context->current_text_end)
|
||||||
|
return FALSE;
|
||||||
|
|
||||||
if (*context->iter == '\n')
|
if (*context->iter == '\n')
|
||||||
{
|
{
|
||||||
context->line_number += 1;
|
context->line_number += 1;
|
||||||
context->char_number = 1;
|
context->char_number = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
return context->iter != context->current_text_end;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
static gboolean
|
||||||
|
Loading…
x
Reference in New Issue
Block a user