"Security: Format string is not a string literal" build failure(s) — clang 3.3
The following code builds without any issue with gcc and fails with clang:
#include <stdio.h>
void foo(void) {
char buffer[1024];
sprintf(buffer, "%n", 2);
}
gcc -Werror -c foo.c| Package | Version | Supposed error message | Full log | Bug report |
|---|---|---|---|---|
| brasero | 3.8.0-1 | brasero-misc.c:97:3: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| cheese | 3.4.2-2 | src/cheese-window.c:871:162: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| cronutils | 1.4-3 | runstat.c:79:31: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| csound | 1:5.17.11~dfsg-4 | express.c:523:21: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] | Log | |
| epiphany-browser | 3.4.2-2.1 | ephy-sqlite-connection.c:63:56: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| evince | 3.4.0-3.1 | dviread.c:179:19: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| gccxml | 0.9.0+git20130511-1 | gengtype-lex.l:594:31: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] | Log | |
| gedit | 3.4.2-1 | gedit-commands-file.c:633:9: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| ghex | 3.8.1-1 | chartable.c:189:28: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| ghostscript | 9.05~dfsg-8 | ./base/gsdevice.c:1010:25: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] | Log | |
| gitg | 0.2.7-1 | gitg-debug.c:66:27: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| glade-3 | 3.6.7-2.1 | glade-editor-property.c:2726:27: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| glib-networking | 2.36.1-2 | gtlsconnection-gnutls.c:778:20: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| glib2.0 | 2.36.3-3 | gfileutils.c:1023:16: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| gnome-media | 3.4.0-1 | sound-theme-file-utils.c:193:33: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| gnome-online-accounts | 3.8.2-1 | goakerberosidentity.c:341:39: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| gnome-panel | 3.4.2.1-5 | panel-applet-frame.c:782:7: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| gnome-pie | 0.5.4-1 | triggerSelectWindow.c:543:182: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] | Log | |
| gnome-session | 3.4.2.1-4 | gsm-util.c:366:33: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| goffice | 0.10.3-1 | app/error-info.c:63:33: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| gpe-conf | 0.2.9-2 | modules/tasks.c:100:58: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] | Log | |
| grilo | 0.2.6-2 | grl-log.c:298:31: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| grilo-plugins | 0.2.8-1 | grl-jamendo.c:1173:32: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| gtranslator | 2.91.5-3 | gtr-viewer.c:154:27: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| libgnomeui | 2.24.5-2 | gnome-gconf-ui.c:187:50: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| libgsf | 1.14.27-2 | gsf-libxml.c:980:38: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| libgxps | 0.2.2-2 | gxps-images.c:352:34: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| libsoup2.4 | 2.42.2-6 | soup-logger.c:377:27: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| nautilus-sendto | 3.0.3-3 | evolution.c:339:25: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| ncap | 1.9.2-1 | asprintf.c:35:30: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| rcs | 5.9.0-1 | b-excwho.c:126:15: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] | Log | |
| sound-juicer | 3.4.0-3 | sj-main.c:157:32: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| swi-prolog | 6.2.6-7 | ker/goodies.c:850:30: error: format string is not a string literal (potentially insecure) [-Werror,-Wformat-security] | Log | |
| totem | 3.0.1-8 | totem-screenshot-plugin.c:283:30: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| vinagre | 3.8.2-1 | vinagre/vinagre-bookmarks-ui.c:330:12: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log | |
| vino | 3.8.1-1 | server/libvncserver/main.c:70:22: error: format string is not a string literal [-Werror,-Wformat-nonliteral] | Log |
36 errors