mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-01 23:13:40 +02:00
Fix read past end of the string. (#50404, fix from Jonas Borgström)
Wed May 2 11:10:22 2001 Owen Taylor <otaylor@redhat.com> * gutf8.c (g_utf8_to_ucs4_fast): Fix read past end of the string. (#50404, fix from Jonas Borgström)
This commit is contained in:
@@ -1,3 +1,8 @@
|
||||
Wed May 2 11:10:22 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gutf8.c (g_utf8_to_ucs4_fast): Fix read past end of the string.
|
||||
(#50404, fix from Jonas Borgström)
|
||||
|
||||
Sun Apr 29 00:37:34 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* ghook.[hc]: made hook ids a gulong.
|
||||
|
@@ -1,3 +1,8 @@
|
||||
Wed May 2 11:10:22 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gutf8.c (g_utf8_to_ucs4_fast): Fix read past end of the string.
|
||||
(#50404, fix from Jonas Borgström)
|
||||
|
||||
Sun Apr 29 00:37:34 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* ghook.[hc]: made hook ids a gulong.
|
||||
|
@@ -1,3 +1,8 @@
|
||||
Wed May 2 11:10:22 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gutf8.c (g_utf8_to_ucs4_fast): Fix read past end of the string.
|
||||
(#50404, fix from Jonas Borgström)
|
||||
|
||||
Sun Apr 29 00:37:34 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* ghook.[hc]: made hook ids a gulong.
|
||||
|
@@ -1,3 +1,8 @@
|
||||
Wed May 2 11:10:22 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gutf8.c (g_utf8_to_ucs4_fast): Fix read past end of the string.
|
||||
(#50404, fix from Jonas Borgström)
|
||||
|
||||
Sun Apr 29 00:37:34 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* ghook.[hc]: made hook ids a gulong.
|
||||
|
@@ -1,3 +1,8 @@
|
||||
Wed May 2 11:10:22 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gutf8.c (g_utf8_to_ucs4_fast): Fix read past end of the string.
|
||||
(#50404, fix from Jonas Borgström)
|
||||
|
||||
Sun Apr 29 00:37:34 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* ghook.[hc]: made hook ids a gulong.
|
||||
|
@@ -1,3 +1,8 @@
|
||||
Wed May 2 11:10:22 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gutf8.c (g_utf8_to_ucs4_fast): Fix read past end of the string.
|
||||
(#50404, fix from Jonas Borgström)
|
||||
|
||||
Sun Apr 29 00:37:34 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* ghook.[hc]: made hook ids a gulong.
|
||||
|
@@ -1,3 +1,8 @@
|
||||
Wed May 2 11:10:22 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gutf8.c (g_utf8_to_ucs4_fast): Fix read past end of the string.
|
||||
(#50404, fix from Jonas Borgström)
|
||||
|
||||
Sun Apr 29 00:37:34 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* ghook.[hc]: made hook ids a gulong.
|
||||
|
@@ -1,3 +1,8 @@
|
||||
Wed May 2 11:10:22 2001 Owen Taylor <otaylor@redhat.com>
|
||||
|
||||
* gutf8.c (g_utf8_to_ucs4_fast): Fix read past end of the string.
|
||||
(#50404, fix from Jonas Borgström)
|
||||
|
||||
Sun Apr 29 00:37:34 2001 Tim Janik <timj@gtk.org>
|
||||
|
||||
* ghook.[hc]: made hook ids a gulong.
|
||||
|
@@ -660,7 +660,7 @@ g_utf8_to_ucs4_fast (const gchar *str,
|
||||
}
|
||||
else
|
||||
{
|
||||
while (*p && p < str + len)
|
||||
while (p < str + len && *p)
|
||||
{
|
||||
p = g_utf8_next_char (p);
|
||||
++n_chars;
|
||||
|
Reference in New Issue
Block a user