mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-01-11 15:06:14 +01: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:
parent
81cc9074f4
commit
d4e0ae748a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user