mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-03-11 18:33:18 +01:00
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:
parent
896f4116ad
commit
ffe04247cc
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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
|
||||
|
@ -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