diff options
Diffstat (limited to 'net-ftp/ftpd/files/ftpd-0.17+ssl-0.3-overflowpatch.diff')
-rw-r--r-- | net-ftp/ftpd/files/ftpd-0.17+ssl-0.3-overflowpatch.diff | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/net-ftp/ftpd/files/ftpd-0.17+ssl-0.3-overflowpatch.diff b/net-ftp/ftpd/files/ftpd-0.17+ssl-0.3-overflowpatch.diff new file mode 100644 index 000000000000..6290079a7062 --- /dev/null +++ b/net-ftp/ftpd/files/ftpd-0.17+ssl-0.3-overflowpatch.diff @@ -0,0 +1,14 @@ +--- linux-ftpd-0.17/ftpd/ftpd.c 2005-11-05 17:04:53.000000000 -0600 ++++ linux-ftpd-0.17-patched/ftpd/ftpd.c 2005-11-05 17:11:54.000000000 -0600 +@@ -2082,9 +2082,9 @@ + va_start(ap); + #endif + #ifdef USE_SSL +- /* assemble the output into a buffer */ ++ /* assemble the output into a buffer, checking for length*/ + sprintf(outputbuf,"%d ",n); +- vsprintf(outputbuf+strlen(outputbuf),fmt,ap); ++ vsnprintf(outputbuf+strlen(outputbuf),2048-(strlen(outputbuf) + 3),fmt,ap); + strcat(outputbuf,"\r\n"); + + if (ssl_debug_flag) |