mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-27 13:32:45 +00:00
awk: errror on printf format strings lacking conversion specifier
Reported by: phk Reviewed by: imp, markj MFC after: 3 days Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D39573
This commit is contained in:
parent
9f324d8ac2
commit
5dbd073b04
@ -912,6 +912,9 @@ int format(char **pbuf, int *pbufsize, const char *s, Node *a) /* printf-like co
|
|||||||
case 'c':
|
case 'c':
|
||||||
flag = 'c';
|
flag = 'c';
|
||||||
break;
|
break;
|
||||||
|
case '\0':
|
||||||
|
FATAL("missing printf conversion specifier");
|
||||||
|
break;
|
||||||
default:
|
default:
|
||||||
WARNING("weird printf conversion %s", fmt);
|
WARNING("weird printf conversion %s", fmt);
|
||||||
flag = '?';
|
flag = '?';
|
||||||
|
Loading…
Reference in New Issue
Block a user