idx
int64
func_before
string
Vulnerability Classification
string
vul
int64
func_after
string
patch
string
CWE ID
string
lines_before
string
lines_after
string
13,200
void check_tmp_dir(){ #if !defined(WIN32) if (!RmFlag) return; const char *tmpDir = NULL; bool newLock = param_boolean("CREATE_LOCKS_ON_LOCAL_DISK", true); if (newLock) { FileLock *lock = new FileLock(-1, NULL, NULL); tmpDir = lock->GetTempPath(); delete lock; rec_lock_cleanup(tmpDir, 3); if (tmpDir != ...
DoS Exec Code
0
void check_tmp_dir(){ #if !defined(WIN32) if (!RmFlag) return; const char *tmpDir = NULL; bool newLock = param_boolean("CREATE_LOCKS_ON_LOCAL_DISK", true); if (newLock) { FileLock *lock = new FileLock(-1, NULL, NULL); tmpDir = lock->GetTempPath(); delete lock; rec_lock_cleanup(tmpDir, 3); if (tmpDir != ...
@@ -221,17 +221,17 @@ produce_output() } szTmp.sprintf("The condor_preen process has found the following stale condor files on <%s>:\n\n", get_local_hostname().Value()); - dprintf(D_ALWAYS, szTmp.Value()); + dprintf(D_ALWAYS, "%s", szTmp.Value()); if( MailFlag )...
CWE-134
null
null
13,201
cluster_exists( int cluster ) { return proc_exists( cluster, -1 ); }
DoS Exec Code
0
cluster_exists( int cluster ) { return proc_exists( cluster, -1 ); }
@@ -221,17 +221,17 @@ produce_output() } szTmp.sprintf("The condor_preen process has found the following stale condor files on <%s>:\n\n", get_local_hostname().Value()); - dprintf(D_ALWAYS, szTmp.Value()); + dprintf(D_ALWAYS, "%s", szTmp.Value()); if( MailFlag )...
CWE-134
null
null
13,202
get_machine_state() { char* state_str = NULL; State s; ReliSock* sock; Daemon my_startd( DT_STARTD ); if( ! my_startd.locate() ) { dprintf( D_ALWAYS, "Can't find local startd address.\n" ); return _error_state_; } if( !(sock = (ReliSock*) my_startd.startCommand(GIVE_STATE, Stream::reli_sock, 0)) ) {...
DoS Exec Code
0
get_machine_state() { char* state_str = NULL; State s; ReliSock* sock; Daemon my_startd( DT_STARTD ); if( ! my_startd.locate() ) { dprintf( D_ALWAYS, "Can't find local startd address.\n" ); return _error_state_; } if( !(sock = (ReliSock*) my_startd.startCommand(GIVE_STATE, Stream::reli_sock, 0)) ) {...
@@ -221,17 +221,17 @@ produce_output() } szTmp.sprintf("The condor_preen process has found the following stale condor files on <%s>:\n\n", get_local_hostname().Value()); - dprintf(D_ALWAYS, szTmp.Value()); + dprintf(D_ALWAYS, "%s", szTmp.Value()); if( MailFlag )...
CWE-134
null
null
13,203
grab_val( const char *str, const char *pattern ) { char const *ptr; if( (ptr = strstr(str,pattern)) ) { return atoi(ptr + strlen(pattern) ); } return -1; }
DoS Exec Code
0
grab_val( const char *str, const char *pattern ) { char const *ptr; if( (ptr = strstr(str,pattern)) ) { return atoi(ptr + strlen(pattern) ); } return -1; }
@@ -221,17 +221,17 @@ produce_output() } szTmp.sprintf("The condor_preen process has found the following stale condor files on <%s>:\n\n", get_local_hostname().Value()); - dprintf(D_ALWAYS, szTmp.Value()); + dprintf(D_ALWAYS, "%s", szTmp.Value()); if( MailFlag )...
CWE-134
null
null
13,204
init_params() { Spool = param("SPOOL"); if( Spool == NULL ) { EXCEPT( "SPOOL not specified in config file\n" ); } Log = param("LOG"); if( Log == NULL ) { EXCEPT( "LOG not specified in config file\n" ); } DaemonSockDir = param("DAEMON_SOCKET_DIR"); if( DaemonSockDir == NULL ) { EX...
DoS Exec Code
0
init_params() { Spool = param("SPOOL"); if( Spool == NULL ) { EXCEPT( "SPOOL not specified in config file\n" ); } Log = param("LOG"); if( Log == NULL ) { EXCEPT( "LOG not specified in config file\n" ); } DaemonSockDir = param("DAEMON_SOCKET_DIR"); if( DaemonSockDir == NULL ) { EX...
@@ -221,17 +221,17 @@ produce_output() } szTmp.sprintf("The condor_preen process has found the following stale condor files on <%s>:\n\n", get_local_hostname().Value()); - dprintf(D_ALWAYS, szTmp.Value()); + dprintf(D_ALWAYS, "%s", szTmp.Value()); if( MailFlag )...
CWE-134
null
null
13,205
is_ccb_file( const char *name ) { if( strstr(name,".ccb_reconnect") ) { return TRUE; } return FALSE; }
DoS Exec Code
0
is_ccb_file( const char *name ) { if( strstr(name,".ccb_reconnect") ) { return TRUE; } return FALSE; }
@@ -221,17 +221,17 @@ produce_output() } szTmp.sprintf("The condor_preen process has found the following stale condor files on <%s>:\n\n", get_local_hostname().Value()); - dprintf(D_ALWAYS, szTmp.Value()); + dprintf(D_ALWAYS, "%s", szTmp.Value()); if( MailFlag )...
CWE-134
null
null
13,206
is_ckpt_file( const char *name ) { if( strstr(name,"cluster") ) { return is_v3_ckpt( name ); } else { return is_v2_ckpt( name ); } }
DoS Exec Code
0
is_ckpt_file( const char *name ) { if( strstr(name,"cluster") ) { return is_v3_ckpt( name ); } else { return is_v2_ckpt( name ); } }
@@ -221,17 +221,17 @@ produce_output() } szTmp.sprintf("The condor_preen process has found the following stale condor files on <%s>:\n\n", get_local_hostname().Value()); - dprintf(D_ALWAYS, szTmp.Value()); + dprintf(D_ALWAYS, "%s", szTmp.Value()); if( MailFlag )...
CWE-134
null
null
13,207
is_v2_ckpt( const char *name ) { int cluster; int proc; cluster = grab_val( name, "job" ); proc = grab_val( name, ".ckpt." ); if( proc < 0 ) { return cluster_exists( cluster ); } else { return proc_exists( cluster, proc ); } }
DoS Exec Code
0
is_v2_ckpt( const char *name ) { int cluster; int proc; cluster = grab_val( name, "job" ); proc = grab_val( name, ".ckpt." ); if( proc < 0 ) { return cluster_exists( cluster ); } else { return proc_exists( cluster, proc ); } }
@@ -221,17 +221,17 @@ produce_output() } szTmp.sprintf("The condor_preen process has found the following stale condor files on <%s>:\n\n", get_local_hostname().Value()); - dprintf(D_ALWAYS, szTmp.Value()); + dprintf(D_ALWAYS, "%s", szTmp.Value()); if( MailFlag )...
CWE-134
null
null
13,208
is_v3_ckpt( const char *name ) { int cluster; int proc; int subproc; cluster = grab_val( name, "cluster" ); proc = grab_val( name, ".proc" ); subproc = grab_val( name, ".subproc" ); if( proc < 0 ) { return cluster_exists( cluster ); } else { return proc_exists( cluster, proc ); } }
DoS Exec Code
0
is_v3_ckpt( const char *name ) { int cluster; int proc; int subproc; cluster = grab_val( name, "cluster" ); proc = grab_val( name, ".proc" ); subproc = grab_val( name, ".subproc" ); if( proc < 0 ) { return cluster_exists( cluster ); } else { return proc_exists( cluster, proc ); } }
@@ -221,17 +221,17 @@ produce_output() } szTmp.sprintf("The condor_preen process has found the following stale condor files on <%s>:\n\n", get_local_hostname().Value()); - dprintf(D_ALWAYS, szTmp.Value()); + dprintf(D_ALWAYS, "%s", szTmp.Value()); if( MailFlag )...
CWE-134
null
null
13,209
is_valid_shared_exe( const char *name ) { if ((strlen(name) < 4) || (strncmp(name, "exe-", 4) != 0)) { return FALSE; } MyString path; path.sprintf("%s/%s", Spool, name); int count = link_count(path.Value()); if (count == 1) { return FALSE; } if (count == -1) { dprintf(D_ALWAYS, "link_count error on %s; no...
DoS Exec Code
0
is_valid_shared_exe( const char *name ) { if ((strlen(name) < 4) || (strncmp(name, "exe-", 4) != 0)) { return FALSE; } MyString path; path.sprintf("%s/%s", Spool, name); int count = link_count(path.Value()); if (count == 1) { return FALSE; } if (count == -1) { dprintf(D_ALWAYS, "link_count error on %s; no...
@@ -221,17 +221,17 @@ produce_output() } szTmp.sprintf("The condor_preen process has found the following stale condor files on <%s>:\n\n", get_local_hostname().Value()); - dprintf(D_ALWAYS, szTmp.Value()); + dprintf(D_ALWAYS, "%s", szTmp.Value()); if( MailFlag )...
CWE-134
null
null
13,210
main( int argc, char *argv[] ) { #ifndef WIN32 install_sig_handler(SIGPIPE, SIG_IGN ); #endif config(false,false,false); MyName = argv[0]; myDistro->Init( argc, argv ); config(); init_params(); BadFiles = new StringList; param_functions *p_funcs = NULL; for( argv++; *argv; argv++ ) { if( (*argv)[0] ==...
DoS Exec Code
0
main( int argc, char *argv[] ) { #ifndef WIN32 install_sig_handler(SIGPIPE, SIG_IGN ); #endif config(false,false,false); MyName = argv[0]; myDistro->Init( argc, argv ); config(); init_params(); BadFiles = new StringList; param_functions *p_funcs = NULL; for( argv++; *argv; argv++ ) { if( (*argv)[0] ==...
@@ -221,17 +221,17 @@ produce_output() } szTmp.sprintf("The condor_preen process has found the following stale condor files on <%s>:\n\n", get_local_hostname().Value()); - dprintf(D_ALWAYS, szTmp.Value()); + dprintf(D_ALWAYS, "%s", szTmp.Value()); if( MailFlag )...
CWE-134
null
null
13,211
proc_exists( int cluster, int proc ) { ClassAd *ad; if ((ad = GetJobAd(cluster,proc)) != NULL) { FreeJobAd(ad); return TRUE; } return FALSE; }
DoS Exec Code
0
proc_exists( int cluster, int proc ) { ClassAd *ad; if ((ad = GetJobAd(cluster,proc)) != NULL) { FreeJobAd(ad); return TRUE; } return FALSE; }
@@ -221,17 +221,17 @@ produce_output() } szTmp.sprintf("The condor_preen process has found the following stale condor files on <%s>:\n\n", get_local_hostname().Value()); - dprintf(D_ALWAYS, szTmp.Value()); + dprintf(D_ALWAYS, "%s", szTmp.Value()); if( MailFlag )...
CWE-134
null
null
13,212
void rec_lock_cleanup(const char *path, int depth, bool remove_self) { #if !defined(WIN32) FileLock *lock = NULL; if (depth == 0) { lock = new FileLock(path, true, true); delete lock; return ; } Directory *dir = new Directory(path); if (dir == NULL) { return; } const char *entry; while ((entry = dir->Ne...
DoS Exec Code
0
void rec_lock_cleanup(const char *path, int depth, bool remove_self) { #if !defined(WIN32) FileLock *lock = NULL; if (depth == 0) { lock = new FileLock(path, true, true); delete lock; return ; } Directory *dir = new Directory(path); if (dir == NULL) { return; } const char *entry; while ((entry = dir->Ne...
@@ -221,17 +221,17 @@ produce_output() } szTmp.sprintf("The condor_preen process has found the following stale condor files on <%s>:\n\n", get_local_hostname().Value()); - dprintf(D_ALWAYS, szTmp.Value()); + dprintf(D_ALWAYS, "%s", szTmp.Value()); if( MailFlag )...
CWE-134
null
null
13,213
touched_recently(char const *fname,time_t delta) { StatInfo statinfo(fname); if( statinfo.Error() != 0 ) { return false; } if( abs((int)(time(NULL)-statinfo.GetModifyTime())) > delta ) { return false; } return true; }
DoS Exec Code
0
touched_recently(char const *fname,time_t delta) { StatInfo statinfo(fname); if( statinfo.Error() != 0 ) { return false; } if( abs((int)(time(NULL)-statinfo.GetModifyTime())) > delta ) { return false; } return true; }
@@ -221,17 +221,17 @@ produce_output() } szTmp.sprintf("The condor_preen process has found the following stale condor files on <%s>:\n\n", get_local_hostname().Value()); - dprintf(D_ALWAYS, szTmp.Value()); + dprintf(D_ALWAYS, "%s", szTmp.Value()); if( MailFlag )...
CWE-134
null
null
13,214
usage() { fprintf( stderr, "Usage: %s [-mail] [-remove] [-verbose] [-debug]\n", MyName ); exit( 1 ); }
DoS Exec Code
0
usage() { fprintf( stderr, "Usage: %s [-mail] [-remove] [-verbose] [-debug]\n", MyName ); exit( 1 ); }
@@ -221,17 +221,17 @@ produce_output() } szTmp.sprintf("The condor_preen process has found the following stale condor files on <%s>:\n\n", get_local_hostname().Value()); - dprintf(D_ALWAYS, szTmp.Value()); + dprintf(D_ALWAYS, "%s", szTmp.Value()); if( MailFlag )...
CWE-134
null
null
13,215
RuntimeConfigItem() : admin(NULL), config(NULL) { }
DoS Exec Code
0
RuntimeConfigItem() : admin(NULL), config(NULL) { }
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,216
check_domain_attributes() { /* Make sure the FILESYSTEM_DOMAIN and UID_DOMAIN attributes are set to something reasonable. If they're not already defined, we default to our own full hostname. Moved this to its own function so we're sure we have our full hostname by the time we call this. -Derek W...
DoS Exec Code
0
check_domain_attributes() { /* Make sure the FILESYSTEM_DOMAIN and UID_DOMAIN attributes are set to something reasonable. If they're not already defined, we default to our own full hostname. Moved this to its own function so we're sure we have our full hostname by the time we call this. -Derek W...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,217
check_params() { #if defined( HPUX ) char* tmp; if( !(tmp = param("ARCH")) ) { fprintf( stderr, "ERROR: %s must know if you are running " "on an HPPA1 or an HPPA2 CPU.\n", myDistro->Get() ); fprintf( stderr, "Normally, we look in %s for your model.\n", "/opt/langtools/lib/sched.models" ); fprintf...
DoS Exec Code
0
check_params() { #if defined( HPUX ) char* tmp; if( !(tmp = param("ARCH")) ) { fprintf( stderr, "ERROR: %s must know if you are running " "on an HPPA1 or an HPPA2 CPU.\n", myDistro->Get() ); fprintf( stderr, "Normally, we look in %s for your model.\n", "/opt/langtools/lib/sched.models" ); fprintf...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,218
clear_config() { register int i; register BUCKET *ptr = NULL; register BUCKET *tmp = NULL; for( i=0; i<TABLESIZE; i++ ) { ptr = ConfigTab[i]; while( ptr ) { tmp = ptr->next; FREE( ptr->value ); ptr->value = NULL; FREE( ptr->name ); ptr->name = NULL; FREE( ptr ); ptr = tmp; } Config...
DoS Exec Code
0
clear_config() { register int i; register BUCKET *ptr = NULL; register BUCKET *tmp = NULL; for( i=0; i<TABLESIZE; i++ ) { ptr = ConfigTab[i]; while( ptr ) { tmp = ptr->next; FREE( ptr->value ); ptr->value = NULL; FREE( ptr->name ); ptr->name = NULL; FREE( ptr ); ptr = tmp; } Config...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,219
int compareFiles(const void *a, const void *b) { return strcmp(*(char *const*)a, *(char *const*)b); }
DoS Exec Code
0
int compareFiles(const void *a, const void *b) { return strcmp(*(char *const*)a, *(char *const*)b); }
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,220
config_fill_ad( ClassAd* ad, const char *prefix ) { char *tmp; char *expr; StringList reqdExprs; MyString buffer; if( !ad ) return; if ( ( NULL == prefix ) && get_mySubSystem()->hasLocalName() ) { prefix = get_mySubSystem()->getLocalName(); } buffer.sprintf( "%s_EXPRS", get_mySubSystem()->getName() ); ...
DoS Exec Code
0
config_fill_ad( ClassAd* ad, const char *prefix ) { char *tmp; char *expr; StringList reqdExprs; MyString buffer; if( !ad ) return; if ( ( NULL == prefix ) && get_mySubSystem()->hasLocalName() ) { prefix = get_mySubSystem()->getLocalName(); } buffer.sprintf( "%s_EXPRS", get_mySubSystem()->getName() ); ...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,221
config_host( char* host ) { real_config( host, 0, true ); }
DoS Exec Code
0
config_host( char* host ) { real_config( host, 0, true ); }
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,222
find_file(const char *env_name, const char *file_name) { char* config_source = NULL; char* env = NULL; int fd = 0; if( env_name && (env = getenv( env_name )) ) { config_source = strdup( env ); StatInfo si( config_source ); switch( si.Error() ) { case SIGood: if( si.IsDirectory() ) { fprintf( stderr,...
DoS Exec Code
0
find_file(const char *env_name, const char *file_name) { char* config_source = NULL; char* env = NULL; int fd = 0; if( env_name && (env = getenv( env_name )) ) { config_source = strdup( env ); StatInfo si( config_source ); switch( si.Error() ) { case SIGood: if( si.IsDirectory() ) { fprintf( stderr,...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,223
find_global() { MyString file; file.sprintf( "%s_config", myDistro->Get() ); return find_file( EnvGetName( ENV_CONFIG), file.Value() ); }
DoS Exec Code
0
find_global() { MyString file; file.sprintf( "%s_config", myDistro->Get() ); return find_file( EnvGetName( ENV_CONFIG), file.Value() ); }
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,224
get_exclude_regex(Regex &excludeFilesRegex) { const char* _errstr; int _erroffset; char* excludeRegex = param("LOCAL_CONFIG_DIR_EXCLUDE_REGEXP"); if(excludeRegex) { if (!excludeFilesRegex.compile(excludeRegex, &_errstr, &_erroffset)) { EXCEPT("LOCAL_CONFIG_DIR_EXCLUDE_REGEXP " "config parameter...
DoS Exec Code
0
get_exclude_regex(Regex &excludeFilesRegex) { const char* _errstr; int _erroffset; char* excludeRegex = param("LOCAL_CONFIG_DIR_EXCLUDE_REGEXP"); if(excludeRegex) { if (!excludeFilesRegex.compile(excludeRegex, &_errstr, &_erroffset)) { EXCEPT("LOCAL_CONFIG_DIR_EXCLUDE_REGEXP " "config parameter...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,225
get_tilde() { init_tilde(); return tilde; }
DoS Exec Code
0
get_tilde() { init_tilde(); return tilde; }
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,226
init_config(bool wantExtraInfo /* = true */) { memset( (char *)ConfigTab, 0, (TABLESIZE * sizeof(BUCKET*)) ); if (wantExtraInfo) { extra_info = new ExtraParamTable(); } else { extra_info = new DummyExtraParamTable(); } param_info_init(); return; }
DoS Exec Code
0
init_config(bool wantExtraInfo /* = true */) { memset( (char *)ConfigTab, 0, (TABLESIZE * sizeof(BUCKET*)) ); if (wantExtraInfo) { extra_info = new ExtraParamTable(); } else { extra_info = new DummyExtraParamTable(); } param_info_init(); return; }
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,227
init_dynamic_config() { static bool initialized = false; if( initialized ) { return; } enable_runtime = param_boolean( "ENABLE_RUNTIME_CONFIG", false ); enable_persistent = param_boolean( "ENABLE_PERSISTENT_CONFIG", false ); initialized = true; if( !enable_persistent ) { return; } char* tmp; MyString...
DoS Exec Code
0
init_dynamic_config() { static bool initialized = false; if( initialized ) { return; } enable_runtime = param_boolean( "ENABLE_RUNTIME_CONFIG", false ); enable_persistent = param_boolean( "ENABLE_PERSISTENT_CONFIG", false ); initialized = true; if( !enable_persistent ) { return; } char* tmp; MyString...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,228
init_tilde() { if( tilde ) { free( tilde ); tilde = NULL; } # if defined UNIX struct passwd *pw; if( (pw=getpwnam( myDistro->Get() )) ) { tilde = strdup( pw->pw_dir ); } # else HKEY handle; char regKey[1024]; snprintf( regKey, 1024, "Software\\%s", myDistro->GetCap() ); if ( RegOpenKeyEx(HKEY_LOCAL_MAC...
DoS Exec Code
0
init_tilde() { if( tilde ) { free( tilde ); tilde = NULL; } # if defined UNIX struct passwd *pw; if( (pw=getpwnam( myDistro->Get() )) ) { tilde = strdup( pw->pw_dir ); } # else HKEY handle; char regKey[1024]; snprintf( regKey, 1024, "Software\\%s", myDistro->GetCap() ); if ( RegOpenKeyEx(HKEY_LOCAL_MAC...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,229
void initialize() { admin = config = NULL; }
DoS Exec Code
0
void initialize() { admin = config = NULL; }
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,230
macro_expand( const char *str ) { return( expand_macro(str, ConfigTab, TABLESIZE) ); }
DoS Exec Code
0
macro_expand( const char *str ) { return( expand_macro(str, ConfigTab, TABLESIZE) ); }
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,231
param(const char* name) { /* The zero means return NULL on not found instead of EXCEPT */ return param_with_default_abort(name, 0); }
DoS Exec Code
0
param(const char* name) { /* The zero means return NULL on not found instead of EXCEPT */ return param_with_default_abort(name, 0); }
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,232
bool param(MyString &buf,char const *param_name,char const *default_value) { bool found = false; char *param_value = param(param_name); if( param_value ) { buf = param_value; found = true; } else if( default_value ) { buf = default_value; } free( param_value ); return found; }
DoS Exec Code
0
bool param(MyString &buf,char const *param_name,char const *default_value) { bool found = false; char *param_value = param(param_name); if( param_value ) { buf = param_value; found = true; } else if( default_value ) { buf = default_value; } free( param_value ); return found; }
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,233
bool param(std::string &buf,char const *param_name,char const *default_value) { bool found = false; char *param_value = param(param_name); if( param_value ) { buf = param_value; found = true; } else if( default_value ) { buf = default_value; } free( param_value ); return found; }
DoS Exec Code
0
bool param(std::string &buf,char const *param_name,char const *default_value) { bool found = false; char *param_value = param(param_name); if( param_value ) { buf = param_value; found = true; } else if( default_value ) { buf = default_value; } free( param_value ); return found; }
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,234
param_boolean( const char *name, bool default_value, bool do_log, ClassAd *me, ClassAd *target, bool use_param_table ) { if(use_param_table) { int tbl_default_valid; bool tbl_default_value = param_default_boolean( name, &tbl_default_valid ); if (tbl_default_valid) { default_value = tbl_defaul...
DoS Exec Code
0
param_boolean( const char *name, bool default_value, bool do_log, ClassAd *me, ClassAd *target, bool use_param_table ) { if(use_param_table) { int tbl_default_valid; bool tbl_default_value = param_default_boolean( name, &tbl_default_valid ); if (tbl_default_valid) { default_value = tbl_defaul...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,235
param_boolean_crufty( const char *name, bool default_value ) { char *tmp = param(name); if (tmp) { char c = *tmp; free(tmp); if ('t' == c || 'T' == c) { return true; } else if ('f' == c || 'F' == c) { return false; } else { return param_boolean(name, default_value); } } else { return param_bo...
DoS Exec Code
0
param_boolean_crufty( const char *name, bool default_value ) { char *tmp = param(name); if (tmp) { char c = *tmp; free(tmp); if ('t' == c || 'T' == c) { return true; } else if ('f' == c || 'F' == c) { return false; } else { return param_boolean(name, default_value); } } else { return param_bo...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,236
param_boolean_int( const char *name, int default_value ) { bool default_bool; default_bool = default_value == 0 ? false : true; return param_boolean(name, default_bool) ? 1 : 0; }
DoS Exec Code
0
param_boolean_int( const char *name, int default_value ) { bool default_bool; default_bool = default_value == 0 ? false : true; return param_boolean(name, default_bool) ? 1 : 0; }
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,237
bool param_defined(const char* name) { char* v = param_without_default(name); if (NULL == v) return false; free(v); return true; }
DoS Exec Code
0
bool param_defined(const char* name) { char* v = param_without_default(name); if (NULL == v) return false; free(v); return true; }
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,238
param_double( const char *name, double default_value, double min_value, double max_value, ClassAd *me, ClassAd *target, bool use_param_table ) { if(use_param_table) { int tbl_default_valid; double tbl_default_value = param_default_double( name, &tbl_default_valid ); param_range_double(name, &...
DoS Exec Code
0
param_double( const char *name, double default_value, double min_value, double max_value, ClassAd *me, ClassAd *target, bool use_param_table ) { if(use_param_table) { int tbl_default_valid; double tbl_default_value = param_default_double( name, &tbl_default_valid ); param_range_double(name, &...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,239
param_integer( const char *name, int &value, bool use_default, int default_value, bool check_ranges, int min_value, int max_value, ClassAd *me, ClassAd *target, bool use_param_table ) { if(use_param_table) { int tbl_default_valid; int tbl_default_value = param_default_integer( name, &tb...
DoS Exec Code
0
param_integer( const char *name, int &value, bool use_default, int default_value, bool check_ranges, int min_value, int max_value, ClassAd *me, ClassAd *target, bool use_param_table ) { if(use_param_table) { int tbl_default_valid; int tbl_default_value = param_default_integer( name, &tb...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,240
param_integer( const char *name, int default_value, int min_value, int max_value, bool use_param_table ) { int result; param_integer( name, result, true, default_value, true, min_value, max_value, NULL, NULL, use_param_table ); return result; }
DoS Exec Code
0
param_integer( const char *name, int default_value, int min_value, int max_value, bool use_param_table ) { int result; param_integer( name, result, true, default_value, true, min_value, max_value, NULL, NULL, use_param_table ); return result; }
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,241
int param_integer_c( const char *name, int default_value, int min_value, int max_value, bool use_param_table ) { return param_integer( name, default_value, min_value, max_value, use_param_table ); }
DoS Exec Code
0
int param_integer_c( const char *name, int default_value, int min_value, int max_value, bool use_param_table ) { return param_integer( name, default_value, min_value, max_value, use_param_table ); }
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,242
char* param_or_except(const char *attr) { char *tmp = NULL; tmp = param(attr); if (tmp == NULL || strlen(tmp) <= 0) { EXCEPT("Please define config file entry to non-null value: %s", attr); } return tmp; }
DoS Exec Code
0
char* param_or_except(const char *attr) { char *tmp = NULL; tmp = param(attr); if (tmp == NULL || strlen(tmp) <= 0) { EXCEPT("Please define config file entry to non-null value: %s", attr); } return tmp; }
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,243
param_with_default_abort(const char *name, int abort) { char *val = NULL; char *next_param_name = NULL; MyString subsys = get_mySubSystem()->getName(); MyString local = get_mySubSystem()->getLocalName(); MyString subsys_local_name; MyString local_name; MyString subsys_name; StringList sl; if (local != "") { ...
DoS Exec Code
0
param_with_default_abort(const char *name, int abort) { char *val = NULL; char *next_param_name = NULL; MyString subsys = get_mySubSystem()->getName(); MyString local = get_mySubSystem()->getLocalName(); MyString subsys_local_name; MyString local_name; MyString subsys_name; StringList sl; if (local != "") { ...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,244
param_without_default( const char *name ) { char *val = NULL; char param_name[MAX_PARAM_LEN]; const char *local = get_mySubSystem()->getLocalName(); if ( (NULL == val) && local ) { snprintf(param_name,MAX_PARAM_LEN,"%s.%s.%s", get_mySubSystem()->getName(), local, name); param_name[MAX_PARAM_L...
DoS Exec Code
0
param_without_default( const char *name ) { char *val = NULL; char param_name[MAX_PARAM_LEN]; const char *local = get_mySubSystem()->getLocalName(); if ( (NULL == val) && local ) { snprintf(param_name,MAX_PARAM_LEN,"%s.%s.%s", get_mySubSystem()->getName(), local, name); param_name[MAX_PARAM_L...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,245
process_config_source( const char* file, const char* name, const char* host, int required ) { int rval; if( access( file, R_OK ) != 0 && !is_piped_command(file)) { if( !required) { return; } if( !host ) { fprintf( stderr, "ERROR: Can't read %s %s\n", name, file ); exit( 1 ); } } else { r...
DoS Exec Code
0
process_config_source( const char* file, const char* name, const char* host, int required ) { int rval; if( access( file, R_OK ) != 0 && !is_piped_command(file)) { if( !required) { return; } if( !host ) { fprintf( stderr, "ERROR: Can't read %s %s\n", name, file ); exit( 1 ); } } else { r...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,246
process_directory( char* dirlist, char* host ) { StringList locals; Directory *files; const char *file, *dirpath; char **paths; int local_required; Regex excludeFilesRegex; local_required = param_boolean_crufty("REQUIRE_LOCAL_CONFIG_FILE", true); if(!dirlist) { return; } locals.initializeFromString( dirlist...
DoS Exec Code
0
process_directory( char* dirlist, char* host ) { StringList locals; Directory *files; const char *file, *dirpath; char **paths; int local_required; Regex excludeFilesRegex; local_required = param_boolean_crufty("REQUIRE_LOCAL_CONFIG_FILE", true); if(!dirlist) { return; } locals.initializeFromString( dirlist...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,247
process_dynamic_configs() { int per_rval = 0; int run_rval = 0; init_dynamic_config(); if( enable_persistent ) { per_rval = process_persistent_configs(); } if( enable_runtime ) { run_rval = process_runtime_configs(); } if( per_rval < 0 || run_rval < 0 ) { return -1; } if( per_rval || run_rval ) { ...
DoS Exec Code
0
process_dynamic_configs() { int per_rval = 0; int run_rval = 0; init_dynamic_config(); if( enable_persistent ) { per_rval = process_persistent_configs(); } if( enable_runtime ) { run_rval = process_runtime_configs(); } if( per_rval < 0 || run_rval < 0 ) { return -1; } if( per_rval || run_rval ) { ...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,248
process_locals( const char* param_name, const char* host ) { StringList sources_to_process, sources_done; char *source, *sources_value; int local_required; local_required = param_boolean_crufty("REQUIRE_LOCAL_CONFIG_FILE", true); sources_value = param( param_name ); if( sources_value ) { if ( is_piped_command...
DoS Exec Code
0
process_locals( const char* param_name, const char* host ) { StringList sources_to_process, sources_done; char *source, *sources_value; int local_required; local_required = param_boolean_crufty("REQUIRE_LOCAL_CONFIG_FILE", true); sources_value = param( param_name ); if( sources_value ) { if ( is_piped_command...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,249
process_persistent_configs() { char *tmp = NULL; int rval; bool processed = false; if( access( toplevel_persistent_config.Value(), R_OK ) == 0 && PersistAdminList.number() == 0 ) { processed = true; rval = Read_config( toplevel_persistent_config.Value(), ConfigTab, TABLESIZE, EXPAND_LAZY, true, extr...
DoS Exec Code
0
process_persistent_configs() { char *tmp = NULL; int rval; bool processed = false; if( access( toplevel_persistent_config.Value(), R_OK ) == 0 && PersistAdminList.number() == 0 ) { processed = true; rval = Read_config( toplevel_persistent_config.Value(), ConfigTab, TABLESIZE, EXPAND_LAZY, true, extr...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,250
reinsert_specials( char* host ) { static unsigned int reinsert_pid = 0; static unsigned int reinsert_ppid = 0; static bool warned_no_user = false; char buf[40]; if( tilde ) { insert( "TILDE", tilde, ConfigTab, TABLESIZE ); extra_info->AddInternalParam("TILDE"); } if( host ) { insert( "HOSTNAME", host, Con...
DoS Exec Code
0
reinsert_specials( char* host ) { static unsigned int reinsert_pid = 0; static unsigned int reinsert_ppid = 0; static bool warned_no_user = false; char buf[40]; if( tilde ) { insert( "TILDE", tilde, ConfigTab, TABLESIZE ); extra_info->AddInternalParam("TILDE"); } if( host ) { insert( "HOSTNAME", host, Con...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,251
set_persistent_config(char *admin, char *config) { int fd, rval; char *tmp; MyString filename; MyString tmp_filename; priv_state priv; if (!admin || !admin[0] || !enable_persistent) { if (!enable_persistent) { dprintf( D_ALWAYS, "set_persistent_config(): " "ENABLE_PERSISTENT_CONFIG is false. " "Not ...
DoS Exec Code
0
set_persistent_config(char *admin, char *config) { int fd, rval; char *tmp; MyString filename; MyString tmp_filename; priv_state priv; if (!admin || !admin[0] || !enable_persistent) { if (!enable_persistent) { dprintf( D_ALWAYS, "set_persistent_config(): " "ENABLE_PERSISTENT_CONFIG is false. " "Not ...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,252
set_runtime_config(char *admin, char *config) { int i; if (!admin || !admin[0] || !enable_runtime) { if (admin) { free(admin); } if (config) { free(config); } return -1; } if (config && config[0]) { for (i=0; i <= rArray.getlast(); i++) { if (strcmp(rArray[i].admin, admin) == MATCH) { free(admin)...
DoS Exec Code
0
set_runtime_config(char *admin, char *config) { int i; if (!admin || !admin[0] || !enable_runtime) { if (admin) { free(admin); } if (config) { free(config); } return -1; } if (config && config[0]) { for (i=0; i <= rArray.getlast(); i++) { if (strcmp(rArray[i].admin, admin) == MATCH) { free(admin)...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,253
write_config_file(const char* pathname) { int config_fd = creat(pathname, O_WRONLY); if(config_fd == -1) { dprintf(D_ALWAYS, "Failed to create configuration file.\n"); return -1; } iterate_params(&write_config_variable, &config_fd); if(close(config_fd) == -1) { dprintf(D_ALWAYS, "Error closing new configurat...
DoS Exec Code
0
write_config_file(const char* pathname) { int config_fd = creat(pathname, O_WRONLY); if(config_fd == -1) { dprintf(D_ALWAYS, "Failed to create configuration file.\n"); return -1; } iterate_params(&write_config_variable, &config_fd); if(close(config_fd) == -1) { dprintf(D_ALWAYS, "Error closing new configurat...
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,254
~RuntimeConfigItem() { if (admin) free(admin); if (config) free(config); }
DoS Exec Code
0
~RuntimeConfigItem() { if (admin) free(admin); if (config) free(config); }
@@ -240,7 +240,7 @@ validate_entries( bool ignore_invalid_entry ) { if(ignore_invalid_entry) { dprintf(D_ALWAYS, "%s", output.Value()); } else { - EXCEPT(output.Value()); + EXCEPT("%s", output.Value()); }...
CWE-134
null
null
13,255
CronTab::CronTab() { this->lastRunTime = CRONTAB_INVALID; this->valid = false; }
DoS Exec Code
0
CronTab::CronTab() { this->lastRunTime = CRONTAB_INVALID; this->valid = false; }
@@ -373,7 +373,7 @@ CronTab::initRegexObject() { if ( ! CronTab::regex.compile( pattern, &errptr, &erroffset )) { MyString error = "CronTab: Failed to compile Regex - "; error += pattern; - EXCEPT( const_cast<char*>(error.Value())); +...
CWE-134
null
null
13,256
CronTab::CronTab( int minutes, int hours, int days_of_month, int months, int days_of_week ) { if ( minutes == CRONTAB_CRONOS_STAR ) { this->parameters[CRONTAB_MINUTES_IDX] = new MyString( CRONTAB_WILDCARD ); } else { this->parameters[CRONTAB_MINUTES_IDX] = new MyString( minutes ); } if ( hou...
DoS Exec Code
0
CronTab::CronTab( int minutes, int hours, int days_of_month, int months, int days_of_week ) { if ( minutes == CRONTAB_CRONOS_STAR ) { this->parameters[CRONTAB_MINUTES_IDX] = new MyString( CRONTAB_WILDCARD ); } else { this->parameters[CRONTAB_MINUTES_IDX] = new MyString( minutes ); } if ( hou...
@@ -373,7 +373,7 @@ CronTab::initRegexObject() { if ( ! CronTab::regex.compile( pattern, &errptr, &erroffset )) { MyString error = "CronTab: Failed to compile Regex - "; error += pattern; - EXCEPT( const_cast<char*>(error.Value())); +...
CWE-134
null
null
13,257
CronTab::CronTab( const char* minutes, const char* hours, const char* days_of_month, const char* months, const char* days_of_week ) { this->parameters[CRONTAB_MINUTES_IDX] = new MyString( minutes ); this->parameters[CRONTAB_HOURS_IDX] = new MyString( hours ); this->parameters[CRONTAB_DOM_IDX] =...
DoS Exec Code
0
CronTab::CronTab( const char* minutes, const char* hours, const char* days_of_month, const char* months, const char* days_of_week ) { this->parameters[CRONTAB_MINUTES_IDX] = new MyString( minutes ); this->parameters[CRONTAB_HOURS_IDX] = new MyString( hours ); this->parameters[CRONTAB_DOM_IDX] =...
@@ -373,7 +373,7 @@ CronTab::initRegexObject() { if ( ! CronTab::regex.compile( pattern, &errptr, &erroffset )) { MyString error = "CronTab: Failed to compile Regex - "; error += pattern; - EXCEPT( const_cast<char*>(error.Value())); +...
CWE-134
null
null
13,258
CronTab::contains( ExtArray<int> &list, const int &elt ) { bool ret = false; int ctr; for ( ctr = 0; ctr <= list.getlast(); ctr++ ) { if ( elt == list[ctr] ) { ret = true; break; } } // FOR return ( ret ); }
DoS Exec Code
0
CronTab::contains( ExtArray<int> &list, const int &elt ) { bool ret = false; int ctr; for ( ctr = 0; ctr <= list.getlast(); ctr++ ) { if ( elt == list[ctr] ) { ret = true; break; } } // FOR return ( ret ); }
@@ -373,7 +373,7 @@ CronTab::initRegexObject() { if ( ! CronTab::regex.compile( pattern, &errptr, &erroffset )) { MyString error = "CronTab: Failed to compile Regex - "; error += pattern; - EXCEPT( const_cast<char*>(error.Value())); +...
CWE-134
null
null
13,259
CronTab::getError() { return ( this->errorLog ); }
DoS Exec Code
0
CronTab::getError() { return ( this->errorLog ); }
@@ -373,7 +373,7 @@ CronTab::initRegexObject() { if ( ! CronTab::regex.compile( pattern, &errptr, &erroffset )) { MyString error = "CronTab: Failed to compile Regex - "; error += pattern; - EXCEPT( const_cast<char*>(error.Value())); +...
CWE-134
null
null
13,260
CronTab::init() { initRegexObject(); this->lastRunTime = CRONTAB_INVALID; this->valid = false; int mins[] = { CRONTAB_MINUTE_MIN, CRONTAB_HOUR_MIN, CRONTAB_DAY_OF_MONTH_MIN, CRONTAB_MONTH_MIN, CRONTAB_DAY_OF_WEEK_MIN }; int maxs[] = { CRONTAB_MINUTE_MAX, CRONTAB_HOU...
DoS Exec Code
0
CronTab::init() { initRegexObject(); this->lastRunTime = CRONTAB_INVALID; this->valid = false; int mins[] = { CRONTAB_MINUTE_MIN, CRONTAB_HOUR_MIN, CRONTAB_DAY_OF_MONTH_MIN, CRONTAB_MONTH_MIN, CRONTAB_DAY_OF_WEEK_MIN }; int maxs[] = { CRONTAB_MINUTE_MAX, CRONTAB_HOU...
@@ -373,7 +373,7 @@ CronTab::initRegexObject() { if ( ! CronTab::regex.compile( pattern, &errptr, &erroffset )) { MyString error = "CronTab: Failed to compile Regex - "; error += pattern; - EXCEPT( const_cast<char*>(error.Value())); +...
CWE-134
null
null
13,261
CronTab::matchFields( int *curTime, int *match, int attribute_idx, bool useFirst ) { bool nextUseFirst = useFirst; match[attribute_idx] = -1; ExtArray<int> *curRange = NULL; if ( attribute_idx == CRONTAB_DOM_IDX ) { if (this->ranges[attribute_idx]->length()==CRONTAB_DAY_OF_MONTH_MAX){ if ((this->ranges[...
DoS Exec Code
0
CronTab::matchFields( int *curTime, int *match, int attribute_idx, bool useFirst ) { bool nextUseFirst = useFirst; match[attribute_idx] = -1; ExtArray<int> *curRange = NULL; if ( attribute_idx == CRONTAB_DOM_IDX ) { if (this->ranges[attribute_idx]->length()==CRONTAB_DAY_OF_MONTH_MAX){ if ((this->ranges[...
@@ -373,7 +373,7 @@ CronTab::initRegexObject() { if ( ! CronTab::regex.compile( pattern, &errptr, &erroffset )) { MyString error = "CronTab: Failed to compile Regex - "; error += pattern; - EXCEPT( const_cast<char*>(error.Value())); +...
CWE-134
null
null
13,262
CronTab::needsCronTab( ClassAd *ad ) { bool ret = false; int ctr; for ( ctr = 0; ctr < CRONTAB_FIELDS; ctr++ ) { if ( ad->LookupExpr( CronTab::attributes[ctr] ) ) { ret = true; break; } } // FOR return ( ret ); }
DoS Exec Code
0
CronTab::needsCronTab( ClassAd *ad ) { bool ret = false; int ctr; for ( ctr = 0; ctr < CRONTAB_FIELDS; ctr++ ) { if ( ad->LookupExpr( CronTab::attributes[ctr] ) ) { ret = true; break; } } // FOR return ( ret ); }
@@ -373,7 +373,7 @@ CronTab::initRegexObject() { if ( ! CronTab::regex.compile( pattern, &errptr, &erroffset )) { MyString error = "CronTab: Failed to compile Regex - "; error += pattern; - EXCEPT( const_cast<char*>(error.Value())); +...
CWE-134
null
null
13,263
CronTab::nextRunTime( ) { return ( this->nextRunTime( (long)time( NULL ) ) ); }
DoS Exec Code
0
CronTab::nextRunTime( ) { return ( this->nextRunTime( (long)time( NULL ) ) ); }
@@ -373,7 +373,7 @@ CronTab::initRegexObject() { if ( ! CronTab::regex.compile( pattern, &errptr, &erroffset )) { MyString error = "CronTab: Failed to compile Regex - "; error += pattern; - EXCEPT( const_cast<char*>(error.Value())); +...
CWE-134
null
null
13,264
CronTab::nextRunTime( long timestamp ) { long runtime = CRONTAB_INVALID; struct tm *tm; if ( ! this->valid ) { this->lastRunTime = CRONTAB_INVALID; return ( this->lastRunTime ); } timestamp += ( 60 - ( timestamp % 60 ) ); const time_t _timestamp = (time_t)timestamp; tm = localtime( &_timestamp ); int...
DoS Exec Code
0
CronTab::nextRunTime( long timestamp ) { long runtime = CRONTAB_INVALID; struct tm *tm; if ( ! this->valid ) { this->lastRunTime = CRONTAB_INVALID; return ( this->lastRunTime ); } timestamp += ( 60 - ( timestamp % 60 ) ); const time_t _timestamp = (time_t)timestamp; tm = localtime( &_timestamp ); int...
@@ -373,7 +373,7 @@ CronTab::initRegexObject() { if ( ! CronTab::regex.compile( pattern, &errptr, &erroffset )) { MyString error = "CronTab: Failed to compile Regex - "; error += pattern; - EXCEPT( const_cast<char*>(error.Value())); +...
CWE-134
null
null
13,265
CronTab::validate( ClassAd *ad, MyString &error ) { bool ret = true; int ctr; for ( ctr = 0; ctr < CRONTAB_FIELDS; ctr++ ) { MyString buffer; if ( ad->LookupString( CronTab::attributes[ctr], buffer ) ) { MyString curError; if ( !CronTab::validateParameter( ctr, buffer.Value(), curError ) ) { ret = fals...
DoS Exec Code
0
CronTab::validate( ClassAd *ad, MyString &error ) { bool ret = true; int ctr; for ( ctr = 0; ctr < CRONTAB_FIELDS; ctr++ ) { MyString buffer; if ( ad->LookupString( CronTab::attributes[ctr], buffer ) ) { MyString curError; if ( !CronTab::validateParameter( ctr, buffer.Value(), curError ) ) { ret = fals...
@@ -373,7 +373,7 @@ CronTab::initRegexObject() { if ( ! CronTab::regex.compile( pattern, &errptr, &erroffset )) { MyString error = "CronTab: Failed to compile Regex - "; error += pattern; - EXCEPT( const_cast<char*>(error.Value())); +...
CWE-134
null
null
13,266
CronTab::validateParameter( int attribute_idx, const char *parameter, MyString &error ) { bool ret = true; MyString temp(parameter); if ( CronTab::regex.match( temp ) ) { error = "Invalid parameter value '"; error += parameter; error += "' for "; error += CronTab::attributes[attribute_idx]; ret = f...
DoS Exec Code
0
CronTab::validateParameter( int attribute_idx, const char *parameter, MyString &error ) { bool ret = true; MyString temp(parameter); if ( CronTab::regex.match( temp ) ) { error = "Invalid parameter value '"; error += parameter; error += "' for "; error += CronTab::attributes[attribute_idx]; ret = f...
@@ -373,7 +373,7 @@ CronTab::initRegexObject() { if ( ! CronTab::regex.compile( pattern, &errptr, &erroffset )) { MyString error = "CronTab: Failed to compile Regex - "; error += pattern; - EXCEPT( const_cast<char*>(error.Value())); +...
CWE-134
null
null
13,267
CronTab::~CronTab() { int ctr; for ( ctr = 0; ctr < CRONTAB_FIELDS; ctr++ ) { if ( this->ranges[ctr] ) delete this->ranges[ctr]; if ( this->parameters[ctr] ) delete this->parameters[ctr]; } // FOR }
DoS Exec Code
0
CronTab::~CronTab() { int ctr; for ( ctr = 0; ctr < CRONTAB_FIELDS; ctr++ ) { if ( this->ranges[ctr] ) delete this->ranges[ctr]; if ( this->parameters[ctr] ) delete this->parameters[ctr]; } // FOR }
@@ -373,7 +373,7 @@ CronTab::initRegexObject() { if ( ! CronTab::regex.compile( pattern, &errptr, &erroffset )) { MyString error = "CronTab: Failed to compile Regex - "; error += pattern; - EXCEPT( const_cast<char*>(error.Value())); +...
CWE-134
null
null
13,268
email_admin_open(const char *subject) { return email_open(NULL,subject); }
DoS Exec Code
0
email_admin_open(const char *subject) { return email_open(NULL,subject); }
@@ -433,7 +433,7 @@ email_close(FILE *mailer) customSig = NULL; if ((customSig = param("EMAIL_SIGNATURE")) != NULL) { fprintf( mailer, "\n\n"); - fprintf( mailer, customSig); + fprintf( mailer, "%s", customSig); fprintf( mailer, "\n"); ...
CWE-134
null
null
13,269
email_developers_open(const char *subject) { char *tmp; FILE *mailer; /* ** According to the docs, if CONDOR_DEVELOPERS is not ** in the config file, it defaults to UW. If it is "NONE", ** nothing should be emailed. */ tmp = param ("CONDOR_DEVELOPERS"); if (tmp == NULL) { /* we strdup here since we...
DoS Exec Code
0
email_developers_open(const char *subject) { char *tmp; FILE *mailer; /* ** According to the docs, if CONDOR_DEVELOPERS is not ** in the config file, it defaults to UW. If it is "NONE", ** nothing should be emailed. */ tmp = param ("CONDOR_DEVELOPERS"); if (tmp == NULL) { /* we strdup here since we...
@@ -433,7 +433,7 @@ email_close(FILE *mailer) customSig = NULL; if ((customSig = param("EMAIL_SIGNATURE")) != NULL) { fprintf( mailer, "\n\n"); - fprintf( mailer, customSig); + fprintf( mailer, "%s", customSig); fprintf( mailer, "\n"); ...
CWE-134
null
null
13,270
email_open( const char *email_addr, const char *subject ) { char *Mailer; char *SmtpServer = NULL; char *FromAddress = NULL; char *FinalSubject; char *FinalAddr; char *temp; int token_boundary; int num_addresses; int arg_index; FILE *mailerstream; if ( (Mailer = param("MAIL")) == NULL ) { dprintf(D_FULLDE...
DoS Exec Code
0
email_open( const char *email_addr, const char *subject ) { char *Mailer; char *SmtpServer = NULL; char *FromAddress = NULL; char *FinalSubject; char *FinalAddr; char *temp; int token_boundary; int num_addresses; int arg_index; FILE *mailerstream; if ( (Mailer = param("MAIL")) == NULL ) { dprintf(D_FULLDE...
@@ -433,7 +433,7 @@ email_close(FILE *mailer) customSig = NULL; if ((customSig = param("EMAIL_SIGNATURE")) != NULL) { fprintf( mailer, "\n\n"); - fprintf( mailer, customSig); + fprintf( mailer, "%s", customSig); fprintf( mailer, "\n"); ...
CWE-134
null
null
13,271
email_open_implementation( const char * final_args[]) { FILE *mailerstream; pid_t pid; int pipefds[2]; param_functions *p_funcs = NULL; /* The gist of this code is to exec a mailer whose stdin is dup2'ed onto the write end of a pipe. The parent gets the fdopen'ed read end so it looks like a FILE*. The child ...
DoS Exec Code
0
email_open_implementation( const char * final_args[]) { FILE *mailerstream; pid_t pid; int pipefds[2]; param_functions *p_funcs = NULL; /* The gist of this code is to exec a mailer whose stdin is dup2'ed onto the write end of a pipe. The parent gets the fdopen'ed read end so it looks like a FILE*. The child ...
@@ -433,7 +433,7 @@ email_close(FILE *mailer) customSig = NULL; if ((customSig = param("EMAIL_SIGNATURE")) != NULL) { fprintf( mailer, "\n\n"); - fprintf( mailer, customSig); + fprintf( mailer, "%s", customSig); fprintf( mailer, "\n"); ...
CWE-134
null
null
13,272
EventHandler::allow_events( sigset_t &sigset ) { if( !is_installed ) { EXCEPT( "ERROR EventHandler::allow_events(), not installed"); } sigprocmask( SIG_UNBLOCK, &sigset, 0 ); }
DoS Exec Code
0
EventHandler::allow_events( sigset_t &sigset ) { if( !is_installed ) { EXCEPT( "ERROR EventHandler::allow_events(), not installed"); } sigprocmask( SIG_UNBLOCK, &sigset, 0 ); }
@@ -80,7 +80,7 @@ display_sigset( const char *msg, sigset_t *mask ) NameTableIterator next_sig( SigNames ); if( msg ) { - dprintf( D_ALWAYS, msg ); + dprintf( D_ALWAYS, "%s", msg ); } while( (signo = next_sig()) != -1 ) { if( sigismembe...
CWE-134
null
null
13,273
EventHandler::block_events( sigset_t &sigset ) { if( !is_installed ) { EXCEPT( "ERROR EventHandler::block_events(), not installed"); } sigprocmask( SIG_BLOCK, &sigset, 0 ); }
DoS Exec Code
0
EventHandler::block_events( sigset_t &sigset ) { if( !is_installed ) { EXCEPT( "ERROR EventHandler::block_events(), not installed"); } sigprocmask( SIG_BLOCK, &sigset, 0 ); }
@@ -80,7 +80,7 @@ display_sigset( const char *msg, sigset_t *mask ) NameTableIterator next_sig( SigNames ); if( msg ) { - dprintf( D_ALWAYS, msg ); + dprintf( D_ALWAYS, "%s", msg ); } while( (signo = next_sig()) != -1 ) { if( sigismembe...
CWE-134
null
null
13,274
EventHandler::display() { dprintf( D_ALWAYS, "EventHandler {\n" ); dprintf( D_ALWAYS, "\tfunc = %p\n", func ); display_sigset( "\tmask = ", &mask ); dprintf( D_ALWAYS, "}\n" ); }
DoS Exec Code
0
EventHandler::display() { dprintf( D_ALWAYS, "EventHandler {\n" ); dprintf( D_ALWAYS, "\tfunc = %p\n", func ); display_sigset( "\tmask = ", &mask ); dprintf( D_ALWAYS, "}\n" ); }
@@ -80,7 +80,7 @@ display_sigset( const char *msg, sigset_t *mask ) NameTableIterator next_sig( SigNames ); if( msg ) { - dprintf( D_ALWAYS, msg ); + dprintf( D_ALWAYS, "%s", msg ); } while( (signo = next_sig()) != -1 ) { if( sigismembe...
CWE-134
null
null
13,275
EventHandler::install() { NameTableIterator next_sig( SigNames ); struct sigaction action; int i; int signo; dprintf( D_FULLDEBUG, "EventHandler::install() {\n" ); if( is_installed ) { EXCEPT( "ERROR EventHandler::install(), already installed" ); } for( i=0; i<N_POSIX_SIGS; i++ ) { signo = next_sig();...
DoS Exec Code
0
EventHandler::install() { NameTableIterator next_sig( SigNames ); struct sigaction action; int i; int signo; dprintf( D_FULLDEBUG, "EventHandler::install() {\n" ); if( is_installed ) { EXCEPT( "ERROR EventHandler::install(), already installed" ); } for( i=0; i<N_POSIX_SIGS; i++ ) { signo = next_sig();...
@@ -80,7 +80,7 @@ display_sigset( const char *msg, sigset_t *mask ) NameTableIterator next_sig( SigNames ); if( msg ) { - dprintf( D_ALWAYS, msg ); + dprintf( D_ALWAYS, "%s", msg ); } while( (signo = next_sig()) != -1 ) { if( sigismembe...
CWE-134
null
null
13,276
FileTransfer::AddDownloadFilenameRemap(char const *source_name,char const *target_name) { if(!download_filename_remaps.IsEmpty()) { download_filename_remaps += ";"; } download_filename_remaps += source_name; download_filename_remaps += "="; download_filename_remaps += target_name; }
DoS Exec Code
0
FileTransfer::AddDownloadFilenameRemap(char const *source_name,char const *target_name) { if(!download_filename_remaps.IsEmpty()) { download_filename_remaps += ";"; } download_filename_remaps += source_name; download_filename_remaps += "="; download_filename_remaps += target_name; }
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,277
FileTransfer::AddDownloadFilenameRemaps(char const *remaps) { if(!download_filename_remaps.IsEmpty()) { download_filename_remaps += ";"; } download_filename_remaps += remaps; }
DoS Exec Code
0
FileTransfer::AddDownloadFilenameRemaps(char const *remaps) { if(!download_filename_remaps.IsEmpty()) { download_filename_remaps += ";"; } download_filename_remaps += remaps; }
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,278
FileTransfer::CommitFiles() { MyString buf; MyString newbuf; MyString swapbuf; const char *file; if ( IsClient() ) { return; } int cluster = -1; int proc = -1; jobAd.LookupInteger(ATTR_CLUSTER_ID, cluster); jobAd.LookupInteger(ATTR_PROC_ID, proc); priv_state saved_priv = PRIV_UNKNOWN; if( want_priv_cha...
DoS Exec Code
0
FileTransfer::CommitFiles() { MyString buf; MyString newbuf; MyString swapbuf; const char *file; if ( IsClient() ) { return; } int cluster = -1; int proc = -1; jobAd.LookupInteger(ATTR_CLUSTER_ID, cluster); jobAd.LookupInteger(ATTR_PROC_ID, proc); priv_state saved_priv = PRIV_UNKNOWN; if( want_priv_cha...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,279
FileTransfer::Continue() { int result = TRUE; // return TRUE if there currently is no thread if (ActiveTransferTid != -1 ) { ASSERT( daemonCore ); result = daemonCore->Continue_Thread(ActiveTransferTid); } return result; }
DoS Exec Code
0
FileTransfer::Continue() { int result = TRUE; // return TRUE if there currently is no thread if (ActiveTransferTid != -1 ) { ASSERT( daemonCore ); result = daemonCore->Continue_Thread(ActiveTransferTid); } return result; }
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,280
FileTransfer::DoDownload( filesize_t *total_bytes, ReliSock *s) { int rc; int reply = 0; filesize_t bytes=0; MyString filename;; MyString fullname; char *tmp_buf = NULL; int final_transfer = 0; bool download_success = true; bool try_again = true; int hold_code = 0; int hold_subcode = 0; MyString error_buf; ...
DoS Exec Code
0
FileTransfer::DoDownload( filesize_t *total_bytes, ReliSock *s) { int rc; int reply = 0; filesize_t bytes=0; MyString filename;; MyString fullname; char *tmp_buf = NULL; int final_transfer = 0; bool download_success = true; bool try_again = true; int hold_code = 0; int hold_subcode = 0; MyString error_buf; ...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,281
FileTransfer::DoObtainAndSendTransferGoAhead(DCTransferQueue &xfer_queue,bool downloading,Stream *s,char const *full_fname,bool &go_ahead_always,bool &try_again,int &hold_code,int &hold_subcode,MyString &error_desc) { ClassAd msg; int go_ahead = GO_AHEAD_UNDEFINED; int alive_interval = 0; time_t last_alive = time(N...
DoS Exec Code
0
FileTransfer::DoObtainAndSendTransferGoAhead(DCTransferQueue &xfer_queue,bool downloading,Stream *s,char const *full_fname,bool &go_ahead_always,bool &try_again,int &hold_code,int &hold_subcode,MyString &error_desc) { ClassAd msg; int go_ahead = GO_AHEAD_UNDEFINED; int alive_interval = 0; time_t last_alive = time(N...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,282
FileTransfer::Download(ReliSock *s, bool blocking) { dprintf(D_FULLDEBUG,"entering FileTransfer::Download\n"); if (ActiveTransferTid >= 0) { EXCEPT("FileTransfer::Download called during active transfer!\n"); } Info.duration = 0; Info.type = DownloadFilesType; Info.success = true; Info.in_progress = true; T...
DoS Exec Code
0
FileTransfer::Download(ReliSock *s, bool blocking) { dprintf(D_FULLDEBUG,"entering FileTransfer::Download\n"); if (ActiveTransferTid >= 0) { EXCEPT("FileTransfer::Download called during active transfer!\n"); } Info.duration = 0; Info.type = DownloadFilesType; Info.success = true; Info.in_progress = true; T...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,283
FileTransfer::DownloadFiles(bool blocking) { int ret_value; ReliSock sock; ReliSock *sock_to_use; dprintf(D_FULLDEBUG,"entering FileTransfer::DownloadFiles\n"); if (ActiveTransferTid >= 0) { EXCEPT("FileTransfer::DownloadFiles called during active transfer!\n"); } if ( Iwd == NULL ) { EXCEPT("FileTransfer...
DoS Exec Code
0
FileTransfer::DownloadFiles(bool blocking) { int ret_value; ReliSock sock; ReliSock *sock_to_use; dprintf(D_FULLDEBUG,"entering FileTransfer::DownloadFiles\n"); if (ActiveTransferTid >= 0) { EXCEPT("FileTransfer::DownloadFiles called during active transfer!\n"); } if ( Iwd == NULL ) { EXCEPT("FileTransfer...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,284
FileTransfer::ExitDoUpload(filesize_t *total_bytes, ReliSock *s, priv_state saved_priv, bool socket_default_crypto, bool upload_success, bool do_upload_ack, bool do_download_ack, bool try_again, int hold_code, int hold_subcode, char const *upload_error_desc,int DoUpload_exit_line) { int rc = upload_success ? 0 : -1; ...
DoS Exec Code
0
FileTransfer::ExitDoUpload(filesize_t *total_bytes, ReliSock *s, priv_state saved_priv, bool socket_default_crypto, bool upload_success, bool do_upload_ack, bool do_download_ack, bool try_again, int hold_code, int hold_subcode, char const *upload_error_desc,int DoUpload_exit_line) { int rc = upload_success ? 0 : -1; ...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,285
FileTransfer::ExpandFileTransferList( StringList *input_list, FileTransferList &expanded_list ) { bool rc = true; if( !input_list ) { return true; } if (X509UserProxy && input_list->contains(X509UserProxy)) { if( !ExpandFileTransferList( X509UserProxy, "", Iwd, -1, expanded_list ) ) { rc = false; } } ...
DoS Exec Code
0
FileTransfer::ExpandFileTransferList( StringList *input_list, FileTransferList &expanded_list ) { bool rc = true; if( !input_list ) { return true; } if (X509UserProxy && input_list->contains(X509UserProxy)) { if( !ExpandFileTransferList( X509UserProxy, "", Iwd, -1, expanded_list ) ) { rc = false; } } ...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,286
FileTransfer::ExpandFileTransferList( char const *src_path, char const *dest_dir, char const *iwd, int max_depth, FileTransferList &expanded_list ) { ASSERT( src_path ); ASSERT( dest_dir ); ASSERT( iwd ); expanded_list.push_back( FileTransferItem() ); FileTransferItem &file_xfer_item = expanded_list.back(); fil...
DoS Exec Code
0
FileTransfer::ExpandFileTransferList( char const *src_path, char const *dest_dir, char const *iwd, int max_depth, FileTransferList &expanded_list ) { ASSERT( src_path ); ASSERT( dest_dir ); ASSERT( iwd ); expanded_list.push_back( FileTransferItem() ); FileTransferItem &file_xfer_item = expanded_list.back(); fil...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,287
FileTransfer::FileTransfer() { TransferFilePermissions = false; DelegateX509Credentials = false; PeerDoesTransferAck = false; PeerDoesGoAhead = false; PeerUnderstandsMkdir = false; TransferUserLog = false; Iwd = NULL; ExceptionFiles = NULL; InputFiles = NULL; OutputFiles = NULL; EncryptInputFiles = NULL; En...
DoS Exec Code
0
FileTransfer::FileTransfer() { TransferFilePermissions = false; DelegateX509Credentials = false; PeerDoesTransferAck = false; PeerDoesGoAhead = false; PeerUnderstandsMkdir = false; TransferUserLog = false; Iwd = NULL; ExceptionFiles = NULL; InputFiles = NULL; OutputFiles = NULL; EncryptInputFiles = NULL; En...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,288
FileTransferItem(): is_directory(false), is_symlink(false), file_mode(NULL_FILE_PERMISSIONS) {}
DoS Exec Code
0
FileTransferItem(): is_directory(false), is_symlink(false), file_mode(NULL_FILE_PERMISSIONS) {}
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,289
GetDelegatedProxyRenewalTime(time_t expiration_time) { if( expiration_time == 0 ) { return 0; } if ( !param_boolean( "DELEGATE_JOB_GSI_CREDENTIALS", true ) ) { return 0; } time_t now = time(NULL); time_t lifetime = expiration_time - now; double lifetime_frac = param_double( "DELEGATE_JOB_GSI_CREDENTIALS_REN...
DoS Exec Code
0
GetDelegatedProxyRenewalTime(time_t expiration_time) { if( expiration_time == 0 ) { return 0; } if ( !param_boolean( "DELEGATE_JOB_GSI_CREDENTIALS", true ) ) { return 0; } time_t now = time(NULL); time_t lifetime = expiration_time - now; double lifetime_frac = param_double( "DELEGATE_JOB_GSI_CREDENTIALS_REN...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,290
GetDelegatedProxyRenewalTime(ClassAd *jobAd) { GetDelegatedProxyRenewalTime(GetDesiredDelegatedJobCredentialExpiration(jobAd)); }
DoS Exec Code
0
GetDelegatedProxyRenewalTime(ClassAd *jobAd) { GetDelegatedProxyRenewalTime(GetDesiredDelegatedJobCredentialExpiration(jobAd)); }
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,291
FileTransfer::GetTransferAck(Stream *s,bool &success,bool &try_again,int &hold_code,int &hold_subcode,MyString &error_desc) { if(!PeerDoesTransferAck) { success = true; return; } s->decode(); ClassAd ad; if(!ad.initFromStream(*s) || !s->end_of_message()) { char const *ip = NULL; if(s->type() == Sock::rel...
DoS Exec Code
0
FileTransfer::GetTransferAck(Stream *s,bool &success,bool &try_again,int &hold_code,int &hold_subcode,MyString &error_desc) { if(!PeerDoesTransferAck) { success = true; return; } s->decode(); ClassAd ad; if(!ad.initFromStream(*s) || !s->end_of_message()) { char const *ip = NULL; if(s->type() == Sock::rel...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,292
FileTransfer::HandleCommands(Service *, int command, Stream *s) { FileTransfer *transobject; char *transkey = NULL; dprintf(D_FULLDEBUG,"entering FileTransfer::HandleCommands\n"); if ( s->type() != Stream::reli_sock ) { return 0; } ReliSock *sock = (ReliSock *) s; sock->timeout(0); if (!sock->get_secret(t...
DoS Exec Code
0
FileTransfer::HandleCommands(Service *, int command, Stream *s) { FileTransfer *transobject; char *transkey = NULL; dprintf(D_FULLDEBUG,"entering FileTransfer::HandleCommands\n"); if ( s->type() != Stream::reli_sock ) { return 0; } ReliSock *sock = (ReliSock *) s; sock->timeout(0); if (!sock->get_secret(t...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,293
FileTransfer::InitDownloadFilenameRemaps(ClassAd *Ad) { char *remap_fname = NULL; dprintf(D_FULLDEBUG,"Entering FileTransfer::InitDownloadFilenameRemaps\n"); download_filename_remaps = ""; if(!Ad) return 1; if (Ad->LookupString(ATTR_TRANSFER_OUTPUT_REMAPS,&remap_fname)) { AddDownloadFilenameRemaps(remap_fname...
DoS Exec Code
0
FileTransfer::InitDownloadFilenameRemaps(ClassAd *Ad) { char *remap_fname = NULL; dprintf(D_FULLDEBUG,"Entering FileTransfer::InitDownloadFilenameRemaps\n"); download_filename_remaps = ""; if(!Ad) return 1; if (Ad->LookupString(ATTR_TRANSFER_OUTPUT_REMAPS,&remap_fname)) { AddDownloadFilenameRemaps(remap_fname...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,294
int FileTransfer::InitializePlugins(CondorError &e) { if (!param_boolean("ENABLE_URL_TRANSFERS", true)) { I_support_filetransfer_plugins = false; return 0; } char* plugin_list_string = param("FILETRANSFER_PLUGINS"); if (!plugin_list_string) { I_support_filetransfer_plugins = false; return 0; } plugin_t...
DoS Exec Code
0
int FileTransfer::InitializePlugins(CondorError &e) { if (!param_boolean("ENABLE_URL_TRANSFERS", true)) { I_support_filetransfer_plugins = false; return 0; } char* plugin_list_string = param("FILETRANSFER_PLUGINS"); if (!plugin_list_string) { I_support_filetransfer_plugins = false; return 0; } plugin_t...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,295
FileTransfer::InsertPluginMappings(MyString methods, MyString p) { StringList method_list(methods.Value()); char* m; method_list.rewind(); while((m = method_list.next())) { dprintf(D_FULLDEBUG, "FILETRANSFER: protocol \"%s\" handled by \"%s\"\n", m, p.Value()); plugin_table->insert(m, p); } }
DoS Exec Code
0
FileTransfer::InsertPluginMappings(MyString methods, MyString p) { StringList method_list(methods.Value()); char* m; method_list.rewind(); while((m = method_list.next())) { dprintf(D_FULLDEBUG, "FILETRANSFER: protocol \"%s\" handled by \"%s\"\n", m, p.Value()); plugin_table->insert(m, p); } }
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,296
int FileTransfer::InvokeFileTransferPlugin(CondorError &e, const char* source, const char* dest, const char* proxy_filename) { if (plugin_table == NULL) { dprintf(D_FULLDEBUG, "FILETRANSFER: No plugin table defined! (request was %s)\n", source); e.pushf("FILETRANSFER", 1, "No plugin table defined (request was %s)...
DoS Exec Code
0
int FileTransfer::InvokeFileTransferPlugin(CondorError &e, const char* source, const char* dest, const char* proxy_filename) { if (plugin_table == NULL) { dprintf(D_FULLDEBUG, "FILETRANSFER: No plugin table defined! (request was %s)\n", source); e.pushf("FILETRANSFER", 1, "No plugin table defined (request was %s)...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,297
FileTransfer::ObtainAndSendTransferGoAhead(DCTransferQueue &xfer_queue,bool downloading,Stream *s,char const *full_fname,bool &go_ahead_always) { bool result; bool try_again = true; int hold_code = 0; int hold_subcode = 0; MyString error_desc; result = DoObtainAndSendTransferGoAhead(xfer_queue,downloading,s,full...
DoS Exec Code
0
FileTransfer::ObtainAndSendTransferGoAhead(DCTransferQueue &xfer_queue,bool downloading,Stream *s,char const *full_fname,bool &go_ahead_always) { bool result; bool try_again = true; int hold_code = 0; int hold_subcode = 0; MyString error_desc; result = DoObtainAndSendTransferGoAhead(xfer_queue,downloading,s,full...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,298
FileTransfer::Reaper(Service *, int pid, int exit_status) { FileTransfer *transobject; bool read_failed = false; if ( TransThreadTable->lookup(pid,transobject) < 0) { dprintf(D_ALWAYS, "unknown pid %d in FileTransfer::Reaper!\n", pid); return FALSE; } transobject->ActiveTransferTid = -1; TransThreadTable->rem...
DoS Exec Code
0
FileTransfer::Reaper(Service *, int pid, int exit_status) { FileTransfer *transobject; bool read_failed = false; if ( TransThreadTable->lookup(pid,transobject) < 0) { dprintf(D_ALWAYS, "unknown pid %d in FileTransfer::Reaper!\n", pid); return FALSE; } transobject->ActiveTransferTid = -1; TransThreadTable->rem...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null
13,299
FileTransfer::ReceiveTransferGoAhead( Stream *s, char const *fname, bool downloading, bool &go_ahead_always) { bool try_again = true; int hold_code = 0; int hold_subcode = 0; MyString error_desc; bool result; int alive_interval; int old_timeout; const int slop_time = 20; // extra time to wait when alive_int...
DoS Exec Code
0
FileTransfer::ReceiveTransferGoAhead( Stream *s, char const *fname, bool downloading, bool &go_ahead_always) { bool try_again = true; int hold_code = 0; int hold_subcode = 0; MyString error_desc; bool result; int alive_interval; int old_timeout; const int slop_time = 20; // extra time to wait when alive_int...
@@ -2716,7 +2716,7 @@ FileTransfer::DoUpload(filesize_t *total_bytes, ReliSock *s) } // condor_basename works for URLs - dest_filename.sprintf_cat( condor_basename(filename) ); + dest_filename.sprintf_cat( "%s", condor_basenam...
CWE-134
null
null