Subject: Re: proposal: disable *printf %n specifier in libc in NetBSD 1.5
To: Todd Vierling <tv@wasabisystems.com>
From: Bill Sommerfeld <sommerfeld@orchard.arlington.ma.us>
List: tech-userlevel
Date: 09/11/2000 14:54:25
> The message catalog conversion tools are the ones that would be responsible
> for such a sanity check. The catgets compiler (gencat) doesn't have the
> information to compare, but a gettext compiler (msgfmt) does.
catgets() would be another place to do the sanity check, testing the
types and number of arguments in the default string (4th argument to
catgets) vs. the types and number of arguments in the message string.
gcc can do passthrough format arg checking for catgets() and
gettext()-type functions.
- Bill