[hardening-discuss] -Wformat and user-defined struct members called printf
Kees Cook
kees at outflux.net
Fri Jun 20 09:42:15 UTC 2008
On Fri, Jun 20, 2008 at 09:21:26AM +0200, Marcus Better wrote:
> Kees Cook wrote:
> >> ratelimit.c:348: error: ‘rpc_t’ has no member named ‘__printf_chk’
>
> > Hmm. Are you also using -D_FORTIFY_SOURCE=2 ?
>
> No, I just set DEB_BUILD_HARDENING=1.
Ah! In that case, you are building with -D_FORTIFY_SOURCE=2 (it is one
of many things enabled with that HARDENING flag). If setting
DEB_BUILD_HARDENING_FORTIFY=0 makes the problem go away, then that's the
issue.
Given the advantages that fortify provides, I'd try to convince upstream
to rename that struct. :)
-Kees
--
Kees Cook @outflux.net
More information about the hardening-discuss
mailing list