vfprintf: Avoid creating a VLA which complicates stack management
This commit is contained in:
parent
2bad840e9d
commit
326e288b1e
@ -1,3 +1,8 @@
|
||||
2016-09-02 Florian Weimer <fweimer@redhat.com>
|
||||
|
||||
* stdio-common/vfprintf.c (process_string_arg): Use MB_LEN_MAX
|
||||
instead of MB_CUR_MAX to avoid variable-length array.
|
||||
|
||||
2016-09-01 Paul E. Murphy <murphyp@linux.vnet.ibm.com>
|
||||
|
||||
* math/Makefile (libm-calls): Remove k_rem_pio2F.
|
||||
|
@ -1082,7 +1082,7 @@ static const uint8_t jump_table[] =
|
||||
LABEL (form_wcharacter): \
|
||||
{ \
|
||||
/* Wide character. */ \
|
||||
char buf[MB_CUR_MAX]; \
|
||||
char buf[MB_LEN_MAX]; \
|
||||
mbstate_t mbstate; \
|
||||
size_t len; \
|
||||
\
|
||||
|
Loading…
x
Reference in New Issue
Block a user