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:
Hidetoshi Tajima 2002-08-20 20:08:11 +00:00
parent aed74400ae
commit 43cb4a5a1e
8 changed files with 43 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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;