Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
devel:openSUSE:Factory
dmtcp
dmtcp-overflow.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File dmtcp-overflow.patch of Package dmtcp
Index: dmtcp-2.5.2/jalib/jsocket.cpp =================================================================== --- dmtcp-2.5.2.orig/jalib/jsocket.cpp +++ dmtcp-2.5.2/jalib/jsocket.cpp @@ -175,7 +175,7 @@ bool jalib::JSocket::connect ( const st struct sockaddr_storage addrbuf; memset ( &addrbuf,0,sizeof ( addrbuf ) ); JASSERT ( addrlen <= sizeof ( addrbuf ) ) ( addrlen ) ( sizeof ( addrbuf ) ); - memcpy ( &addrbuf,addr,addrlen ); + memcpy ( &addrbuf,addr,addrlen+1 ); JWARNING ( addrlen == sizeof ( sockaddr_in ) ) ( addrlen ) ( sizeof ( sockaddr_in ) ).Text ( "may not be correct socket type" ); if (port != -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