diff --git a/ChangeLog b/ChangeLog index 782534ef4..adc5cdedd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +Tue Aug 20 12:59:21 2002 HideToshi Tajima + + * 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 * autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with diff --git a/ChangeLog.pre-2-10 b/ChangeLog.pre-2-10 index 782534ef4..adc5cdedd 100644 --- a/ChangeLog.pre-2-10 +++ b/ChangeLog.pre-2-10 @@ -1,3 +1,9 @@ +Tue Aug 20 12:59:21 2002 HideToshi Tajima + + * 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 * autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with diff --git a/ChangeLog.pre-2-12 b/ChangeLog.pre-2-12 index 782534ef4..adc5cdedd 100644 --- a/ChangeLog.pre-2-12 +++ b/ChangeLog.pre-2-12 @@ -1,3 +1,9 @@ +Tue Aug 20 12:59:21 2002 HideToshi Tajima + + * 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 * autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with diff --git a/ChangeLog.pre-2-2 b/ChangeLog.pre-2-2 index 782534ef4..adc5cdedd 100644 --- a/ChangeLog.pre-2-2 +++ b/ChangeLog.pre-2-2 @@ -1,3 +1,9 @@ +Tue Aug 20 12:59:21 2002 HideToshi Tajima + + * 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 * autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with diff --git a/ChangeLog.pre-2-4 b/ChangeLog.pre-2-4 index 782534ef4..adc5cdedd 100644 --- a/ChangeLog.pre-2-4 +++ b/ChangeLog.pre-2-4 @@ -1,3 +1,9 @@ +Tue Aug 20 12:59:21 2002 HideToshi Tajima + + * 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 * autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with diff --git a/ChangeLog.pre-2-6 b/ChangeLog.pre-2-6 index 782534ef4..adc5cdedd 100644 --- a/ChangeLog.pre-2-6 +++ b/ChangeLog.pre-2-6 @@ -1,3 +1,9 @@ +Tue Aug 20 12:59:21 2002 HideToshi Tajima + + * 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 * autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with diff --git a/ChangeLog.pre-2-8 b/ChangeLog.pre-2-8 index 782534ef4..adc5cdedd 100644 --- a/ChangeLog.pre-2-8 +++ b/ChangeLog.pre-2-8 @@ -1,3 +1,9 @@ +Tue Aug 20 12:59:21 2002 HideToshi Tajima + + * 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 * autogen.sh: hardcode aclocal-1.4/automake-1.4 so that users with diff --git a/glib/gconvert.c b/glib/gconvert.c index 8371fb5f4..545f4024f 100644 --- a/glib/gconvert.c +++ b/glib/gconvert.c @@ -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;