[FFmpeg-devel] [PATCH] Add -Wformat and -Werror=format-security compiler flags

Andreas Cadhalpun andreas.cadhalpun at googlemail.com
Sat Jul 12 21:36:10 CEST 2014


Now with patch...

On 12.07.2014 21:27, Andreas Cadhalpun wrote:
> Hi,
>
> the hardening flags used by Debian contain -Wformat and
> -Werror=format-security to make sure printf and friends are used in a
> safe way. [1]
>
> To detect such problems as early as possible, I think it makes sense to
> use these flags always.
>
> Best regards,
> Andreas
>
>
> 1:
> https://wiki.debian.org/Hardening#DEB_BUILD_HARDENING_FORMAT_.28gcc.2Fg.2B-.2B-_-Wformat_-Wformat-security_-Werror.3Dformat-security.29
>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: Add--Wformat-and-Werror=format-security-compiler-flags.patch
Type: text/x-diff
Size: 840 bytes
Desc: not available
URL: <https://ffmpeg.org/pipermail/ffmpeg-devel/attachments/20140712/1b565421/attachment.bin>


More information about the ffmpeg-devel mailing list