Disable -Werror=format-security on GCC as the input is already validated by the caller
authorMirco Bauer <meebey@meebey.net>
Wed, 24 Oct 2012 14:28:09 +0000 (16:28 +0200)
committerMirco Bauer <meebey@meebey.net>
Wed, 24 Oct 2012 14:28:09 +0000 (16:28 +0200)
commit58f443c5d2de9ce481905e3d9091150317570398
tree9ef0d099cb6cb916f6d530d38ed22fc5e5cc0b4b
parent62bf3c73c589ec994db7f4bcb9bae7f9da51b725
Disable -Werror=format-security on GCC as the input is already validated by the caller

Jonathan Pryor (jonpryor) commented on f49164b:

The message parameter is validated in managed code:
https://github.com/mono/mono/blob/master/mcs/class/Mono.Posix/Mono.Unix.Native/Syscall.cs#L3200
https://github.com/mono/mono/blob/master/mcs/class/Mono.Posix/Mono.Unix/UnixMarshal.cs#L366

This change means that '%m' isn't useful in format strings to Syscall.syslog(),
as it'll be escaped instead of "passed through" unchanged.
support/syslog.c