mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-24 03:02:10 +01:00
should copy utf8string at most 'len' bytes if the given utf8string is not
* glib/gconvert.c (strdup_len): should copy utf8string at most 'len' bytes if the given utf8string is not null terminated. (#91222)
This commit is contained in:
parent
aed74400ae
commit
43cb4a5a1e
@ -1,3 +1,9 @@
|
||||
Tue Aug 20 12:59:21 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
|
||||
|
||||
* glib/gconvert.c (strdup_len): should copy utf8string
|
||||
at most 'len' bytes if the given utf8string is not null
|
||||
terminated. (#91222)
|
||||
|
||||
2002-08-18 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with
|
||||
|
@ -1,3 +1,9 @@
|
||||
Tue Aug 20 12:59:21 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
|
||||
|
||||
* glib/gconvert.c (strdup_len): should copy utf8string
|
||||
at most 'len' bytes if the given utf8string is not null
|
||||
terminated. (#91222)
|
||||
|
||||
2002-08-18 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with
|
||||
|
@ -1,3 +1,9 @@
|
||||
Tue Aug 20 12:59:21 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
|
||||
|
||||
* glib/gconvert.c (strdup_len): should copy utf8string
|
||||
at most 'len' bytes if the given utf8string is not null
|
||||
terminated. (#91222)
|
||||
|
||||
2002-08-18 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with
|
||||
|
@ -1,3 +1,9 @@
|
||||
Tue Aug 20 12:59:21 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
|
||||
|
||||
* glib/gconvert.c (strdup_len): should copy utf8string
|
||||
at most 'len' bytes if the given utf8string is not null
|
||||
terminated. (#91222)
|
||||
|
||||
2002-08-18 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with
|
||||
|
@ -1,3 +1,9 @@
|
||||
Tue Aug 20 12:59:21 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
|
||||
|
||||
* glib/gconvert.c (strdup_len): should copy utf8string
|
||||
at most 'len' bytes if the given utf8string is not null
|
||||
terminated. (#91222)
|
||||
|
||||
2002-08-18 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with
|
||||
|
@ -1,3 +1,9 @@
|
||||
Tue Aug 20 12:59:21 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
|
||||
|
||||
* glib/gconvert.c (strdup_len): should copy utf8string
|
||||
at most 'len' bytes if the given utf8string is not null
|
||||
terminated. (#91222)
|
||||
|
||||
2002-08-18 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with
|
||||
|
@ -1,3 +1,9 @@
|
||||
Tue Aug 20 12:59:21 2002 HideToshi Tajima <hidetoshi.tajima@sun.com>
|
||||
|
||||
* glib/gconvert.c (strdup_len): should copy utf8string
|
||||
at most 'len' bytes if the given utf8string is not null
|
||||
terminated. (#91222)
|
||||
|
||||
2002-08-18 Havoc Pennington <hp@pobox.com>
|
||||
|
||||
* autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with
|
||||
|
@ -881,7 +881,7 @@ strdup_len (const gchar *string,
|
||||
{
|
||||
gsize real_len;
|
||||
|
||||
if (!g_utf8_validate (string, -1, NULL))
|
||||
if (!g_utf8_validate (string, len, NULL))
|
||||
{
|
||||
if (bytes_read)
|
||||
*bytes_read = 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user