Zack Weinberg
4e2f43f842
Use PRINTF_FORTIFY instead of _IO_FLAGS2_FORTIFY (bug 11319)
...
The _chk variants of all of the printf functions become much simpler.
This is the last thing that we needed _IO_acquire_lock_clear_flags2
for, so it can go as well. I took the opportunity to make the headers
included and the names of all local variables consistent across all the
affected files.
Since we ultimately want to get rid of __no_long_double as well, it
must be possible to get all of the nontrivial effects of the _chk
functions by calling the _internal functions with appropriate flags.
For most of the __(v)xprintf_chk functions, this is covered by
PRINTF_FORTIFY plus some up-front argument checks that can be
duplicated. However, __(v)sprintf_chk installs a custom jump table so
that it can crash instead of overflowing the output buffer. This
functionality is moved to __vsprintf_internal, which now has a
'maxlen' argument like __vsnprintf_internal; to get the unsafe
behavior of ordinary (v)sprintf, pass -1 for that argument.
obstack_printf_chk and obstack_vprintf_chk are no longer in the same
file.
As a side-effect of the unification of both fortified and non-fortified
vdprintf initialization, this patch fixes bug 11319 for __dprintf_chk
and __vdprintf_chk, which was previously fixed only for dprintf and
vdprintf by the commit
commit 7ca890b88e6ab7624afb1742a9fffb37ad5b3fc3
Author: Ulrich Drepper <drepper@redhat.com>
Date: Wed Feb 24 16:07:57 2010 -0800
Fix reporting of I/O errors in *dprintf functions.
This patch adds a test case to avoid regressions.
Tested for powerpc and powerpc64le.
2018-12-05 18:15:43 -02:00
..
2018-02-21 14:22:50 -05:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2017-02-16 17:33:18 -05:00
2014-11-26 12:54:39 +00:00
2014-11-26 12:54:39 +00:00
2018-01-01 00:32:25 +00:00
2014-11-27 16:01:04 +00:00
2017-02-16 17:33:18 -05:00
2018-01-01 00:32:25 +00:00
2018-02-21 14:39:54 -05:00
2018-01-01 00:32:25 +00:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-03-13 08:31:56 -04:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:39:54 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-10-02 10:01:56 -03:00
2018-10-02 10:01:56 -03:00
2018-02-21 14:11:05 -05:00
2018-07-06 17:52:54 +02:00
2018-07-06 17:52:54 +02:00
2018-07-06 17:52:54 +02:00
2018-07-06 17:52:54 +02:00
2018-02-21 14:11:05 -05:00
2018-12-05 18:15:42 -02:00
2018-01-01 00:32:25 +00:00
2018-02-21 14:39:54 -05:00
2018-02-21 18:01:11 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-02-21 14:39:54 -05:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-02-21 14:22:50 -05:00
2018-02-21 14:39:54 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:22:50 -05:00
2018-02-21 14:22:50 -05:00
2018-02-21 14:22:50 -05:00
2018-02-21 14:22:50 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:13:21 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:39:54 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:22:50 -05:00
2018-02-21 14:11:05 -05:00
2018-12-05 18:15:42 -02:00
2018-02-21 14:11:05 -05:00
2018-11-30 18:42:05 -02:00
2018-04-03 00:36:33 +00:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:22:50 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-12-05 18:15:42 -02:00
2018-12-05 18:15:43 -02:00
2018-12-05 18:15:42 -02:00
2018-12-05 18:15:42 -02:00
2018-02-21 14:11:05 -05:00
2018-01-01 00:32:25 +00:00
2018-12-05 18:15:43 -02:00
2018-12-05 18:15:43 -02:00
2018-10-02 10:01:56 -03:00
2018-06-01 10:41:03 +02:00
2018-12-05 18:15:42 -02:00
2018-03-13 08:31:56 -04:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:22:50 -05:00
2018-02-21 14:39:54 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:13:21 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:13:21 -05:00
2018-02-21 14:39:54 -05:00
2018-02-21 14:11:05 -05:00
2018-01-01 00:32:25 +00:00
2018-02-21 14:39:54 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-07-10 11:03:08 +02:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-02-21 14:11:05 -05:00
2018-01-01 00:32:25 +00:00
2018-02-21 14:11:05 -05:00
2018-07-05 19:00:10 +02:00
2018-12-05 18:15:42 -02:00
2018-06-01 10:41:03 +02:00
2018-12-05 18:15:42 -02:00
2018-12-05 18:15:42 -02:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2015-10-12 15:18:08 +02:00
2018-10-17 09:34:13 +02:00
2018-01-01 00:32:25 +00:00
2018-03-13 08:31:56 -04:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2018-01-01 00:32:25 +00:00
2017-02-16 17:33:18 -05:00
2017-02-16 17:33:18 -05:00
2018-01-29 23:00:17 +01:00
2018-10-02 10:01:56 -03:00
2018-10-02 10:01:56 -03:00
2016-06-11 14:50:16 -07:00
2018-02-21 14:39:54 -05:00
2018-01-01 00:32:25 +00:00
2018-10-09 15:56:12 +01:00
2014-11-05 15:24:08 +05:30
2014-11-05 15:24:08 +05:30
2014-11-05 15:24:08 +05:30
2018-11-28 20:57:18 +01:00
2018-06-26 12:31:08 +02:00
2018-06-26 12:31:08 +02:00
2018-01-01 00:32:25 +00:00
2017-09-09 12:41:54 +02:00
2018-01-29 23:00:17 +01:00
2018-10-02 10:01:56 -03:00
2018-12-05 18:15:42 -02:00
2018-07-06 17:52:54 +02:00
2018-12-05 18:15:42 -02:00
2018-12-05 18:15:42 -02:00
2018-12-05 18:15:42 -02:00
2018-06-26 10:24:52 +02:00
2018-12-05 18:15:42 -02:00
2018-12-05 18:15:42 -02:00
2018-02-21 14:11:05 -05:00
2018-03-13 08:31:56 -04:00
2018-02-21 14:39:54 -05:00
2018-06-01 10:41:03 +02:00
2018-12-05 18:15:42 -02:00
2018-12-05 18:15:42 -02:00
2018-06-01 10:41:03 +02:00