Wally Yau 8a46cf0fcf call uselocale() before freelocale() to make sure that g_local_key has a valid locale.
For tests that call uselocale(), the locale is stored in the
g_userlocale_key thread-specific key. If freelocale() is called later,
then g_uselocal_key points to a deleted pointer. CTS eventually calls
vfprintf to print the result, which calls MB_CUR_MAX and MB_CUR_MAX
accesses the deleted locale stored in g_uselocale_key, causing unpredictable
errors.

Fixed the tests by calling uselocale() with the old locale before
calling freelocale.

Bug: 17299565
Change-Id: I87efa2a9b16999a11d587f68d3aeedcbe6ac8a2c
2014-08-27 17:22:29 +00:00
..
2014-07-24 15:14:06 -07:00
2013-12-03 18:42:41 -08:00
2013-12-03 18:42:41 -08:00
2014-07-02 13:20:47 -07:00
2014-06-24 19:03:31 -07:00
2013-02-01 14:51:19 -08:00
2014-02-24 20:22:11 +00:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-16 15:31:55 -07:00
2014-05-14 10:02:03 -07:00
2014-04-10 20:44:27 -07:00
2014-02-21 16:27:21 +00:00
2014-07-29 10:48:34 -07:00
2014-07-30 16:33:11 -07:00
2013-02-13 14:40:48 -08:00
2014-06-12 13:16:36 -07:00
2014-01-03 14:49:37 -08:00
2014-06-12 13:16:36 -07:00