mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-09-28 01:57:14 +02: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:
@@ -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>
|
2002-08-10 Gustavo Noronha Silva <kov@debian.org>
|
||||||
|
|
||||||
* configure.in: added pt_BR to ALL_LINGUAS
|
* 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>
|
2002-08-10 Gustavo Noronha Silva <kov@debian.org>
|
||||||
|
|
||||||
* configure.in: added pt_BR to ALL_LINGUAS
|
* 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>
|
2002-08-10 Gustavo Noronha Silva <kov@debian.org>
|
||||||
|
|
||||||
* configure.in: added pt_BR to ALL_LINGUAS
|
* 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>
|
2002-08-10 Gustavo Noronha Silva <kov@debian.org>
|
||||||
|
|
||||||
* configure.in: added pt_BR to ALL_LINGUAS
|
* 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>
|
2002-08-10 Gustavo Noronha Silva <kov@debian.org>
|
||||||
|
|
||||||
* configure.in: added pt_BR to ALL_LINGUAS
|
* 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>
|
2002-08-10 Gustavo Noronha Silva <kov@debian.org>
|
||||||
|
|
||||||
* configure.in: added pt_BR to ALL_LINGUAS
|
* 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>
|
2002-08-10 Gustavo Noronha Silva <kov@debian.org>
|
||||||
|
|
||||||
* configure.in: added pt_BR to ALL_LINGUAS
|
* configure.in: added pt_BR to ALL_LINGUAS
|
||||||
|
@@ -881,7 +881,7 @@ strdup_len (const gchar *string,
|
|||||||
{
|
{
|
||||||
gsize real_len;
|
gsize real_len;
|
||||||
|
|
||||||
if (!g_utf8_validate (string, -1, NULL))
|
if (!g_utf8_validate (string, len, NULL))
|
||||||
{
|
{
|
||||||
if (bytes_read)
|
if (bytes_read)
|
||||||
*bytes_read = 0;
|
*bytes_read = 0;
|
||||||
|
Reference in New Issue
Block a user