mirror of
https://git.openldap.org/openldap/openldap.git
synced 2026-01-04 06:01:23 -05:00
benign buffer overflow fix (ITS#1964)
This commit is contained in:
parent
ba6d2c5cc0
commit
b4e1ea15f3
3 changed files with 4 additions and 4 deletions
|
|
@ -338,7 +338,6 @@ at_add(
|
|||
ldap_memfree( at->at_syntax_oid );
|
||||
at->at_syntax_oid = oid;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
if ( at->at_names && at->at_names[0] ) {
|
||||
|
|
|
|||
|
|
@ -28,7 +28,8 @@ lock_fopen( const char *fname, const char *type, FILE **lfp )
|
|||
char buf[MAXPATHLEN];
|
||||
|
||||
/* open the lock file */
|
||||
strcpy(lutil_strcopy( buf, fname ), ".lock" );
|
||||
snprintf( buf, sizeof buf, "%s.lock", fname );
|
||||
|
||||
if ( (*lfp = fopen( buf, "w" )) == NULL ) {
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG( OPERATION, ERR,
|
||||
|
|
|
|||
|
|
@ -47,8 +47,8 @@ lock_fopen(
|
|||
char buf[MAXPATHLEN];
|
||||
|
||||
/* open the lock file */
|
||||
strcpy( buf, fname );
|
||||
strcat( buf, ".lock" );
|
||||
snprintf( buf, sizeof buf, "%s.lock", fname );
|
||||
|
||||
if ( (*lfp = fopen( buf, "w" )) == NULL ) {
|
||||
#ifdef NEW_LOGGING
|
||||
LDAP_LOG ( SLURPD, ERR, "lock_fopen: "
|
||||
|
|
|
|||
Loading…
Reference in a new issue