+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
to run_roundtrip_tests().
2004-08-01 Matthias Clasen <mclasen@redhat.com>
-
+
* Post-release version bump
* === Released 2.5.1 ===
+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
to run_roundtrip_tests().
2004-08-01 Matthias Clasen <mclasen@redhat.com>
-
+
* Post-release version bump
* === Released 2.5.1 ===
+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
to run_roundtrip_tests().
2004-08-01 Matthias Clasen <mclasen@redhat.com>
-
+
* Post-release version bump
* === Released 2.5.1 ===
+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
to run_roundtrip_tests().
2004-08-01 Matthias Clasen <mclasen@redhat.com>
-
+
* Post-release version bump
* === Released 2.5.1 ===
+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
to run_roundtrip_tests().
2004-08-01 Matthias Clasen <mclasen@redhat.com>
-
+
* Post-release version bump
* === Released 2.5.1 ===
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);