From: "Dmitry V. Levin" <ldv@altlinux.org> To: ALT Devel discussion list <devel@lists.altlinux.org> Subject: Re: [devel] Добавление -Werror=format-security Date: Wed, 3 Jun 2009 15:20:01 +0400 Message-ID: <20090603112001.GA11719@wo.int.altlinux.org> (raw) In-Reply-To: <20090603105421.GC15704@wo.int.altlinux.org> [-- Attachment #1: Type: text/plain, Size: 961 bytes --] On Wed, Jun 03, 2009 at 02:54:21PM +0400, Dmitry V. Levin wrote: > On Wed, Jun 03, 2009 at 05:21:02AM +0400, Vitaly Lipatov wrote: > > Есть предложение добавить в стандартные флаги (CFLAGS) > > -Werror=format-security > > Предотвращает конструкции вида > > *printf(msg) > > где msg - форматная строка неизвестного содержания. > > Наткнулся на это в Mandriva. > > В gcc4.4 я включил по умолчанию -Wformat и -Wformat-security, > см. "ALT Linux gcc 4.4.0-alt1" в "info gcc" (там же написано, как это > отключить). > > Добавить -Werror=format-security по умолчанию куда-либо при текущем уровне > несобираемости Сизифа (4.6%), как мне кажется, ещё рано. Точно рано: сломается сборка ещё примерно 800 пакетов, что почти в 2 раза превышает число несобирающихся сейчас пакетов. > Пока что могу посоветовать читать (или хотя бы грепать) логи сборки > пакетов. grep 'warning: format not a string literal and no format arguments' -- ldv [-- Attachment #2: Type: application/pgp-signature, Size: 197 bytes --]
next prev parent reply other threads:[~2009-06-03 11:20 UTC|newest] Thread overview: 33+ messages / expand[flat|nested] mbox.gz Atom feed top 2009-06-03 1:21 Vitaly Lipatov 2009-06-03 4:15 ` Afanasov Dmitry 2009-06-03 5:41 ` Pavel Solntsev 2009-06-03 7:45 ` Led 2009-06-03 8:28 ` Pavel Solntsev 2009-06-03 10:23 ` Michael Shigorin 2009-06-03 10:32 ` Alexey Rusakov 2009-06-03 10:54 ` Dmitry V. Levin 2009-06-03 11:20 ` Dmitry V. Levin [this message] 2009-06-03 11:35 ` Ivan A. Melnikov 2009-06-03 11:49 ` Led 2009-06-03 11:52 ` Slava Semushin 2009-06-03 11:52 ` Damir Shayhutdinov 2009-06-03 11:59 ` Damir Shayhutdinov 2009-06-03 12:07 ` Led 2009-06-03 12:10 ` Damir Shayhutdinov 2009-06-03 12:04 ` Led 2009-06-03 11:54 ` Afanasov Dmitry 2009-06-03 12:05 ` Led 2009-06-03 12:11 ` Afanasov Dmitry 2009-06-03 12:19 ` Led 2009-06-03 13:12 ` Afanasov Dmitry 2009-06-03 21:23 ` Dmitry V. Levin 2009-06-03 21:14 ` Dmitry V. Levin 2009-06-03 21:30 ` Alexey Tourbin 2009-06-03 21:36 ` Dmitry V. Levin 2009-06-03 22:05 ` Led 2009-06-03 22:45 ` Dmitry V. Levin 2009-06-04 3:13 ` Alexey Tourbin 2009-06-04 20:14 ` Alexey Rusakov 2009-06-04 20:30 ` Led 2009-06-06 12:42 ` [devel] [JT] icc (was: Добавление -Werror=format-security) Michael Shigorin 2009-06-06 22:12 ` Konstantin Pavlov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20090603112001.GA11719@wo.int.altlinux.org \ --to=ldv@altlinux.org \ --cc=devel@lists.altlinux.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: link
ALT Linux Team development discussions This inbox may be cloned and mirrored by anyone: git clone --mirror http://lore.altlinux.org/devel/0 devel/git/0.git # If you have public-inbox 1.1+ installed, you may # initialize and index your mirror using the following commands: public-inbox-init -V2 devel devel/ http://lore.altlinux.org/devel \ devel@altlinux.org devel@altlinux.ru devel@lists.altlinux.org devel@lists.altlinux.ru devel@linux.iplabs.ru mandrake-russian@linuxteam.iplabs.ru sisyphus@linuxteam.iplabs.ru public-inbox-index devel Example config snippet for mirrors. Newsgroup available over NNTP: nntp://lore.altlinux.org/org.altlinux.lists.devel AGPL code for this site: git clone https://public-inbox.org/public-inbox.git