Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:11.4
xfsdump
xfsdump-3.0.1-fix-bufferoverflow.diff
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File xfsdump-3.0.1-fix-bufferoverflow.diff of Package xfsdump
Index: xfsdump-3.0.1/common/path.c =================================================================== --- xfsdump-3.0.1.orig/common/path.c +++ xfsdump-3.0.1/common/path.c @@ -283,11 +283,15 @@ pa_gen( pa_t *pap ) sz = 0; for ( i = 0 ; i < pap->pa_cnt ; i++ ) { sz += strlen( pap->pa_array[ i ] ) + 1; } - sz++; + sz++; /* '\0' */ + /* if pa_cnt == 0, then we need '/' + '\0' */ + if ( pap->pa_cnt <= 0 ) { + sz++; + } retp = ( char * )malloc( sz ); if ( pap->pa_cnt <= 0 ) { ASSERT( pap->pa_cnt == 0 );
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