Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 530068 Details for
Bug 654724
media-video/smplayer-18.4.0 with GCC 8.1 - mongoose.c:8370:65: error: ‘%s’ directive output may be truncated writing up to 8191 bytes into a region of size 500 [-Werror=format-truncation=]
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Turn error diagnostics into warning for false positive
smplayer-gcc-8.patch (text/plain), 1.33 KB, created by
Martin Väth
on 2018-05-06 06:15:42 UTC
(
hide
)
Description:
Turn error diagnostics into warning for false positive
Filename:
MIME Type:
Creator:
Martin Väth
Created:
2018-05-06 06:15:42 UTC
Size:
1.33 KB
patch
obsolete
># Martin V\"ath <martin at mvath.de> ># Turn error diagnostics into warning for false positive >--- a/webserver/mongoose.c >+++ b/webserver/mongoose.c >@@ -8353,13 +8353,17 @@ > */ > if (sscanf(tag, " virtual=\"%[^\"]\"", file_name) == 1) { > /* File name is relative to the webserver root */ >+#pragma GCC diagnostic warning "-Wformat-truncation" > snprintf(path, sizeof(path), "%s/%s", opts->document_root, file_name); >+#pragma GCC diagnostic error "-Wformat-truncation" > } else if (sscanf(tag, " abspath=\"%[^\"]\"", file_name) == 1) { > /* > * File name is relative to the webserver working directory > * or it is absolute system path > */ >+#pragma GCC diagnostic warning "-Wformat-truncation" > snprintf(path, sizeof(path), "%s", file_name); >+#pragma GCC diagnostic error "-Wformat-truncation" > } else if (sscanf(tag, " file=\"%[^\"]\"", file_name) == 1 || > sscanf(tag, " \"%[^\"]\"", file_name) == 1) { > /* File name is relative to the currect document */ >@@ -8367,7 +8371,9 @@ > if ((p = strrchr(path, DIRSEP)) != NULL) { > p[1] = '\0'; > } >+#pragma GCC diagnostic warning "-Wformat-truncation" > snprintf(path + strlen(path), sizeof(path) - strlen(path), "%s", file_name); >+#pragma GCC diagnostic error "-Wformat-truncation" > } else { > mg_printf(nc, "Bad SSI #include: [%s]", tag); > return;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 654724
:
529566
|
529712
|
530068
|
530294