validate 'len' argument properly for the case that input string is not

* glib/gconvert.c (strdup_len): validate 'len' argument properly
	for the case that input string is not null-terminated. (#91222)
This commit is contained in:
Hidetoshi Tajima 2002-08-20 23:03:17 +00:00
parent 896f4116ad
commit ffe04247cc
8 changed files with 36 additions and 1 deletions

View 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

View 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

View 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

View 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

View 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

View 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

View 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

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;