Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
home:danci1973
openswan
openswan_32_bufferoverflowstrncat.dif
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File openswan_32_bufferoverflowstrncat.dif of Package openswan
diff -Nur openswan-2.6.24-orig//programs/pluto/kernel.c openswan-2.6.24//programs/pluto/kernel.c --- openswan-2.6.24-orig//programs/pluto/kernel.c 2010-01-10 02:34:38.000000000 +0100 +++ openswan-2.6.24//programs/pluto/kernel.c 2010-04-14 22:15:35.000000000 +0200 @@ -359,13 +359,13 @@ { char *p; int l; - strncat(srcip_str, "PLUTO_MY_SOURCEIP=", sizeof(srcip_str)); - strncat(srcip_str, "'", sizeof(srcip_str)); + strncat(srcip_str, "PLUTO_MY_SOURCEIP=", sizeof(srcip_str)-strlen(srcip_str)-1); + strncat(srcip_str, "'", sizeof(srcip_str)-strlen(srcip_str)-1); l = strlen(srcip_str); p = srcip_str + l; addrtot(&sr->this.host_srcip, 0, p, sizeof(srcip_str)); - strncat(srcip_str, "'", sizeof(srcip_str)); + strncat(srcip_str, "'", sizeof(srcip_str)-strlen(srcip_str)-1); } {
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor