Contents of /trunk/proftpd/patches/proftpd-1.3.0a-mod_tls.patch
Parent Directory | Revision Log
Revision 265 -
(show annotations)
(download)
Wed Jul 11 23:16:10 2007 UTC (17 years, 2 months ago) by niro
File size: 510 byte(s)
Wed Jul 11 23:16:10 2007 UTC (17 years, 2 months ago) by niro
File size: 510 byte(s)
- proftpd-1.3.0a-r1
1 | This is a possible fix Ralf S. Engelschall <rse+openpkg-security@openpkg.org> |
2 | has made myself for the X.509 issue of mod_tls.c |
3 | |
4 | Index: contrib/mod_tls.c |
5 | --- contrib/mod_tls.c.orig 2005-11-08 18:59:49 +0100 |
6 | +++ contrib/mod_tls.c 2006-11-15 17:54:43 +0100 |
7 | @@ -2421,6 +2421,8 @@ |
8 | datalen = BIO_get_mem_data(mem, &data); |
9 | |
10 | if (data) { |
11 | + if (datalen > sizeof(buf)-1) |
12 | + datalen = sizeof(buf)-1; |
13 | memset(&buf, '\0', sizeof(buf)); |
14 | memcpy(buf, data, datalen); |
15 | buf[datalen] = '\0'; |