glibc/stdio-common
Florian Weimer 95e8397481 vfscanf: Use struct scratch_buffer instead of extend_alloca
A custom character buffer is added in this commit, in the form of
struct char_buffer.  The char_buffer_add function replaces the
ADDW macro (which has grown with each successive security fix).
The char_buffer_add slow path is moved out-of-line, reducing
code size.

	* stdio-common/vfscanf.c (MEMCPY): Remove macro.
	(struct char_buffer): New type.
	(char_buffer_start, char_buffer_size, char_buffer_error)
	(char_buffer_rewind, char_buffer_add): New functions.
	(ADDW): Remove macro, replaced by the char_buffer_add function.
	(_IO_vfscanf_internal): Rewrite using struct char_buffer instead
	of extend_alloca.  Make control flow more explicit.
2015-10-15 17:18:51 +02:00
..
2013-06-05 20:44:03 +00:00
2012-05-24 21:30:43 -06:00
2013-10-12 14:47:50 +02:00
2012-03-08 03:02:24 -05:00
2015-08-09 04:19:12 -04:00
2014-02-28 11:07:43 -08:00