Takashi Yano
bc986b7ff6
stdio: Fix bugs in commit 3d94e07c49b5
...
The commit 3d94e07c49b5 has a few bugs which cause testsuite failure
in libstdc++. This is due to excess orientation check in __srefill_r()
and _ungetc_r(). Further, sscanf() family also calls ssvfscanf() family
with fp->_file == -1. This causes undesired orientation set/check for
sscanf() family. This patch fixes these problems.
Also, as in GLibC, do not set orientation in ungetc, and only set, but
do not check orientation in ungetwc.
Fixes: 3d94e07c49b5 ("newlib: libc: Fix crash on fprintf to a wide-oriented stream.")
Reported-by: Christophe Lyon <christophe.lyon@linaro.org>
Reported-by: Joel Sherrill <joel@rtems.org>
Co-developed-by: Corinna Vinschen <corinna@vinschen.de>
Signed-off-by: Takashi Yano <takashi.yano@nifty.ne.jp>
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
2023-11-20 20:59:12 +01:00
..
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2018-01-17 11:47:26 -06:00
2020-01-29 19:03:31 +01:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:29 -06:00
2020-01-29 19:03:31 +01:00
2022-06-10 20:13:52 +02:00
2022-07-13 06:55:41 +02:00
2018-01-17 11:47:26 -06:00
2020-01-29 19:03:31 +01:00
2018-01-17 11:47:26 -06:00
2020-01-29 19:03:31 +01:00
2014-12-18 14:55:21 +00:00
2022-07-13 06:55:41 +02:00
2018-01-17 11:47:26 -06:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2014-12-18 14:55:21 +00:00
2020-01-29 19:03:31 +01:00
2023-11-10 00:36:41 +09:00
2023-11-10 00:36:41 +09:00
2014-12-18 14:55:21 +00:00
2023-11-10 00:36:41 +09:00
2022-07-13 06:55:41 +02:00
2022-07-13 06:55:41 +02:00
2022-08-31 10:02:53 +02:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2022-07-13 06:55:41 +02:00
2020-01-29 19:03:31 +01:00
2022-07-13 06:55:41 +02:00
2020-01-29 19:03:31 +01:00
2022-07-13 06:55:41 +02:00
2020-01-29 19:03:31 +01:00
2022-07-13 06:55:41 +02:00
2018-01-17 11:47:26 -06:00
2020-01-29 19:03:31 +01:00
2014-12-18 14:55:21 +00:00
2023-11-10 00:36:41 +09:00
2023-11-10 00:36:41 +09:00
2023-11-10 00:36:41 +09:00
2014-12-18 14:55:21 +00:00
2023-11-10 00:36:41 +09:00
2014-12-18 14:55:21 +00:00
2023-11-10 00:36:41 +09:00
2022-07-13 06:55:41 +02:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2022-07-13 06:55:41 +02:00
2018-01-17 11:47:26 -06:00
2020-01-29 19:03:31 +01:00
2022-07-13 06:55:41 +02:00
2022-07-13 06:55:41 +02:00
2022-07-13 06:55:41 +02:00
2023-11-17 17:09:42 +01:00
2020-01-29 19:03:31 +01:00
2022-05-13 12:40:10 +02:00
2018-01-17 11:47:26 -06:00
2020-01-29 19:03:31 +01:00
2014-12-18 14:55:21 +00:00
2023-11-10 00:36:41 +09:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2023-11-20 20:59:12 +01:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:29 -06:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2023-11-10 00:36:41 +09:00
2022-04-01 15:42:32 +02:00
2023-11-17 13:10:20 +01:00
2022-07-13 06:55:41 +02:00
2022-02-28 19:04:11 -05:00
2022-02-28 19:04:11 -05:00
2018-12-13 13:15:32 +01:00
2018-01-17 11:47:08 -06:00
2018-01-17 11:47:16 -06:00
2022-07-13 06:55:41 +02:00
2020-01-29 19:03:31 +01:00
2018-01-17 11:47:13 -06:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2022-07-13 06:55:41 +02:00
2022-07-13 06:55:41 +02:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2023-11-10 00:36:41 +09:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2023-11-10 00:36:41 +09:00
2020-01-29 19:03:31 +01:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:26 -06:00
2023-11-20 20:59:12 +01:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2022-07-13 06:55:46 +02:00
2023-11-17 13:10:20 +01:00
2023-11-17 13:10:20 +01:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2023-11-17 13:10:20 +01:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2023-11-17 13:10:20 +01:00
2023-11-17 13:10:20 +01:00
2023-11-17 13:10:20 +01:00
2023-11-17 13:10:20 +01:00
2018-01-17 11:47:26 -06:00
2020-01-29 19:03:31 +01:00
2015-06-23 16:14:39 +01:00
2022-02-28 19:04:11 -05:00
2022-02-28 19:04:11 -05:00
2022-02-28 19:04:11 -05:00
2022-02-28 19:04:11 -05:00
2022-02-28 19:04:11 -05:00
2022-02-28 19:04:11 -05:00
2022-02-28 19:04:11 -05:00
2022-02-28 19:04:11 -05:00
2023-11-17 13:10:20 +01:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2022-07-13 06:55:41 +02:00
2023-04-26 08:23:04 +02:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2018-01-17 11:47:26 -06:00
2018-01-17 11:47:29 -06:00
2017-04-18 12:25:35 +02:00
2022-02-28 19:04:11 -05:00
2022-02-28 19:04:11 -05:00
2022-02-28 19:04:11 -05:00
2022-02-28 19:04:11 -05:00
2023-11-17 13:10:20 +01:00
2023-11-10 00:36:41 +09:00
2023-11-17 13:10:20 +01:00
2023-11-10 00:36:41 +09:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2023-11-20 20:59:12 +01:00
2022-08-31 15:18:08 -04:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2020-01-29 19:03:31 +01:00
2022-07-13 06:55:41 +02:00