2
0

130-format-secuirty.patch 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. From c7197cad42d6269739f379025c2bec9e474c8027 Mon Sep 17 00:00:00 2001
  2. From: Tobias Mueller <tobiasmue@gnome.org>
  3. Date: Sat, 29 Jan 2011 16:31:30 +0100
  4. Subject: Fixed format string issues by giving static literals, fixes bug
  5. 640897
  6. ---
  7. src/cr-statement.c | 10 +++++-----
  8. tests/test2-main.c | 8 +++-----
  9. tests/test3-main.c | 8 +++-----
  10. 3 files changed, 11 insertions(+), 15 deletions(-)
  11. --- a/gettext-tools/gnulib-lib/libcroco/cr-statement.c
  12. +++ b/gettext-tools/gnulib-lib/libcroco/cr-statement.c
  13. @@ -2607,7 +2607,7 @@ cr_statement_dump_ruleset (CRStatement *
  14. g_return_if_fail (a_fp && a_this);
  15. str = cr_statement_ruleset_to_string (a_this, a_indent);
  16. if (str) {
  17. - fprintf (a_fp, str);
  18. + fprintf (a_fp, "%s", str);
  19. g_free (str);
  20. str = NULL;
  21. }
  22. @@ -2658,7 +2658,7 @@ cr_statement_dump_charset (CRStatement *
  23. str = cr_statement_charset_to_string (a_this,
  24. a_indent) ;
  25. if (str) {
  26. - fprintf (a_fp, str) ;
  27. + fprintf (a_fp, "%s", str) ;
  28. g_free (str) ;
  29. str = NULL ;
  30. }
  31. @@ -2685,7 +2685,7 @@ cr_statement_dump_page (CRStatement * a_
  32. str = cr_statement_at_page_rule_to_string (a_this, a_indent) ;
  33. if (str) {
  34. - fprintf (a_fp, str);
  35. + fprintf (a_fp, "%s", str);
  36. g_free (str) ;
  37. str = NULL ;
  38. }
  39. @@ -2711,7 +2711,7 @@ cr_statement_dump_media_rule (CRStatemen
  40. str = cr_statement_media_rule_to_string (a_this, a_indent) ;
  41. if (str) {
  42. - fprintf (a_fp, str) ;
  43. + fprintf (a_fp, "%s", str) ;
  44. g_free (str) ;
  45. str = NULL ;
  46. }
  47. @@ -2737,7 +2737,7 @@ cr_statement_dump_import_rule (CRStateme
  48. str = cr_statement_import_rule_to_string (a_this, a_indent) ;
  49. if (str) {
  50. - fprintf (a_fp, str) ;
  51. + fprintf (a_fp, "%s", str) ;
  52. g_free (str) ;
  53. str = NULL ;
  54. }