Wally Yau
a40fdbd565
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.
(cherry-pick of 8a46cf0fcf82b8c76e05be7e066ec854f974603a.)
Bug: 17299565
Change-Id: I87efa2a9b16999a11d587f68d3aeedcbe6ac8a2c
2014-08-27 10:26:49 -07:00
..
2014-08-21 14:24:13 -07:00
2014-07-08 18:54:42 -07:00
2014-08-26 15:44:18 -07:00
2014-05-13 19:17:46 -07:00
2014-08-15 14:22:07 -07:00
2013-12-03 18:42:41 -08:00
2013-12-03 18:42:41 -08:00
2014-04-18 10:29:16 -07:00
2014-02-18 15:39:24 -08:00
2014-07-02 13:20:47 -07:00
2014-08-26 10:36:38 -07:00
2014-02-06 20:12:21 -08:00
2014-06-24 19:03:31 -07:00
2013-02-01 14:51:19 -08:00
2014-07-23 15:48:49 -07:00
2014-02-24 20:22:11 +00:00
2014-08-19 11:18:20 -07:00
2013-02-11 16:39:10 -08:00
2014-04-29 16:28:56 -07:00
2014-07-28 09:43:21 -07:00
2014-08-19 14:30:30 -07:00
2014-08-27 10:26:49 -07:00
2014-08-22 10:23:12 -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-08-18 16:04:03 -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-06-06 21:55:27 -07:00
2014-05-13 10:44:07 -07:00
2013-02-13 13:11:11 -08:00
2014-08-26 10:36:38 -07:00
2014-05-13 11:19:57 -07:00
2014-05-13 11:19:57 -07:00
2013-10-29 14:55:11 -07:00
2014-07-24 14:55:29 -07:00
2014-05-14 10:02:03 -07:00
2014-04-10 20:44:27 -07:00
2014-02-06 20:12:21 -08:00
2013-10-11 16:20:08 -07:00
2014-02-06 20:12:21 -08:00
2014-08-22 15:50:17 -07:00
2014-02-21 16:27:21 +00:00
2014-08-20 10:23:52 -07:00
2014-08-27 10:26:49 -07:00
2014-07-25 19:55:23 -07:00
2014-08-19 14:30:30 -07:00
2013-02-13 14:40:48 -08:00
2014-05-09 22:29:23 +01:00
2014-05-05 19:48:55 -07:00
2014-06-12 13:16:36 -07:00
2014-05-13 11:19:57 -07:00
2014-04-01 17:42:31 -07:00
2014-02-06 20:12:21 -08:00
2014-04-15 15:29:32 -07:00
2014-02-18 15:39:24 -08:00
2014-02-18 15:39:24 -08:00
2013-11-13 13:14:31 -08:00
2014-07-16 14:27:43 -07:00
2014-01-03 14:49:37 -08:00
2014-02-18 15:48:56 -08:00
2014-02-06 20:12:21 -08:00
2014-06-12 13:16:36 -07:00
2014-08-19 11:18:20 -07:00
2014-08-19 11:18:20 -07:00
2014-08-22 09:26:50 -07:00
2014-08-20 17:03:46 -07:00