mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-02-23 10:42:11 +01:00
Guard against bogus return value from strxfrm(). For instance Microsoft's
2004-08-21 Tor Lillqvist <tml@iki.fi> * glib/gunicollate.c (g_utf8_collate_key): Guard against bogus return value from strxfrm(). For instance Microsoft's strxfrm() returns INT_MAX on errors. (#141124)
This commit is contained in:
parent
f2daf6dece
commit
c43edd263b
10
ChangeLog
10
ChangeLog
@ -1,3 +1,9 @@
|
||||
2004-08-21 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gunicollate.c (g_utf8_collate_key): Guard against bogus
|
||||
return value from strxfrm(). For instance Microsoft's strxfrm()
|
||||
returns INT_MAX on errors. (#141124)
|
||||
|
||||
2004-08-19 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gunicollate.c (g_utf8_collate, g_utf8_collate_key): Correct
|
||||
@ -9,11 +15,11 @@
|
||||
* configure.in: Added "bs" to ALL_LINGUAS.
|
||||
|
||||
2004-08-13 Matthias Clasen <clasen@redhat.com>
|
||||
|
||||
|
||||
* configure.in: Post-release version bump.
|
||||
|
||||
* === Released 2.4.6 ===
|
||||
|
||||
|
||||
Fri Aug 13 01:25:06 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* NEWS: Updates.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-08-21 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gunicollate.c (g_utf8_collate_key): Guard against bogus
|
||||
return value from strxfrm(). For instance Microsoft's strxfrm()
|
||||
returns INT_MAX on errors. (#141124)
|
||||
|
||||
2004-08-19 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gunicollate.c (g_utf8_collate, g_utf8_collate_key): Correct
|
||||
@ -9,11 +15,11 @@
|
||||
* configure.in: Added "bs" to ALL_LINGUAS.
|
||||
|
||||
2004-08-13 Matthias Clasen <clasen@redhat.com>
|
||||
|
||||
|
||||
* configure.in: Post-release version bump.
|
||||
|
||||
* === Released 2.4.6 ===
|
||||
|
||||
|
||||
Fri Aug 13 01:25:06 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* NEWS: Updates.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-08-21 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gunicollate.c (g_utf8_collate_key): Guard against bogus
|
||||
return value from strxfrm(). For instance Microsoft's strxfrm()
|
||||
returns INT_MAX on errors. (#141124)
|
||||
|
||||
2004-08-19 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gunicollate.c (g_utf8_collate, g_utf8_collate_key): Correct
|
||||
@ -9,11 +15,11 @@
|
||||
* configure.in: Added "bs" to ALL_LINGUAS.
|
||||
|
||||
2004-08-13 Matthias Clasen <clasen@redhat.com>
|
||||
|
||||
|
||||
* configure.in: Post-release version bump.
|
||||
|
||||
* === Released 2.4.6 ===
|
||||
|
||||
|
||||
Fri Aug 13 01:25:06 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* NEWS: Updates.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-08-21 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gunicollate.c (g_utf8_collate_key): Guard against bogus
|
||||
return value from strxfrm(). For instance Microsoft's strxfrm()
|
||||
returns INT_MAX on errors. (#141124)
|
||||
|
||||
2004-08-19 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gunicollate.c (g_utf8_collate, g_utf8_collate_key): Correct
|
||||
@ -9,11 +15,11 @@
|
||||
* configure.in: Added "bs" to ALL_LINGUAS.
|
||||
|
||||
2004-08-13 Matthias Clasen <clasen@redhat.com>
|
||||
|
||||
|
||||
* configure.in: Post-release version bump.
|
||||
|
||||
* === Released 2.4.6 ===
|
||||
|
||||
|
||||
Fri Aug 13 01:25:06 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* NEWS: Updates.
|
||||
|
@ -1,3 +1,9 @@
|
||||
2004-08-21 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gunicollate.c (g_utf8_collate_key): Guard against bogus
|
||||
return value from strxfrm(). For instance Microsoft's strxfrm()
|
||||
returns INT_MAX on errors. (#141124)
|
||||
|
||||
2004-08-19 Tor Lillqvist <tml@iki.fi>
|
||||
|
||||
* glib/gunicollate.c (g_utf8_collate, g_utf8_collate_key): Correct
|
||||
@ -9,11 +15,11 @@
|
||||
* configure.in: Added "bs" to ALL_LINGUAS.
|
||||
|
||||
2004-08-13 Matthias Clasen <clasen@redhat.com>
|
||||
|
||||
|
||||
* configure.in: Post-release version bump.
|
||||
|
||||
* === Released 2.4.6 ===
|
||||
|
||||
|
||||
Fri Aug 13 01:25:06 2004 Matthias Clasen <maclas@gmx.de>
|
||||
|
||||
* NEWS: Updates.
|
||||
|
@ -231,6 +231,14 @@ g_utf8_collate_key (const gchar *str,
|
||||
if (str_locale)
|
||||
{
|
||||
xfrm_len = strxfrm (NULL, str_locale, 0);
|
||||
if (xfrm_len < 0 || xfrm_len >= G_MAXINT - 2)
|
||||
{
|
||||
g_free (str_locale);
|
||||
str_locale = NULL;
|
||||
}
|
||||
}
|
||||
if (str_locale)
|
||||
{
|
||||
result = g_malloc (xfrm_len + 2);
|
||||
result[0] = 'A';
|
||||
strxfrm (result + 1, str_locale, xfrm_len + 1);
|
||||
|
Loading…
x
Reference in New Issue
Block a user