Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 449510 Details for
Bug 596496
net-dns/libidn fails to build with -Werror=format-security
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
libidn-1.33-format-security.patch
libidn-1.33-format-security.patch (text/plain), 3.44 KB, created by
René Rhéaume
on 2016-10-08 00:35:08 UTC
(
hide
)
Description:
libidn-1.33-format-security.patch
Filename:
MIME Type:
Creator:
René Rhéaume
Created:
2016-10-08 00:35:08 UTC
Size:
3.44 KB
patch
obsolete
>--- libidn-1.33-orig/src/idn.c >+++ libidn-1.33-format-security/src/idn.c >@@ -170,7 +170,7 @@ main (int argc, char *argv[]) > (args_info.idna_to_unicode_given ? 1 : 0) + > (args_info.nfkc_given ? 1 : 0) != 1) > { >- error (0, 0, _("only one of -s, -e, -d, -a, -u or -n can be specified")); >+ error (0, 0, "%s", _("only one of -s, -e, -d, -a, -u or -n can be specified")); > usage (EXIT_FAILURE); > } > >@@ -185,7 +185,7 @@ main (int argc, char *argv[]) > if (!args_info.quiet_given > && args_info.inputs_num == 0 > && isatty (fileno (stdin))) >- fprintf (stderr, _("Type each input string on a line by itself, " >+ fprintf (stderr, "%s", _("Type each input string on a line by itself, " > "terminated by a newline character.\n")); > > do >@@ -197,7 +197,7 @@ main (int argc, char *argv[]) > if (feof (stdin)) > break; > >- error (EXIT_FAILURE, errno, _("input error")); >+ error (EXIT_FAILURE, errno, "%s", _("input error")); > } > > if (strlen (line) > 0) >@@ -215,7 +215,7 @@ main (int argc, char *argv[]) > if (!q) > { > free (p); >- error (EXIT_FAILURE, 0, >+ error (EXIT_FAILURE, 0, "%s", > _("could not convert from UTF-8 to UCS-4")); > } > >@@ -240,7 +240,7 @@ main (int argc, char *argv[]) > if (!q) > { > free (r); >- error (EXIT_FAILURE, 0, >+ error (EXIT_FAILURE, 0, "%s", > _("could not convert from UTF-8 to UCS-4")); > } > >@@ -277,7 +277,7 @@ main (int argc, char *argv[]) > q = stringprep_utf8_to_ucs4 (p, -1, &len); > free (p); > if (!q) >- error (EXIT_FAILURE, 0, >+ error (EXIT_FAILURE, 0, "%s", > _("could not convert from UTF-8 to UCS-4")); > > if (args_info.debug_given) >@@ -336,7 +336,7 @@ main (int argc, char *argv[]) > r = stringprep_ucs4_to_utf8 (q, -1, NULL, NULL); > free (q); > if (!r) >- error (EXIT_FAILURE, 0, >+ error (EXIT_FAILURE, 0, "%s", > _("could not convert from UCS-4 to UTF-8")); > > p = stringprep_utf8_to_locale (r); >@@ -360,7 +360,7 @@ main (int argc, char *argv[]) > q = stringprep_utf8_to_ucs4 (p, -1, NULL); > free (p); > if (!q) >- error (EXIT_FAILURE, 0, >+ error (EXIT_FAILURE, 0, "%s", > _("could not convert from UCS-4 to UTF-8")); > > if (args_info.debug_given) >@@ -438,7 +438,7 @@ main (int argc, char *argv[]) > if (!q) > { > free (p); >- error (EXIT_FAILURE, 0, >+ error (EXIT_FAILURE, 0, "%s", > _("could not convert from UCS-4 to UTF-8")); > } > >@@ -494,7 +494,7 @@ main (int argc, char *argv[]) > r = stringprep_ucs4_to_utf8 (q, -1, NULL, NULL); > free (q); > if (!r) >- error (EXIT_FAILURE, 0, >+ error (EXIT_FAILURE, 0, "%s", > _("could not convert from UTF-8 to UCS-4")); > > p = stringprep_utf8_to_locale (r); >@@ -523,7 +523,7 @@ main (int argc, char *argv[]) > if (!q) > { > free (p); >- error (EXIT_FAILURE, 0, >+ error (EXIT_FAILURE, 0, "%s", > _("could not convert from UTF-8 to UCS-4")); > } > >@@ -537,7 +537,7 @@ main (int argc, char *argv[]) > r = stringprep_utf8_nfkc_normalize (p, -1); > free (p); > if (!r) >- error (EXIT_FAILURE, 0, _("could not do NFKC normalization")); >+ error (EXIT_FAILURE, 0, "%s", _("could not do NFKC normalization")); > > if (args_info.debug_given) > { >@@ -547,7 +547,7 @@ main (int argc, char *argv[]) > if (!q) > { > free (r); >- error (EXIT_FAILURE, 0, >+ error (EXIT_FAILURE, 0, "%s", > _("could not convert from UTF-8 to UCS-4")); > } >
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 596496
: 449510 |
449512
|
449514