]> Savannah Git Hosting - gnulib.git/commit
strfmon_l: Fix -fsanitize=address finding.
authorBruno Haible <bruno@clisp.org>
Sat, 9 Mar 2019 22:30:40 +0000 (23:30 +0100)
committerBruno Haible <bruno@clisp.org>
Sat, 9 Mar 2019 22:30:40 +0000 (23:30 +0100)
commit363bf26b4102c295036666594a3e0a933674bccd
tree8969d61d9d22f6667debb0acb34cc8ad313a6664
parentb64bf15ed34a2bdb095d2b5e84e3e3e8bb71e91e
strfmon_l: Fix -fsanitize=address finding.

* lib/strfmon_l.c: Include <errno.h>, <stdbool.h>, <stdlib.h>,
<string.h>.
(MAX_ARGS): Renamed from MAX_ARG_WORDS.
(directive_t, directives_t): New types.
(fmon_parse): New function.
(rpl_strfmon_l): Don't call va_arg more often than needed for the
format string. Consume 'long double' arguments in places where the
format string indicates so.
* modules/strfmon_l (Depends-on): Add 'stdbool'.
ChangeLog
lib/strfmon_l.c
modules/strfmon_l