[BitchX] Update format-security.patch

Dan Mashal vicodan at fedoraproject.org
Wed Dec 4 21:55:17 UTC 2013


commit 170d6e55cd4cadf54d8793f74a4d9b4cf66d5f5f
Author: Dan Mashal <dan.mashal at fedoraproject.org>
Date:   Wed Dec 4 13:55:07 2013 -0800

    Update format-security.patch

 format-security.patch |   33 +++++++++++++++++++++++++++++++++
 1 files changed, 33 insertions(+), 0 deletions(-)
---
diff --git a/format-security.patch b/format-security.patch
index cea0e60..b731e49 100644
--- a/format-security.patch
+++ b/format-security.patch
@@ -10,6 +10,18 @@ diff -uNrp a/dll/fserv/fserv.c b/dll/fserv/fserv.c
  	return buffer;
  }
  
+diff -uNrp a/dll/nap/napsend.c b/dll/nap/napsend.c
+--- a/dll/nap/napsend.c	2012-12-31 20:55:05.000000000 -0800
++++ b/dll/nap/napsend.c	2013-12-04 13:41:42.335315914 -0800
+@@ -315,7 +315,7 @@ char *make_mp3_string(FILE *fp, Files *f
+ 		fs++;
+ 	}
+ 	if (fp && *buffer)
+-		fprintf(fp, buffer);
++		fprintf(fp, "%s", buffer);
+ 	return buffer;
+ }
+ 
 diff -uNrp a/source/dcc.c b/source/dcc.c
 --- a/source/dcc.c	2012-12-31 20:55:05.000000000 -0800
 +++ b/source/dcc.c	2013-12-04 13:22:13.508923013 -0800
@@ -22,3 +34,24 @@ diff -uNrp a/source/dcc.c b/source/dcc.c
  			chop(DCC_current_transfer_buffer, 4);
  		}
  		else
+diff -uNrp a/source/translat.c b/source/translat.c
+--- a/source/translat.c	2012-12-31 20:55:05.000000000 -0800
++++ b/source/translat.c	2013-12-04 13:38:23.254787578 -0800
+@@ -412,7 +412,7 @@ void	save_digraphs(FILE *fp)
+ 		char	*command = "\nDIGRAPH -ADD ";
+ 
+ 		fprintf(fp, "DIGRAPH -CLEAR");
+-		fprintf(fp, command);
++		fprintf(fp, "%s", command);
+ 		while(1)
+ 		{
+ 			fprintf(fp, "%d %d %d  ", dig_table_lo[i],
+@@ -420,7 +420,7 @@ void	save_digraphs(FILE *fp)
+ 			if (!dig_table_lo[++i])
+ 				break;
+ 			if (!(i % 5))
+-				fprintf(fp, command);
++				fprintf(fp, "%s", command);
+ 		}
+ 		fputc('\n', fp);
+ 


More information about the scm-commits mailing list