validate 'len' argument properly for the case that input string is not
authorHidetoshi Tajima <tajima@src.gnome.org>
Tue, 20 Aug 2002 23:03:17 +0000 (23:03 +0000)
committerHidetoshi Tajima <tajima@src.gnome.org>
Tue, 20 Aug 2002 23:03:17 +0000 (23:03 +0000)
* glib/gconvert.c (strdup_len): validate 'len' argument properly
for the case that input string is not null-terminated. (#91222)

ChangeLog
ChangeLog.pre-2-10
ChangeLog.pre-2-12
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
glib/gconvert.c

index fcc7e32..646aeaa 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+Tue Aug 20 16:01:03 2002  HideToshi Tajima  <hidetoshi.tajima@sun.com>
+
+       * glib/gconvert.c (strdup_len): validate 'len' argument properly
+       for the case that input string is not null-terminated. (#91222)
+
 2002-08-10  Gustavo Noronha Silva  <kov@debian.org>
 
        * configure.in: added pt_BR to ALL_LINGUAS
index fcc7e32..646aeaa 100644 (file)
@@ -1,3 +1,8 @@
+Tue Aug 20 16:01:03 2002  HideToshi Tajima  <hidetoshi.tajima@sun.com>
+
+       * glib/gconvert.c (strdup_len): validate 'len' argument properly
+       for the case that input string is not null-terminated. (#91222)
+
 2002-08-10  Gustavo Noronha Silva  <kov@debian.org>
 
        * configure.in: added pt_BR to ALL_LINGUAS
index fcc7e32..646aeaa 100644 (file)
@@ -1,3 +1,8 @@
+Tue Aug 20 16:01:03 2002  HideToshi Tajima  <hidetoshi.tajima@sun.com>
+
+       * glib/gconvert.c (strdup_len): validate 'len' argument properly
+       for the case that input string is not null-terminated. (#91222)
+
 2002-08-10  Gustavo Noronha Silva  <kov@debian.org>
 
        * configure.in: added pt_BR to ALL_LINGUAS
index fcc7e32..646aeaa 100644 (file)
@@ -1,3 +1,8 @@
+Tue Aug 20 16:01:03 2002  HideToshi Tajima  <hidetoshi.tajima@sun.com>
+
+       * glib/gconvert.c (strdup_len): validate 'len' argument properly
+       for the case that input string is not null-terminated. (#91222)
+
 2002-08-10  Gustavo Noronha Silva  <kov@debian.org>
 
        * configure.in: added pt_BR to ALL_LINGUAS
index fcc7e32..646aeaa 100644 (file)
@@ -1,3 +1,8 @@
+Tue Aug 20 16:01:03 2002  HideToshi Tajima  <hidetoshi.tajima@sun.com>
+
+       * glib/gconvert.c (strdup_len): validate 'len' argument properly
+       for the case that input string is not null-terminated. (#91222)
+
 2002-08-10  Gustavo Noronha Silva  <kov@debian.org>
 
        * configure.in: added pt_BR to ALL_LINGUAS
index fcc7e32..646aeaa 100644 (file)
@@ -1,3 +1,8 @@
+Tue Aug 20 16:01:03 2002  HideToshi Tajima  <hidetoshi.tajima@sun.com>
+
+       * glib/gconvert.c (strdup_len): validate 'len' argument properly
+       for the case that input string is not null-terminated. (#91222)
+
 2002-08-10  Gustavo Noronha Silva  <kov@debian.org>
 
        * configure.in: added pt_BR to ALL_LINGUAS
index fcc7e32..646aeaa 100644 (file)
@@ -1,3 +1,8 @@
+Tue Aug 20 16:01:03 2002  HideToshi Tajima  <hidetoshi.tajima@sun.com>
+
+       * glib/gconvert.c (strdup_len): validate 'len' argument properly
+       for the case that input string is not null-terminated. (#91222)
+
 2002-08-10  Gustavo Noronha Silva  <kov@debian.org>
 
        * configure.in: added pt_BR to ALL_LINGUAS
index 8371fb5..545f402 100644 (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;