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,100
BaseShadow::jobWantsGracefulRemoval() { bool job_wants_graceful_removal = false; ClassAd *thejobAd = getJobAd(); if( thejobAd ) { thejobAd->LookupBool( ATTR_WANT_GRACEFUL_REMOVAL, job_wants_graceful_removal ); } return job_wants_graceful_removal; }
DoS Exec Code
0
BaseShadow::jobWantsGracefulRemoval() { bool job_wants_graceful_removal = false; ClassAd *thejobAd = getJobAd(); if( thejobAd ) { thejobAd->LookupBool( ATTR_WANT_GRACEFUL_REMOVAL, job_wants_graceful_removal ); } return job_wants_graceful_removal; }
@@ -1141,7 +1141,7 @@ BaseShadow::log_except(const char *msg) bool exception_already_logged = false; if(!msg) msg = ""; - sprintf(event.message, msg); + sprintf(event.message, "%s", msg); if ( BaseShadow::myshadow_ptr ) { BaseShadow *shadow = BaseShadow::myshadow_...
CWE-134
null
null
13,101
BaseShadow::logEvictEvent( int exitReason ) { struct rusage run_remote_rusage; memset( &run_remote_rusage, 0, sizeof(struct rusage) ); run_remote_rusage = getRUsage(); switch( exitReason ) { case JOB_CKPTED: case JOB_NOT_CKPTED: case JOB_KILLED: break; default: dprintf( D_ALWAYS, "logEvictEvent with...
DoS Exec Code
0
BaseShadow::logEvictEvent( int exitReason ) { struct rusage run_remote_rusage; memset( &run_remote_rusage, 0, sizeof(struct rusage) ); run_remote_rusage = getRUsage(); switch( exitReason ) { case JOB_CKPTED: case JOB_NOT_CKPTED: case JOB_KILLED: break; default: dprintf( D_ALWAYS, "logEvictEvent with...
@@ -1141,7 +1141,7 @@ BaseShadow::log_except(const char *msg) bool exception_already_logged = false; if(!msg) msg = ""; - sprintf(event.message, msg); + sprintf(event.message, "%s", msg); if ( BaseShadow::myshadow_ptr ) { BaseShadow *shadow = BaseShadow::myshadow_...
CWE-134
null
null
13,102
BaseShadow::logTerminateEvent( int exitReason, update_style_t kind ) { struct rusage run_remote_rusage; JobTerminatedEvent event; MyString corefile; memset( &run_remote_rusage, 0, sizeof(struct rusage) ); switch( exitReason ) { case JOB_EXITED: case JOB_COREDUMPED: break; default: dprintf( D_ALWAYS, ...
DoS Exec Code
0
BaseShadow::logTerminateEvent( int exitReason, update_style_t kind ) { struct rusage run_remote_rusage; JobTerminatedEvent event; MyString corefile; memset( &run_remote_rusage, 0, sizeof(struct rusage) ); switch( exitReason ) { case JOB_EXITED: case JOB_COREDUMPED: break; default: dprintf( D_ALWAYS, ...
@@ -1141,7 +1141,7 @@ BaseShadow::log_except(const char *msg) bool exception_already_logged = false; if(!msg) msg = ""; - sprintf(event.message, msg); + sprintf(event.message, "%s", msg); if ( BaseShadow::myshadow_ptr ) { BaseShadow *shadow = BaseShadow::myshadow_...
CWE-134
null
null
13,103
BaseShadow::publishShadowAttrs( ClassAd* ad ) { MyString tmp; tmp = ATTR_SHADOW_IP_ADDR; tmp += "=\""; tmp += daemonCore->InfoCommandSinfulString(); tmp += '"'; ad->Insert( tmp.Value() ); tmp = ATTR_SHADOW_VERSION; tmp += "=\""; tmp += CondorVersion(); tmp += '"'; ad->Insert( tmp.Value() ); char* my...
DoS Exec Code
0
BaseShadow::publishShadowAttrs( ClassAd* ad ) { MyString tmp; tmp = ATTR_SHADOW_IP_ADDR; tmp += "=\""; tmp += daemonCore->InfoCommandSinfulString(); tmp += '"'; ad->Insert( tmp.Value() ); tmp = ATTR_SHADOW_VERSION; tmp += "=\""; tmp += CondorVersion(); tmp += '"'; ad->Insert( tmp.Value() ); char* my...
@@ -1141,7 +1141,7 @@ BaseShadow::log_except(const char *msg) bool exception_already_logged = false; if(!msg) msg = ""; - sprintf(event.message, msg); + sprintf(event.message, "%s", msg); if ( BaseShadow::myshadow_ptr ) { BaseShadow *shadow = BaseShadow::myshadow_...
CWE-134
null
null
13,104
BaseShadow::reconnectFailed( const char* reason ) { dprintf( D_ALWAYS, "Reconnect FAILED: %s\n", reason ); logReconnectFailedEvent( reason ); DC_Exit( JOB_SHOULD_REQUEUE ); }
DoS Exec Code
0
BaseShadow::reconnectFailed( const char* reason ) { dprintf( D_ALWAYS, "Reconnect FAILED: %s\n", reason ); logReconnectFailedEvent( reason ); DC_Exit( JOB_SHOULD_REQUEUE ); }
@@ -1141,7 +1141,7 @@ BaseShadow::log_except(const char *msg) bool exception_already_logged = false; if(!msg) msg = ""; - sprintf(event.message, msg); + sprintf(event.message, "%s", msg); if ( BaseShadow::myshadow_ptr ) { BaseShadow *shadow = BaseShadow::myshadow_...
CWE-134
null
null
13,105
void BaseShadow::removeJob( const char* reason ) { this->removeJobPre(reason); DC_Exit( JOB_SHOULD_REMOVE ); }
DoS Exec Code
0
void BaseShadow::removeJob( const char* reason ) { this->removeJobPre(reason); DC_Exit( JOB_SHOULD_REMOVE ); }
@@ -1141,7 +1141,7 @@ BaseShadow::log_except(const char *msg) bool exception_already_logged = false; if(!msg) msg = ""; - sprintf(event.message, msg); + sprintf(event.message, "%s", msg); if ( BaseShadow::myshadow_ptr ) { BaseShadow *shadow = BaseShadow::myshadow_...
CWE-134
null
null
13,106
void BaseShadow::removeJobPre( const char* reason ) { if( ! jobAd ) { dprintf( D_ALWAYS, "In removeJob() w/ NULL JobAd!" ); } dprintf( D_ALWAYS, "Job %d.%d is being removed: %s\n", getCluster(), getProc(), reason ); cleanUp(); int size = strlen( reason ) + strlen( ATTR_REMOVE_REASON ) + 4; char* buf = (c...
DoS Exec Code
0
void BaseShadow::removeJobPre( const char* reason ) { if( ! jobAd ) { dprintf( D_ALWAYS, "In removeJob() w/ NULL JobAd!" ); } dprintf( D_ALWAYS, "Job %d.%d is being removed: %s\n", getCluster(), getProc(), reason ); cleanUp(); int size = strlen( reason ) + strlen( ATTR_REMOVE_REASON ) + 4; char* buf = (c...
@@ -1141,7 +1141,7 @@ BaseShadow::log_except(const char *msg) bool exception_already_logged = false; if(!msg) msg = ""; - sprintf(event.message, msg); + sprintf(event.message, "%s", msg); if ( BaseShadow::myshadow_ptr ) { BaseShadow *shadow = BaseShadow::myshadow_...
CWE-134
null
null
13,107
BaseShadow::requeueJob( const char* reason ) { if( ! jobAd ) { dprintf( D_ALWAYS, "In requeueJob() w/ NULL JobAd!" ); } dprintf( D_ALWAYS, "Job %d.%d is being put back in the job queue: %s\n", getCluster(), getProc(), reason ); cleanUp(); int size = strlen( reason ) + strlen( ATTR_REQUEUE_REASON ) + ...
DoS Exec Code
0
BaseShadow::requeueJob( const char* reason ) { if( ! jobAd ) { dprintf( D_ALWAYS, "In requeueJob() w/ NULL JobAd!" ); } dprintf( D_ALWAYS, "Job %d.%d is being put back in the job queue: %s\n", getCluster(), getProc(), reason ); cleanUp(); int size = strlen( reason ) + strlen( ATTR_REQUEUE_REASON ) + ...
@@ -1141,7 +1141,7 @@ BaseShadow::log_except(const char *msg) bool exception_already_logged = false; if(!msg) msg = ""; - sprintf(event.message, msg); + sprintf(event.message, "%s", msg); if ( BaseShadow::myshadow_ptr ) { BaseShadow *shadow = BaseShadow::myshadow_...
CWE-134
null
null
13,108
BaseShadow::retryJobCleanup( void ) { m_num_cleanup_retries++; if (m_num_cleanup_retries > m_max_cleanup_retries) { dprintf(D_ALWAYS, "Maximum number of job cleanup retry attempts " "(SHADOW_MAX_JOB_CLEANUP_RETRIES=%d) reached" "; Forcing job requeue!\n", m_max_cleanup_retrie...
DoS Exec Code
0
BaseShadow::retryJobCleanup( void ) { m_num_cleanup_retries++; if (m_num_cleanup_retries > m_max_cleanup_retries) { dprintf(D_ALWAYS, "Maximum number of job cleanup retry attempts " "(SHADOW_MAX_JOB_CLEANUP_RETRIES=%d) reached" "; Forcing job requeue!\n", m_max_cleanup_retrie...
@@ -1141,7 +1141,7 @@ BaseShadow::log_except(const char *msg) bool exception_already_logged = false; if(!msg) msg = ""; - sprintf(event.message, msg); + sprintf(event.message, "%s", msg); if ( BaseShadow::myshadow_ptr ) { BaseShadow *shadow = BaseShadow::myshadow_...
CWE-134
null
null
13,109
BaseShadow::retryJobCleanupHandler( void ) { m_cleanup_retry_tid = -1; dprintf(D_ALWAYS, "Retrying job cleanup, calling terminateJob()\n"); terminateJob(); return TRUE; }
DoS Exec Code
0
BaseShadow::retryJobCleanupHandler( void ) { m_cleanup_retry_tid = -1; dprintf(D_ALWAYS, "Retrying job cleanup, calling terminateJob()\n"); terminateJob(); return TRUE; }
@@ -1141,7 +1141,7 @@ BaseShadow::log_except(const char *msg) bool exception_already_logged = false; if(!msg) msg = ""; - sprintf(event.message, msg); + sprintf(event.message, "%s", msg); if ( BaseShadow::myshadow_ptr ) { BaseShadow *shadow = BaseShadow::myshadow_...
CWE-134
null
null
13,110
BaseShadow::terminateJob( update_style_t kind ) // has a default argument of US_NORMAL { int reason; bool signaled; MyString str; if( ! jobAd ) { dprintf( D_ALWAYS, "In terminateJob() w/ NULL JobAd!" ); } /* The first thing we do is record that we are in a termination pending state. */ if (kind == US_NORMA...
DoS Exec Code
0
BaseShadow::terminateJob( update_style_t kind ) // has a default argument of US_NORMAL { int reason; bool signaled; MyString str; if( ! jobAd ) { dprintf( D_ALWAYS, "In terminateJob() w/ NULL JobAd!" ); } /* The first thing we do is record that we are in a termination pending state. */ if (kind == US_NORMA...
@@ -1141,7 +1141,7 @@ BaseShadow::log_except(const char *msg) bool exception_already_logged = false; if(!msg) msg = ""; - sprintf(event.message, msg); + sprintf(event.message, "%s", msg); if ( BaseShadow::myshadow_ptr ) { BaseShadow *shadow = BaseShadow::myshadow_...
CWE-134
null
null
13,111
BaseShadow::updateJobAttr( const char *name, const char *expr, bool log ) { return job_updater->updateAttr( name, expr, false, log ); }
DoS Exec Code
0
BaseShadow::updateJobAttr( const char *name, const char *expr, bool log ) { return job_updater->updateAttr( name, expr, false, log ); }
@@ -1141,7 +1141,7 @@ BaseShadow::log_except(const char *msg) bool exception_already_logged = false; if(!msg) msg = ""; - sprintf(event.message, msg); + sprintf(event.message, "%s", msg); if ( BaseShadow::myshadow_ptr ) { BaseShadow *shadow = BaseShadow::myshadow_...
CWE-134
null
null
13,112
BaseShadow::updateJobAttr( const char *name, int value, bool log ) { return job_updater->updateAttr( name, value, false, log ); }
DoS Exec Code
0
BaseShadow::updateJobAttr( const char *name, int value, bool log ) { return job_updater->updateAttr( name, value, false, log ); }
@@ -1141,7 +1141,7 @@ BaseShadow::log_except(const char *msg) bool exception_already_logged = false; if(!msg) msg = ""; - sprintf(event.message, msg); + sprintf(event.message, "%s", msg); if ( BaseShadow::myshadow_ptr ) { BaseShadow *shadow = BaseShadow::myshadow_...
CWE-134
null
null
13,113
BaseShadow::updateJobInQueue( update_t type ) { MyString buf; buf.sprintf( "%s = %f", ATTR_BYTES_SENT, (prev_run_bytes_sent + bytesReceived()) ); jobAd->Insert( buf.Value() ); buf.sprintf( "%s = %f", ATTR_BYTES_RECVD, (prev_run_bytes_recvd + bytesSent()) ); jobAd->Insert( buf.Value() ); ...
DoS Exec Code
0
BaseShadow::updateJobInQueue( update_t type ) { MyString buf; buf.sprintf( "%s = %f", ATTR_BYTES_SENT, (prev_run_bytes_sent + bytesReceived()) ); jobAd->Insert( buf.Value() ); buf.sprintf( "%s = %f", ATTR_BYTES_RECVD, (prev_run_bytes_recvd + bytesSent()) ); jobAd->Insert( buf.Value() ); ...
@@ -1141,7 +1141,7 @@ BaseShadow::log_except(const char *msg) bool exception_already_logged = false; if(!msg) msg = ""; - sprintf(event.message, msg); + sprintf(event.message, "%s", msg); if ( BaseShadow::myshadow_ptr ) { BaseShadow *shadow = BaseShadow::myshadow_...
CWE-134
null
null
13,114
BaseShadow::~BaseShadow() { if (spool) free(spool); if (fsDomain) free(fsDomain); if (jobAd) FreeJobAd(jobAd); if (gjid) free(gjid); if (scheddAddr) free(scheddAddr); if( job_updater ) delete job_updater; }
DoS Exec Code
0
BaseShadow::~BaseShadow() { if (spool) free(spool); if (fsDomain) free(fsDomain); if (jobAd) FreeJobAd(jobAd); if (gjid) free(gjid); if (scheddAddr) free(scheddAddr); if( job_updater ) delete job_updater; }
@@ -1141,7 +1141,7 @@ BaseShadow::log_except(const char *msg) bool exception_already_logged = false; if(!msg) msg = ""; - sprintf(event.message, msg); + sprintf(event.message, "%s", msg); if ( BaseShadow::myshadow_ptr ) { BaseShadow *shadow = BaseShadow::myshadow_...
CWE-134
null
null
13,115
static int access_via_afs( const char * /* file */ ) { char *my_fs_domain=0; char *remote_fs_domain=0; int result=0; dprintf( D_SYSCALLS, "\tentering access_via_afs()\n" ); my_fs_domain = param("FILESYSTEM_DOMAIN"); thisRemoteResource->getFilesystemDomain(remote_fs_domain); if(!param_boolean_crufty("USE_AFS",...
DoS Exec Code
0
static int access_via_afs( const char * /* file */ ) { char *my_fs_domain=0; char *remote_fs_domain=0; int result=0; dprintf( D_SYSCALLS, "\tentering access_via_afs()\n" ); my_fs_domain = param("FILESYSTEM_DOMAIN"); thisRemoteResource->getFilesystemDomain(remote_fs_domain); if(!param_boolean_crufty("USE_AFS",...
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,116
static int access_via_nfs( const char * /* file */ ) { char *my_uid_domain=0; char *my_fs_domain=0; char *remote_uid_domain=0; char *remote_fs_domain=0; int result = 0; dprintf( D_SYSCALLS, "\tentering access_via_nfs()\n" ); my_uid_domain = param("UID_DOMAIN"); my_fs_domain = param("FILESYSTEM_DOMAIN"); thi...
DoS Exec Code
0
static int access_via_nfs( const char * /* file */ ) { char *my_uid_domain=0; char *my_fs_domain=0; char *remote_uid_domain=0; char *remote_fs_domain=0; int result = 0; dprintf( D_SYSCALLS, "\tentering access_via_nfs()\n" ); my_uid_domain = param("UID_DOMAIN"); my_fs_domain = param("FILESYSTEM_DOMAIN"); thi...
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,117
static int attr_list_has_file( const char *attr, const char *path ) { char const *file; MyString str; file = condor_basename(path); Shadow->getJobAd()->LookupString(attr,str); StringList list(str.Value()); if( list.contains_withwildcard(path) || list.contains_withwildcard(file) ) { return 1; } else { retu...
DoS Exec Code
0
static int attr_list_has_file( const char *attr, const char *path ) { char const *file; MyString str; file = condor_basename(path); Shadow->getJobAd()->LookupString(attr,str); StringList list(str.Value()); if( list.contains_withwildcard(path) || list.contains_withwildcard(file) ) { return 1; } else { retu...
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,118
static void complete_path( const char *short_path, MyString &full_path ) { if(short_path[0]==DIR_DELIM_CHAR) { full_path = short_path; } else { full_path.sprintf("%s%s%s", Shadow->getIwd(), DIR_DELIM_STRING, short_path); } }
DoS Exec Code
0
static void complete_path( const char *short_path, MyString &full_path ) { if(short_path[0]==DIR_DELIM_CHAR) { full_path = short_path; } else { full_path.sprintf("%s%s%s", Shadow->getIwd(), DIR_DELIM_STRING, short_path); } }
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,119
pseudo_begin_execution() { thisRemoteResource->beginExecution(); return 0; }
DoS Exec Code
0
pseudo_begin_execution() { thisRemoteResource->beginExecution(); return 0; }
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,120
int pseudo_get_file_info_new( const char *logical_name, char *&actual_url ) { MyString remap_list; MyString split_dir; MyString split_file; MyString full_path; MyString remap; MyString urlbuf; const char *method; dprintf( D_SYSCALLS, "\tlogical_name = \"%s\"\n", logical_name ); ASSERT( actual_url == NULL ); ...
DoS Exec Code
0
int pseudo_get_file_info_new( const char *logical_name, char *&actual_url ) { MyString remap_list; MyString split_dir; MyString split_file; MyString full_path; MyString remap; MyString urlbuf; const char *method; dprintf( D_SYSCALLS, "\tlogical_name = \"%s\"\n", logical_name ); ASSERT( actual_url == NULL ); ...
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,121
pseudo_get_job_attr( const char *name, MyString &expr ) { RemoteResource *remote; if (parallelMasterResource == NULL) { remote = thisRemoteResource; } else { remote = parallelMasterResource; } ClassAd *ad = remote->getJobAd(); ExprTree *e = ad->LookupExpr(name); if(e) { expr = ExprTreeToString(e); dprin...
DoS Exec Code
0
pseudo_get_job_attr( const char *name, MyString &expr ) { RemoteResource *remote; if (parallelMasterResource == NULL) { remote = thisRemoteResource; } else { remote = parallelMasterResource; } ClassAd *ad = remote->getJobAd(); ExprTree *e = ad->LookupExpr(name); if(e) { expr = ExprTreeToString(e); dprin...
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,122
pseudo_get_job_info(ClassAd *&ad, bool &delete_ad) { ClassAd * the_ad; delete_ad = false; the_ad = thisRemoteResource->getJobAd(); ASSERT( the_ad ); thisRemoteResource->filetrans.Init( the_ad, false, PRIV_USER, false ); std::string file; if ( the_ad->LookupString( ATTR_JOB_OUTPUT, file ) && strcmp( file.c_...
DoS Exec Code
0
pseudo_get_job_info(ClassAd *&ad, bool &delete_ad) { ClassAd * the_ad; delete_ad = false; the_ad = thisRemoteResource->getJobAd(); ASSERT( the_ad ); thisRemoteResource->filetrans.Init( the_ad, false, PRIV_USER, false ); std::string file; if ( the_ad->LookupString( ATTR_JOB_OUTPUT, file ) && strcmp( file.c_...
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,123
int pseudo_get_sec_session_info( char const *starter_reconnect_session_info, MyString &reconnect_session_id, MyString &reconnect_session_info, MyString &reconnect_session_key, char const *starter_filetrans_session_info, MyString &filetrans_session_id, MyString &filetrans_session_info, MyString &filetrans_sessio...
DoS Exec Code
0
int pseudo_get_sec_session_info( char const *starter_reconnect_session_info, MyString &reconnect_session_id, MyString &reconnect_session_info, MyString &reconnect_session_key, char const *starter_filetrans_session_info, MyString &filetrans_session_id, MyString &filetrans_session_info, MyString &filetrans_sessio...
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,124
pseudo_get_user_info(ClassAd *&ad) { static ClassAd* user_ad = NULL; if( ! user_ad ) { user_ad = new ClassAd; #ifndef WIN32 char buf[1024]; sprintf( buf, "%s = %d", ATTR_UID, (int)get_user_uid() ); user_ad->Insert( buf ); sprintf( buf, "%s = %d", ATTR_GID, (int)get_user_gid() ); user_ad->Insert( buf ...
DoS Exec Code
0
pseudo_get_user_info(ClassAd *&ad) { static ClassAd* user_ad = NULL; if( ! user_ad ) { user_ad = new ClassAd; #ifndef WIN32 char buf[1024]; sprintf( buf, "%s = %d", ATTR_UID, (int)get_user_uid() ); user_ad->Insert( buf ); sprintf( buf, "%s = %d", ATTR_GID, (int)get_user_gid() ); user_ad->Insert( buf ...
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,125
pseudo_job_termination( ClassAd *ad ) { bool exited_by_signal = false; bool core_dumped = false; int exit_signal = 0; int exit_code = 0; MyString exit_reason; ad->LookupBool(ATTR_ON_EXIT_BY_SIGNAL,exited_by_signal); ad->LookupBool(ATTR_JOB_CORE_DUMPED,core_dumped); ad->LookupString(ATTR_EXIT_REASON,exit_reason...
DoS Exec Code
0
pseudo_job_termination( ClassAd *ad ) { bool exited_by_signal = false; bool core_dumped = false; int exit_signal = 0; int exit_code = 0; MyString exit_reason; ad->LookupBool(ATTR_ON_EXIT_BY_SIGNAL,exited_by_signal); ad->LookupBool(ATTR_JOB_CORE_DUMPED,core_dumped); ad->LookupString(ATTR_EXIT_REASON,exit_reason...
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,126
pseudo_register_starter_info( ClassAd* ad ) { thisRemoteResource->setStarterInfo( ad ); return 0; }
DoS Exec Code
0
pseudo_register_starter_info( ClassAd* ad ) { thisRemoteResource->setStarterInfo( ad ); return 0; }
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,127
pseudo_set_job_attr( const char *name, const char *expr, bool log ) { RemoteResource *remote; if (parallelMasterResource == NULL) { remote = thisRemoteResource; } else { remote = parallelMasterResource; } if(Shadow->updateJobAttr(name,expr,log)) { dprintf(D_SYSCALLS,"pseudo_set_job_attr(%s,%s) succeeded\n",n...
DoS Exec Code
0
pseudo_set_job_attr( const char *name, const char *expr, bool log ) { RemoteResource *remote; if (parallelMasterResource == NULL) { remote = thisRemoteResource; } else { remote = parallelMasterResource; } if(Shadow->updateJobAttr(name,expr,log)) { dprintf(D_SYSCALLS,"pseudo_set_job_attr(%s,%s) succeeded\n",n...
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,128
static int use_append( const char * /* method */, const char *path ) { return attr_list_has_file( ATTR_APPEND_FILES, path ); }
DoS Exec Code
0
static int use_append( const char * /* method */, const char *path ) { return attr_list_has_file( ATTR_APPEND_FILES, path ); }
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,129
static int use_compress( const char * /* method */, const char *path ) { return attr_list_has_file( ATTR_COMPRESS_FILES, path ); }
DoS Exec Code
0
static int use_compress( const char * /* method */, const char *path ) { return attr_list_has_file( ATTR_COMPRESS_FILES, path ); }
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,130
static int use_fetch( const char * /* method */, const char *path ) { return attr_list_has_file( ATTR_FETCH_FILES, path ); }
DoS Exec Code
0
static int use_fetch( const char * /* method */, const char *path ) { return attr_list_has_file( ATTR_FETCH_FILES, path ); }
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,131
static int use_local_access( const char *file ) { return !strcmp(file,"/dev/null") || !strcmp(file,"/dev/zero") || attr_list_has_file( ATTR_LOCAL_FILES, file ); }
DoS Exec Code
0
static int use_local_access( const char *file ) { return !strcmp(file,"/dev/null") || !strcmp(file,"/dev/zero") || attr_list_has_file( ATTR_LOCAL_FILES, file ); }
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,132
static int use_special_access( const char *file ) { return !strcmp(file,"/dev/tcp") || !strcmp(file,"/dev/udp") || !strcmp(file,"/dev/icmp") || !strcmp(file,"/dev/ip"); }
DoS Exec Code
0
static int use_special_access( const char *file ) { return !strcmp(file,"/dev/tcp") || !strcmp(file,"/dev/udp") || !strcmp(file,"/dev/icmp") || !strcmp(file,"/dev/ip"); }
@@ -717,7 +717,7 @@ pseudo_ulog( ClassAd *ad ) Shadow->exception_already_logged = true; //lame: at the time of this writing, EXCEPT does not want const: - EXCEPT(critical_error); + EXCEPT("%s", critical_error); } delete event;
CWE-134
null
null
13,133
CStarter::CStarter() { Execute = NULL; orig_cwd = NULL; is_gridshell = false; ShuttingDown = FALSE; jic = NULL; jobUniverse = CONDOR_UNIVERSE_VANILLA; pre_script = NULL; post_script = NULL; starter_stdin_fd = -1; starter_stdout_fd = -1; starter_stderr_fd = -1; deferral_tid = -1; suspended = false; m_privs...
DoS Exec Code
0
CStarter::CStarter() { Execute = NULL; orig_cwd = NULL; is_gridshell = false; ShuttingDown = FALSE; jic = NULL; jobUniverse = CONDOR_UNIVERSE_VANILLA; pre_script = NULL; post_script = NULL; starter_stdin_fd = -1; starter_stdout_fd = -1; starter_stderr_fd = -1; deferral_tid = -1; suspended = false; m_privs...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,134
CStarter::Config() { if( Execute ) { free( Execute ); } if( (Execute = param("EXECUTE")) == NULL ) { if( is_gridshell ) { Execute = strdup( orig_cwd ); } else { EXCEPT("Execute directory not specified in config file."); } } if (!m_configured) { bool ps = privsep_enabled(); bool gl = param_boolean...
DoS Exec Code
0
CStarter::Config() { if( Execute ) { free( Execute ); } if( (Execute = param("EXECUTE")) == NULL ) { if( is_gridshell ) { Execute = strdup( orig_cwd ); } else { EXCEPT("Execute directory not specified in config file."); } } if (!m_configured) { bool ps = privsep_enabled(); bool gl = param_boolean...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,135
CStarter::Continue( void ) { dprintf(D_ALWAYS, "Continuing all jobs.\n"); UserProc *job; m_job_list.Rewind(); while ((job = m_job_list.Next()) != NULL) { job->Continue(); } this->suspended = false; return ( true ); }
DoS Exec Code
0
CStarter::Continue( void ) { dprintf(D_ALWAYS, "Continuing all jobs.\n"); UserProc *job; m_job_list.Rewind(); while ((job = m_job_list.Next()) != NULL) { job->Continue(); } this->suspended = false; return ( true ); }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,136
void CStarter::FinalCleanup() { RemoveRecoveryFile(); removeTempExecuteDir(); }
DoS Exec Code
0
void CStarter::FinalCleanup() { RemoveRecoveryFile(); removeTempExecuteDir(); }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,137
CStarter::GetJobEnv( ClassAd *jobad, Env *job_env, MyString *env_errors ) { char *env_str = param( "STARTER_JOB_ENVIRONMENT" ); ASSERT( jobad ); ASSERT( job_env ); if( !job_env->MergeFromV1RawOrV2Quoted(env_str,env_errors) ) { if( env_errors ) { env_errors->sprintf_cat( " The full value for STARTER_JOB_EN...
DoS Exec Code
0
CStarter::GetJobEnv( ClassAd *jobad, Env *job_env, MyString *env_errors ) { char *env_str = param( "STARTER_JOB_ENVIRONMENT" ); ASSERT( jobad ); ASSERT( job_env ); if( !job_env->MergeFromV1RawOrV2Quoted(env_str,env_errors) ) { if( env_errors ) { env_errors->sprintf_cat( " The full value for STARTER_JOB_EN...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,138
CStarter::Hold( void ) { bool jobRunning = false; UserProc *job; dprintf( D_ALWAYS, "Hold all jobs\n" ); if ( this->deferral_tid != -1 ) { this->removeDeferredJobs(); } m_job_list.Rewind(); while( (job = m_job_list.Next()) != NULL ) { if( job->Hold() ) { m_job_list.DeleteCurrent(); delete job; } ...
DoS Exec Code
0
CStarter::Hold( void ) { bool jobRunning = false; UserProc *job; dprintf( D_ALWAYS, "Hold all jobs\n" ); if ( this->deferral_tid != -1 ) { this->removeDeferredJobs(); } m_job_list.Rewind(); while( (job = m_job_list.Next()) != NULL ) { if( job->Hold() ) { m_job_list.DeleteCurrent(); delete job; } ...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,139
CStarter::PeriodicCkpt( void ) { dprintf(D_ALWAYS, "Periodic Checkpointing all jobs.\n"); if( jobUniverse != CONDOR_UNIVERSE_VM ) { return false; } UserProc *job; m_job_list.Rewind(); while ((job = m_job_list.Next()) != NULL) { if( job->Ckpt() ) { CondorPrivSepHelper* cpsh = condorPrivSepHelper(); if...
DoS Exec Code
0
CStarter::PeriodicCkpt( void ) { dprintf(D_ALWAYS, "Periodic Checkpointing all jobs.\n"); if( jobUniverse != CONDOR_UNIVERSE_VM ) { return false; } UserProc *job; m_job_list.Rewind(); while ((job = m_job_list.Next()) != NULL) { if( job->Ckpt() ) { CondorPrivSepHelper* cpsh = condorPrivSepHelper(); if...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,140
CStarter::PublishToEnv( Env* proc_env ) { ASSERT(proc_env); if( pre_script ) { pre_script->PublishToEnv( proc_env ); } proc_env->SetEnv("_CONDOR_JOB_IWD",jic->jobRemoteIWD()); MyString job_pids; UserProc* uproc; m_job_list.Rewind(); while ((uproc = m_job_list.Next()) != NULL) { uproc->PublishToEnv( proc_e...
DoS Exec Code
0
CStarter::PublishToEnv( Env* proc_env ) { ASSERT(proc_env); if( pre_script ) { pre_script->PublishToEnv( proc_env ); } proc_env->SetEnv("_CONDOR_JOB_IWD",jic->jobRemoteIWD()); MyString job_pids; UserProc* uproc; m_job_list.Rewind(); while ((uproc = m_job_list.Next()) != NULL) { uproc->PublishToEnv( proc_e...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,141
CStarter::Reaper(int pid, int exit_status) { int handled_jobs = 0; int all_jobs = 0; UserProc *job; if( WIFSIGNALED(exit_status) ) { dprintf( D_ALWAYS, "Process exited, pid=%d, signal=%d\n", pid, WTERMSIG(exit_status) ); } else { dprintf( D_ALWAYS, "Process exited, pid=%d, status=%d\n", pid, WEXITST...
DoS Exec Code
0
CStarter::Reaper(int pid, int exit_status) { int handled_jobs = 0; int all_jobs = 0; UserProc *job; if( WIFSIGNALED(exit_status) ) { dprintf( D_ALWAYS, "Process exited, pid=%d, signal=%d\n", pid, WTERMSIG(exit_status) ); } else { dprintf( D_ALWAYS, "Process exited, pid=%d, status=%d\n", pid, WEXITST...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,142
CStarter::RemoteContinue(int) { int retval = this->Continue(); jic->Continue(); return retval; }
DoS Exec Code
0
CStarter::RemoteContinue(int) { int retval = this->Continue(); jic->Continue(); return retval; }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,143
CStarter::RemoteHold( int ) { if( jic ) { jic->gotHold(); } if ( this->Hold( ) ) { dprintf( D_FULLDEBUG, "Got Hold when no jobs running\n" ); this->allJobsDone(); return ( true ); } return ( false ); }
DoS Exec Code
0
CStarter::RemoteHold( int ) { if( jic ) { jic->gotHold(); } if ( this->Hold( ) ) { dprintf( D_FULLDEBUG, "Got Hold when no jobs running\n" ); this->allJobsDone(); return ( true ); } return ( false ); }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,144
CStarter::RemotePeriodicCkpt(int) { return ( this->PeriodicCkpt( ) ); }
DoS Exec Code
0
CStarter::RemotePeriodicCkpt(int) { return ( this->PeriodicCkpt( ) ); }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,145
CStarter::RemoteShutdownFast(int) { bool fast_in_progress = false; if( jic ) { fast_in_progress = jic->isFastShutdown(); jic->gotShutdownFast(); } if( fast_in_progress == false ) { return ( this->ShutdownFast( ) ); } else { return ( false ); } }
DoS Exec Code
0
CStarter::RemoteShutdownFast(int) { bool fast_in_progress = false; if( jic ) { fast_in_progress = jic->isFastShutdown(); jic->gotShutdownFast(); } if( fast_in_progress == false ) { return ( this->ShutdownFast( ) ); } else { return ( false ); } }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,146
CStarter::RemoteShutdownGraceful( int ) { bool graceful_in_progress = false; if ( jic ) { graceful_in_progress = jic->isGracefulShutdown(); jic->gotShutdownGraceful(); } if ( graceful_in_progress == false ) { return ( this->ShutdownGraceful( ) ); } else { return ( false ); } }
DoS Exec Code
0
CStarter::RemoteShutdownGraceful( int ) { bool graceful_in_progress = false; if ( jic ) { graceful_in_progress = jic->isGracefulShutdown(); jic->gotShutdownGraceful(); } if ( graceful_in_progress == false ) { return ( this->ShutdownGraceful( ) ); } else { return ( false ); } }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,147
CStarter::RemoteSuspend(int) { int retval = this->Suspend(); jic->Suspend(); return retval; }
DoS Exec Code
0
CStarter::RemoteSuspend(int) { int retval = this->Suspend(); jic->Suspend(); return retval; }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,148
CStarter::Remove( ) { bool jobRunning = false; UserProc *job; dprintf( D_ALWAYS, "Remove all jobs\n" ); if ( this->deferral_tid != -1 ) { this->removeDeferredJobs(); } m_job_list.Rewind(); while( (job = m_job_list.Next()) != NULL ) { if( job->Remove() ) { m_job_list.DeleteCurrent(); delete job; } ...
DoS Exec Code
0
CStarter::Remove( ) { bool jobRunning = false; UserProc *job; dprintf( D_ALWAYS, "Remove all jobs\n" ); if ( this->deferral_tid != -1 ) { this->removeDeferredJobs(); } m_job_list.Rewind(); while( (job = m_job_list.Next()) != NULL ) { if( job->Remove() ) { m_job_list.DeleteCurrent(); delete job; } ...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,149
CStarter::RemoveRecoveryFile() { if ( m_recoveryFile.Length() > 0 ) { unlink( m_recoveryFile.Value() ); m_recoveryFile = ""; } }
DoS Exec Code
0
CStarter::RemoveRecoveryFile() { if ( m_recoveryFile.Length() > 0 ) { unlink( m_recoveryFile.Value() ); m_recoveryFile = ""; } }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,150
CStarter::SSHDRetry(Stream *s,char const *fmt,...) { va_list args; va_start( args, fmt ); vSSHDFailed(s,true,fmt,args); va_end( args ); return FALSE; }
DoS Exec Code
0
CStarter::SSHDRetry(Stream *s,char const *fmt,...) { va_list args; va_start( args, fmt ); vSSHDFailed(s,true,fmt,args); va_end( args ); return FALSE; }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,151
CStarter::ShutdownFast( void ) { bool jobRunning = false; UserProc *job; dprintf(D_ALWAYS, "ShutdownFast all jobs.\n"); if ( this->deferral_tid != -1 ) { this->removeDeferredJobs(); } m_job_list.Rewind(); while ((job = m_job_list.Next()) != NULL) { if ( job->ShutdownFast() ) { m_job_list.DeleteCurrent...
DoS Exec Code
0
CStarter::ShutdownFast( void ) { bool jobRunning = false; UserProc *job; dprintf(D_ALWAYS, "ShutdownFast all jobs.\n"); if ( this->deferral_tid != -1 ) { this->removeDeferredJobs(); } m_job_list.Rewind(); while ((job = m_job_list.Next()) != NULL) { if ( job->ShutdownFast() ) { m_job_list.DeleteCurrent...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,152
CStarter::ShutdownGraceful( void ) { bool jobRunning = false; UserProc *job; dprintf(D_ALWAYS, "ShutdownGraceful all jobs.\n"); if ( this->deferral_tid != -1 ) { this->removeDeferredJobs(); } m_job_list.Rewind(); while ((job = m_job_list.Next()) != NULL) { if ( job->ShutdownGraceful() ) { m_job_list.De...
DoS Exec Code
0
CStarter::ShutdownGraceful( void ) { bool jobRunning = false; UserProc *job; dprintf(D_ALWAYS, "ShutdownGraceful all jobs.\n"); if ( this->deferral_tid != -1 ) { this->removeDeferredJobs(); } m_job_list.Rewind(); while ((job = m_job_list.Next()) != NULL) { if ( job->ShutdownGraceful() ) { m_job_list.De...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,153
CStarter::SpawnJob( void ) { ClassAd* jobAd = jic->jobClassAd(); if ( jobAd->LookupInteger( ATTR_JOB_UNIVERSE, jobUniverse ) < 1 ) { dprintf( D_ALWAYS, "Job doesn't specify universe, assuming VANILLA\n" ); } dprintf( D_ALWAYS, "Starting a %s universe job with ID: %d.%d\n", CondorUniverseName(jobUnivers...
DoS Exec Code
0
CStarter::SpawnJob( void ) { ClassAd* jobAd = jic->jobClassAd(); if ( jobAd->LookupInteger( ATTR_JOB_UNIVERSE, jobUniverse ) < 1 ) { dprintf( D_ALWAYS, "Job doesn't specify universe, assuming VANILLA\n" ); } dprintf( D_ALWAYS, "Starting a %s universe job with ID: %d.%d\n", CondorUniverseName(jobUnivers...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,154
CStarter::SpawnPreScript( void ) { if ( this->deferral_tid != -1 ) { this->deferral_tid = -1; } ClassAd* jobAd = jic->jobClassAd(); char* tmp = NULL; MyString attr; attr = "Pre"; attr += ATTR_JOB_CMD; if( jobAd->LookupString(attr.Value(), &tmp) ) { free( tmp ); tmp = NULL; pre_script = new ScriptProc...
DoS Exec Code
0
CStarter::SpawnPreScript( void ) { if ( this->deferral_tid != -1 ) { this->deferral_tid = -1; } ClassAd* jobAd = jic->jobClassAd(); char* tmp = NULL; MyString attr; attr = "Pre"; attr += ATTR_JOB_CMD; if( jobAd->LookupString(attr.Value(), &tmp) ) { free( tmp ); tmp = NULL; pre_script = new ScriptProc...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,155
CStarter::StarterExit( int code ) { FinalCleanup(); #if !defined(WIN32) if ( GetEnv( "CONDOR_GLEXEC_STARTER_CLEANUP_FLAG" ) ) { exitAfterGlexec( code ); } #endif DC_Exit( code ); }
DoS Exec Code
0
CStarter::StarterExit( int code ) { FinalCleanup(); #if !defined(WIN32) if ( GetEnv( "CONDOR_GLEXEC_STARTER_CLEANUP_FLAG" ) ) { exitAfterGlexec( code ); } #endif DC_Exit( code ); }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,156
CStarter::Suspend( void ) { dprintf(D_ALWAYS, "Suspending all jobs.\n"); UserProc *job; m_job_list.Rewind(); while ((job = m_job_list.Next()) != NULL) { job->Suspend(); } this->suspended = true; return ( true ); }
DoS Exec Code
0
CStarter::Suspend( void ) { dprintf(D_ALWAYS, "Suspending all jobs.\n"); UserProc *job; m_job_list.Rewind(); while ((job = m_job_list.Next()) != NULL) { job->Suspend(); } this->suspended = true; return ( true ); }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,157
CStarter::WriteAdFiles() { ClassAd* ad; const char* dir = this->GetWorkingDir(); MyString ad_str, filename; FILE* fp; bool ret_val = true; ad = this->jic->jobClassAd(); if (ad != NULL) { filename.sprintf("%s%c%s", dir, DIR_DELIM_CHAR, JOB_AD_FILENAME); fp = safe_fopen_wrapper_follow(filename.Value(), "w")...
DoS Exec Code
0
CStarter::WriteAdFiles() { ClassAd* ad; const char* dir = this->GetWorkingDir(); MyString ad_str, filename; FILE* fp; bool ret_val = true; ad = this->jic->jobClassAd(); if (ad != NULL) { filename.sprintf("%s%c%s", dir, DIR_DELIM_CHAR, JOB_AD_FILENAME); fp = safe_fopen_wrapper_follow(filename.Value(), "w")...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,158
CStarter::WriteRecoveryFile( ClassAd *recovery_ad ) { MyString tmp_file; FILE *tmp_fp; if ( recovery_ad == NULL ) { return; } if ( m_recoveryFile.Length() == 0 ) { m_recoveryFile.sprintf( "%s%cdir_%ld.recover", Execute, DIR_DELIM_CHAR, (long)daemonCore->getpid() ); } tmp_file.sprintf( "%s.tmp", m_...
DoS Exec Code
0
CStarter::WriteRecoveryFile( ClassAd *recovery_ad ) { MyString tmp_file; FILE *tmp_fp; if ( recovery_ad == NULL ) { return; } if ( m_recoveryFile.Length() == 0 ) { m_recoveryFile.sprintf( "%s%cdir_%ld.recover", Execute, DIR_DELIM_CHAR, (long)daemonCore->getpid() ); } tmp_file.sprintf( "%s.tmp", m_...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,159
CStarter::classadCommand( int, Stream* s ) { ClassAd ad; ReliSock* rsock = (ReliSock*)s; int cmd = 0; cmd = getCmdFromReliSock( rsock, &ad, false ); switch( cmd ) { case FALSE: return FALSE; break; case CA_RECONNECT_JOB: return jic->reconnect( rsock, &ad ); break; default: const char* tmp = getCom...
DoS Exec Code
0
CStarter::classadCommand( int, Stream* s ) { ClassAd ad; ReliSock* rsock = (ReliSock*)s; int cmd = 0; cmd = getCmdFromReliSock( rsock, &ad, false ); switch( cmd ) { case FALSE: return FALSE; break; case CA_RECONNECT_JOB: return jic->reconnect( rsock, &ad ); break; default: const char* tmp = getCom...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,160
CStarter::cleanupJobs( void ) { UserProc *job; m_reaped_job_list.Rewind(); while( (job = m_reaped_job_list.Next()) != NULL) { if( job->JobExit() ) { m_reaped_job_list.DeleteCurrent(); delete job; } else { dprintf( D_ALWAYS, "JobExit() failed, waiting for job " "lease to expire or for a reconnect a...
DoS Exec Code
0
CStarter::cleanupJobs( void ) { UserProc *job; m_reaped_job_list.Rewind(); while( (job = m_reaped_job_list.Next()) != NULL) { if( job->JobExit() ) { m_reaped_job_list.DeleteCurrent(); delete job; } else { dprintf( D_ALWAYS, "JobExit() failed, waiting for job " "lease to expire or for a reconnect a...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,161
CStarter::closeSavedStderr( void ) { if( starter_stderr_fd > -1 ) { close( starter_stderr_fd ); starter_stderr_fd = -1; } }
DoS Exec Code
0
CStarter::closeSavedStderr( void ) { if( starter_stderr_fd > -1 ) { close( starter_stderr_fd ); starter_stderr_fd = -1; } }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,162
CStarter::closeSavedStdin( void ) { if( starter_stdin_fd > -1 ) { close( starter_stdin_fd ); starter_stdin_fd = -1; } }
DoS Exec Code
0
CStarter::closeSavedStdin( void ) { if( starter_stdin_fd > -1 ) { close( starter_stdin_fd ); starter_stdin_fd = -1; } }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,163
CStarter::closeSavedStdout( void ) { if( starter_stdout_fd > -1 ) { close( starter_stdout_fd ); starter_stdout_fd = -1; } }
DoS Exec Code
0
CStarter::closeSavedStdout( void ) { if( starter_stdout_fd > -1 ) { close( starter_stdout_fd ); starter_stdout_fd = -1; } }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,164
CStarter::createJobOwnerSecSession( int /*cmd*/, Stream* s ) { MyString fqu; getJobOwnerFQUOrDummy(fqu); ASSERT( !fqu.IsEmpty() ); MyString error_msg; ClassAd input; s->decode(); if( !input.initFromStream(*s) || !s->end_of_message() ) { dprintf(D_ALWAYS,"Failed to read request in createJobOwnerSecSession()\n...
DoS Exec Code
0
CStarter::createJobOwnerSecSession( int /*cmd*/, Stream* s ) { MyString fqu; getJobOwnerFQUOrDummy(fqu); ASSERT( !fqu.IsEmpty() ); MyString error_msg; ClassAd input; s->decode(); if( !input.initFromStream(*s) || !s->end_of_message() ) { dprintf(D_ALWAYS,"Failed to read request in createJobOwnerSecSession()\n...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,165
CStarter::createTempExecuteDir( void ) { if( is_gridshell ) { dprintf( D_ALWAYS, "gridshell running in: \"%s\"\n", WorkingDir.Value() ); return true; } #ifndef WIN32 bool use_chown = false; if (can_switch_ids()) { struct stat st; if (stat(Execute, &st) == -1) { EXCEPT("stat failed on %s: %s", ...
DoS Exec Code
0
CStarter::createTempExecuteDir( void ) { if( is_gridshell ) { dprintf( D_ALWAYS, "gridshell running in: \"%s\"\n", WorkingDir.Value() ); return true; } #ifndef WIN32 bool use_chown = false; if (can_switch_ids()) { struct stat st; if (stat(Execute, &st) == -1) { EXCEPT("stat failed on %s: %s", ...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,166
static bool extract_delimited_data( char const *input_buffer, int input_len, char const *begin_marker, char const *end_marker, MyString &output_buffer, MyString *error_msg) { int start = find_str_in_buffer(input_buffer,input_len,begin_marker); int end = find_str_in_buffer(input_buffer,input_len,end_marker); if...
DoS Exec Code
0
static bool extract_delimited_data( char const *input_buffer, int input_len, char const *begin_marker, char const *end_marker, MyString &output_buffer, MyString *error_msg) { int start = find_str_in_buffer(input_buffer,input_len,begin_marker); int end = find_str_in_buffer(input_buffer,input_len,end_marker); if...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,167
static bool extract_delimited_data_as_base64( char const *input_buffer, int input_len, char const *begin_marker, char const *end_marker, MyString &output_buffer, MyString *error_msg) { int start = find_str_in_buffer(input_buffer,input_len,begin_marker); int end = find_str_in_buffer(input_buffer,input_len,end_ma...
DoS Exec Code
0
static bool extract_delimited_data_as_base64( char const *input_buffer, int input_len, char const *begin_marker, char const *end_marker, MyString &output_buffer, MyString *error_msg) { int start = find_str_in_buffer(input_buffer,input_len,begin_marker); int end = find_str_in_buffer(input_buffer,input_len,end_ma...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,168
static int find_str_in_buffer( char const *buffer, int buffer_len, char const *str) { int str_len = strlen(str); int i; for(i=0; i+str_len <= buffer_len; i++) { if( memcmp(buffer+i,str,str_len)==0 ) { return i; } } return -1; }
DoS Exec Code
0
static int find_str_in_buffer( char const *buffer, int buffer_len, char const *str) { int str_len = strlen(str); int i; for(i=0; i+str_len <= buffer_len; i++) { if( memcmp(buffer+i,str,str_len)==0 ) { return i; } } return -1; }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,169
bool CStarter::getJobClaimId(MyString &result) { ClassAd *jobAd = jic ? jic->jobClassAd() : NULL; if( jobAd ) { return jobAd->LookupString(ATTR_CLAIM_ID,result); } return false; }
DoS Exec Code
0
bool CStarter::getJobClaimId(MyString &result) { ClassAd *jobAd = jic ? jic->jobClassAd() : NULL; if( jobAd ) { return jobAd->LookupString(ATTR_CLAIM_ID,result); } return false; }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,170
void CStarter::getJobOwnerFQUOrDummy(MyString &result) { ClassAd *jobAd = jic ? jic->jobClassAd() : NULL; if( jobAd ) { jobAd->LookupString(ATTR_USER,result); } if( result.IsEmpty() ) { result = "job-owner@submit-domain"; } }
DoS Exec Code
0
void CStarter::getJobOwnerFQUOrDummy(MyString &result) { ClassAd *jobAd = jic ? jic->jobClassAd() : NULL; if( jobAd ) { jobAd->LookupString(ATTR_USER,result); } if( result.IsEmpty() ) { result = "job-owner@submit-domain"; } }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,171
CStarter::getMySlotNumber( void ) { char *logappend = param("STARTER_LOG"); char const *tmp = NULL; int slot_number = 0; // default to 0, let our caller decide how to if ( logappend ) { char const *log_basename = condor_basename(logappend); MyString prefix; char* resource_prefix = param("STARTD_R...
DoS Exec Code
0
CStarter::getMySlotNumber( void ) { char *logappend = param("STARTER_LOG"); char const *tmp = NULL; int slot_number = 0; // default to 0, let our caller decide how to if ( logappend ) { char const *log_basename = condor_basename(logappend); MyString prefix; char* resource_prefix = param("STARTD_R...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,172
CStarter::publishJobExitAd( ClassAd* ad ) { return publishJobInfoAd(&m_reaped_job_list, ad); }
DoS Exec Code
0
CStarter::publishJobExitAd( ClassAd* ad ) { return publishJobInfoAd(&m_reaped_job_list, ad); }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,173
CStarter::publishJobInfoAd(List<UserProc>* proc_list, ClassAd* ad) { bool found_one = false; if( pre_script && pre_script->PublishUpdateAd(ad) ) { found_one = true; } if (m_deferred_job_update) { MyString buf; buf.sprintf( "%s=\"Exited\"", ATTR_JOB_STATE ); } UserProc *job; proc_list->Rewind(); while...
DoS Exec Code
0
CStarter::publishJobInfoAd(List<UserProc>* proc_list, ClassAd* ad) { bool found_one = false; if( pre_script && pre_script->PublishUpdateAd(ad) ) { found_one = true; } if (m_deferred_job_update) { MyString buf; buf.sprintf( "%s=\"Exited\"", ATTR_JOB_STATE ); } UserProc *job; proc_list->Rewind(); while...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,174
CStarter::publishPostScriptUpdateAd( ClassAd* ad ) { if( post_script && post_script->PublishUpdateAd(ad) ) { return true; } return false; }
DoS Exec Code
0
CStarter::publishPostScriptUpdateAd( ClassAd* ad ) { if( post_script && post_script->PublishUpdateAd(ad) ) { return true; } return false; }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,175
CStarter::publishPreScriptUpdateAd( ClassAd* ad ) { if( pre_script && pre_script->PublishUpdateAd(ad) ) { return true; } return false; }
DoS Exec Code
0
CStarter::publishPreScriptUpdateAd( ClassAd* ad ) { if( pre_script && pre_script->PublishUpdateAd(ad) ) { return true; } return false; }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,176
CStarter::remoteHoldCommand( int /*cmd*/, Stream* s ) { MyString hold_reason; int hold_code; int hold_subcode; s->decode(); if( !s->get(hold_reason) || !s->get(hold_code) || !s->get(hold_subcode) || !s->end_of_message() ) { dprintf(D_ALWAYS,"Failed to read message from %s in CStarter::remoteHoldCommand()...
DoS Exec Code
0
CStarter::remoteHoldCommand( int /*cmd*/, Stream* s ) { MyString hold_reason; int hold_code; int hold_subcode; s->decode(); if( !s->get(hold_reason) || !s->get(hold_code) || !s->get(hold_subcode) || !s->end_of_message() ) { dprintf(D_ALWAYS,"Failed to read message from %s in CStarter::remoteHoldCommand()...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,177
CStarter::removeTempExecuteDir( void ) { if( is_gridshell ) { return true; } MyString dir_name = "dir_"; dir_name += (int)daemonCore->getpid(); #if !defined(WIN32) if (condorPrivSepHelper() != NULL) { MyString path_name; path_name.sprintf("%s/%s", Execute, dir_name.Value()); if (!privsep_remove_dir(path_...
DoS Exec Code
0
CStarter::removeTempExecuteDir( void ) { if( is_gridshell ) { return true; } MyString dir_name = "dir_"; dir_name += (int)daemonCore->getpid(); #if !defined(WIN32) if (condorPrivSepHelper() != NULL) { MyString path_name; path_name.sprintf("%s/%s", Execute, dir_name.Value()); if (!privsep_remove_dir(path_...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,178
CStarter::startSSHD( int /*cmd*/, Stream* s ) { MyString error_msg; Sock *sock = (Sock*)s; char const *fqu = sock->getFullyQualifiedUser(); MyString job_owner; getJobOwnerFQUOrDummy(job_owner); if( !fqu || job_owner != fqu ) { dprintf(D_ALWAYS,"Unauthorized attempt to start sshd by '%s'\n", fqu ? fqu : "");...
DoS Exec Code
0
CStarter::startSSHD( int /*cmd*/, Stream* s ) { MyString error_msg; Sock *sock = (Sock*)s; char const *fqu = sock->getFullyQualifiedUser(); MyString job_owner; getJobOwnerFQUOrDummy(job_owner); if( !fqu || job_owner != fqu ) { dprintf(D_ALWAYS,"Unauthorized attempt to start sshd by '%s'\n", fqu ? fqu : "");...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,179
CStarter::transferOutput( void ) { UserProc *job; bool transient_failure = false; if (jic->transferOutput(transient_failure) == false) { if( transient_failure ) { return false; } m_reaped_job_list.Rewind(); while ((job = m_reaped_job_list.Next()) != NULL) { ClassAd ad; int pid; job->PublishUp...
DoS Exec Code
0
CStarter::transferOutput( void ) { UserProc *job; bool transient_failure = false; if (jic->transferOutput(transient_failure) == false) { if( transient_failure ) { return false; } m_reaped_job_list.Rewind(); while ((job = m_reaped_job_list.Next()) != NULL) { ClassAd ad; int pid; job->PublishUp...
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,180
CStarter::updateX509Proxy( int cmd, Stream* s ) { ASSERT(s); ReliSock* rsock = (ReliSock*)s; ASSERT(jic); return jic->updateX509Proxy(cmd,rsock) ? TRUE : FALSE; }
DoS Exec Code
0
CStarter::updateX509Proxy( int cmd, Stream* s ) { ASSERT(s); ReliSock* rsock = (ReliSock*)s; ASSERT(jic); return jic->updateX509Proxy(cmd,rsock) ? TRUE : FALSE; }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,181
CStarter::~CStarter() { if( Execute ) { free(Execute); } if( orig_cwd ) { free(orig_cwd); } if( jic ) { delete jic; } if( pre_script ) { delete( pre_script ); } if( post_script ) { delete( post_script ); } }
DoS Exec Code
0
CStarter::~CStarter() { if( Execute ) { free(Execute); } if( orig_cwd ) { free(orig_cwd); } if( jic ) { delete jic; } if( pre_script ) { delete( pre_script ); } if( post_script ) { delete( post_script ); } }
@@ -1800,7 +1800,7 @@ CStarter::removeDeferredJobs() { error += this->jic->jobCluster(); error += "."; error += this->jic->jobProc(); - EXCEPT( error.Value() ); + EXCEPT( "%s", error.Value() ); ret = false; } ret...
CWE-134
null
null
13,182
get_aix_arch( struct utsname *buf ) { char *ret = "UNK"; char d[3]; int model; /* The model number is encoded in the last two non zero digits of the model code. */ d[0] = buf->machine[ strlen( buf->machine ) - 4 ]; d[1] = buf->machine[ strlen( buf->machine ) - 3 ]; d[2] = '\0'; model = strtol(d, NULL, 16); ...
DoS Exec Code
0
get_aix_arch( struct utsname *buf ) { char *ret = "UNK"; char d[3]; int model; /* The model number is encoded in the last two non zero digits of the model code. */ d[0] = buf->machine[ strlen( buf->machine ) - 4 ]; d[1] = buf->machine[ strlen( buf->machine ) - 3 ]; d[2] = '\0'; model = strtol(d, NULL, 16); ...
@@ -299,7 +299,7 @@ sysapi_translate_arch( const char *machine, const char *) } else { // Unknown, just use what uname gave: - sprintf( tmp, machine ); + sprintf( tmp, "%s", machine ); } tmparch = strdup( tmp );
CWE-134
null
null
13,183
init_arch(void) { struct utsname buf; if( uname(&buf) < 0 ) { return; } uname_arch = strdup( buf.machine ); if( !uname_arch ) { EXCEPT( "Out of memory!" ); } uname_opsys = strdup( buf.sysname ); if( !uname_opsys ) { EXCEPT( "Out of memory!" ); } arch = sysapi_translate_arch( buf.machine, buf.sysname...
DoS Exec Code
0
init_arch(void) { struct utsname buf; if( uname(&buf) < 0 ) { return; } uname_arch = strdup( buf.machine ); if( !uname_arch ) { EXCEPT( "Out of memory!" ); } uname_opsys = strdup( buf.sysname ); if( !uname_opsys ) { EXCEPT( "Out of memory!" ); } arch = sysapi_translate_arch( buf.machine, buf.sysname...
@@ -299,7 +299,7 @@ sysapi_translate_arch( const char *machine, const char *) } else { // Unknown, just use what uname gave: - sprintf( tmp, machine ); + sprintf( tmp, "%s", machine ); } tmparch = strdup( tmp );
CWE-134
null
null
13,184
sysapi_condor_arch(void) { SYSTEM_INFO info; GetNativeSystemInfo(&info); if ( info.wProcessorArchitecture >= PROCESSOR_ARCHITECTURE_INTEL && info.wProcessorArchitecture <= PROCESSOR_ARCHITECTURE_IA32_ON_WIN64 ) { return windows_architectures[info.wProcessorArchitecture]; } else { return unknown_architecture...
DoS Exec Code
0
sysapi_condor_arch(void) { SYSTEM_INFO info; GetNativeSystemInfo(&info); if ( info.wProcessorArchitecture >= PROCESSOR_ARCHITECTURE_INTEL && info.wProcessorArchitecture <= PROCESSOR_ARCHITECTURE_IA32_ON_WIN64 ) { return windows_architectures[info.wProcessorArchitecture]; } else { return unknown_architecture...
@@ -299,7 +299,7 @@ sysapi_translate_arch( const char *machine, const char *) } else { // Unknown, just use what uname gave: - sprintf( tmp, machine ); + sprintf( tmp, "%s", machine ); } tmparch = strdup( tmp );
CWE-134
null
null
13,185
sysapi_condor_arch(void) { if( ! arch_inited ) { init_arch(); } return arch; }
DoS Exec Code
0
sysapi_condor_arch(void) { if( ! arch_inited ) { init_arch(); } return arch; }
@@ -299,7 +299,7 @@ sysapi_translate_arch( const char *machine, const char *) } else { // Unknown, just use what uname gave: - sprintf( tmp, machine ); + sprintf( tmp, "%s", machine ); } tmparch = strdup( tmp );
CWE-134
null
null
13,186
sysapi_opsys(void) { if (_sysapi_opsys_is_versioned) { return sysapi_opsys_versioned(); } return "WINDOWS"; }
DoS Exec Code
0
sysapi_opsys(void) { if (_sysapi_opsys_is_versioned) { return sysapi_opsys_versioned(); } return "WINDOWS"; }
@@ -299,7 +299,7 @@ sysapi_translate_arch( const char *machine, const char *) } else { // Unknown, just use what uname gave: - sprintf( tmp, machine ); + sprintf( tmp, "%s", machine ); } tmparch = strdup( tmp );
CWE-134
null
null
13,187
int sysapi_opsys_version() { if ( ! opsys_version) { sysapi_opsys_versioned(); // init opsys_version } return opsys_version; }
DoS Exec Code
0
int sysapi_opsys_version() { if ( ! opsys_version) { sysapi_opsys_versioned(); // init opsys_version } return opsys_version; }
@@ -299,7 +299,7 @@ sysapi_translate_arch( const char *machine, const char *) } else { // Unknown, just use what uname gave: - sprintf( tmp, machine ); + sprintf( tmp, "%s", machine ); } tmparch = strdup( tmp );
CWE-134
null
null
13,188
sysapi_opsys_versioned(void) { static char answer[128] = {0}; if (answer[0]) return answer; OSVERSIONINFO info; info.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); if (GetVersionEx(&info) > 0) { switch(info.dwPlatformId) { case VER_PLATFORM_WIN32s: sprintf(answer, "WIN32s%d%d", info.dwMajorVersi...
DoS Exec Code
0
sysapi_opsys_versioned(void) { static char answer[128] = {0}; if (answer[0]) return answer; OSVERSIONINFO info; info.dwOSVersionInfoSize = sizeof(OSVERSIONINFO); if (GetVersionEx(&info) > 0) { switch(info.dwPlatformId) { case VER_PLATFORM_WIN32s: sprintf(answer, "WIN32s%d%d", info.dwMajorVersi...
@@ -299,7 +299,7 @@ sysapi_translate_arch( const char *machine, const char *) } else { // Unknown, just use what uname gave: - sprintf( tmp, machine ); + sprintf( tmp, "%s", machine ); } tmparch = strdup( tmp );
CWE-134
null
null
13,189
sysapi_opsys_versioned(void) { if( ! arch_inited ) { init_arch(); } return opsys_versioned; }
DoS Exec Code
0
sysapi_opsys_versioned(void) { if( ! arch_inited ) { init_arch(); } return opsys_versioned; }
@@ -299,7 +299,7 @@ sysapi_translate_arch( const char *machine, const char *) } else { // Unknown, just use what uname gave: - sprintf( tmp, machine ); + sprintf( tmp, "%s", machine ); } tmparch = strdup( tmp );
CWE-134
null
null
13,190
sysapi_translate_opsys( const char *sysname, const char *release, const char *version, int append_version) { char tmp[64]; char ver[24]; const char * pver=""; char *tmpopsys; if( !strcmp(sysname, "Linux") ) { sprintf( tmp, "LINUX" ); } else if( !strcmp(sysname...
DoS Exec Code
0
sysapi_translate_opsys( const char *sysname, const char *release, const char *version, int append_version) { char tmp[64]; char ver[24]; const char * pver=""; char *tmpopsys; if( !strcmp(sysname, "Linux") ) { sprintf( tmp, "LINUX" ); } else if( !strcmp(sysname...
@@ -299,7 +299,7 @@ sysapi_translate_arch( const char *machine, const char *) } else { // Unknown, just use what uname gave: - sprintf( tmp, machine ); + sprintf( tmp, "%s", machine ); } tmparch = strdup( tmp );
CWE-134
null
null
13,191
int sysapi_translate_opsys_version( const char * /*sysname*/, const char *release, const char * /*version*/ ) { const char * psz = release; while (psz[0] && (psz[0] < '0' || psz[0] > '9')) { ++psz; } int major = 0; while (psz[0]) { if (psz[0] >= '0' && psz[0] <= '9') { ...
DoS Exec Code
0
int sysapi_translate_opsys_version( const char * /*sysname*/, const char *release, const char * /*version*/ ) { const char * psz = release; while (psz[0] && (psz[0] < '0' || psz[0] > '9')) { ++psz; } int major = 0; while (psz[0]) { if (psz[0] >= '0' && psz[0] <= '9') { ...
@@ -299,7 +299,7 @@ sysapi_translate_arch( const char *machine, const char *) } else { // Unknown, just use what uname gave: - sprintf( tmp, machine ); + sprintf( tmp, "%s", machine ); } tmparch = strdup( tmp );
CWE-134
null
null
13,192
sysapi_uname_arch(void) { return sysapi_condor_arch(); }
DoS Exec Code
0
sysapi_uname_arch(void) { return sysapi_condor_arch(); }
@@ -299,7 +299,7 @@ sysapi_translate_arch( const char *machine, const char *) } else { // Unknown, just use what uname gave: - sprintf( tmp, machine ); + sprintf( tmp, "%s", machine ); } tmparch = strdup( tmp );
CWE-134
null
null
13,193
sysapi_uname_arch(void) { if( ! arch_inited ) { init_arch(); } return uname_arch; }
DoS Exec Code
0
sysapi_uname_arch(void) { if( ! arch_inited ) { init_arch(); } return uname_arch; }
@@ -299,7 +299,7 @@ sysapi_translate_arch( const char *machine, const char *) } else { // Unknown, just use what uname gave: - sprintf( tmp, machine ); + sprintf( tmp, "%s", machine ); } tmparch = strdup( tmp );
CWE-134
null
null
13,194
sysapi_uname_opsys(void) { if( ! arch_inited ) { init_arch(); } return uname_opsys; }
DoS Exec Code
0
sysapi_uname_opsys(void) { if( ! arch_inited ) { init_arch(); } return uname_opsys; }
@@ -299,7 +299,7 @@ sysapi_translate_arch( const char *machine, const char *) } else { // Unknown, just use what uname gave: - sprintf( tmp, machine ); + sprintf( tmp, "%s", machine ); } tmparch = strdup( tmp );
CWE-134
null
null
13,195
SetSyscalls( int foo ) { return foo; }
DoS Exec Code
0
SetSyscalls( int foo ) { return foo; }
@@ -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,196
bad_file( const char *dirpath, const char *name, Directory & dir ) { MyString pathname; MyString buf; if( is_relative_to_cwd( name ) ) { pathname.sprintf( "%s%c%s", dirpath, DIR_DELIM_CHAR, name ); } else { pathname = name; } if( VerboseFlag ) { printf( "%s - BAD\n", pathname.Value() ); dprintf( D_ALWAY...
DoS Exec Code
0
bad_file( const char *dirpath, const char *name, Directory & dir ) { MyString pathname; MyString buf; if( is_relative_to_cwd( name ) ) { pathname.sprintf( "%s%c%s", dirpath, DIR_DELIM_CHAR, name ); } else { pathname = name; } if( VerboseFlag ) { printf( "%s - BAD\n", pathname.Value() ); dprintf( D_ALWAY...
@@ -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,197
check_execute_dir() { time_t now = time(NULL); const char *f; bool busy; State s = get_machine_state(); switch( s ) { case owner_state: case unclaimed_state: case matched_state: busy = false; break; case claimed_state: case preempting_state: busy = true; break; default: dprintf( D_ALWAYS, ...
DoS Exec Code
0
check_execute_dir() { time_t now = time(NULL); const char *f; bool busy; State s = get_machine_state(); switch( s ) { case owner_state: case unclaimed_state: case matched_state: busy = false; break; case claimed_state: case preempting_state: busy = true; break; default: dprintf( D_ALWAYS, ...
@@ -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,198
check_log_dir() { const char *f; Directory dir(Log, PRIV_ROOT); StringList invalid; invalid.initializeFromString (InvalidLogFiles ? InvalidLogFiles : ""); while( (f = dir.Next()) ) { if( invalid.contains(f) ) { bad_file( Log, f, dir ); } else { good_file( Log, f ); } } }
DoS Exec Code
0
check_log_dir() { const char *f; Directory dir(Log, PRIV_ROOT); StringList invalid; invalid.initializeFromString (InvalidLogFiles ? InvalidLogFiles : ""); while( (f = dir.Next()) ) { if( invalid.contains(f) ) { bad_file( Log, f, dir ); } else { good_file( Log, f ); } } }
@@ -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,199
check_spool_dir() { unsigned int history_length, startd_history_length; const char *f; const char *history, *startd_history; Directory dir(Spool, PRIV_ROOT); StringList well_known_list, bad_spool_files; Qmgr_connection *qmgr; if ( ValidSpoolFiles == NULL ) { dprintf( D_ALWAYS, "Not cleaning ...
DoS Exec Code
0
check_spool_dir() { unsigned int history_length, startd_history_length; const char *f; const char *history, *startd_history; Directory dir(Spool, PRIV_ROOT); StringList well_known_list, bad_spool_files; Qmgr_connection *qmgr; if ( ValidSpoolFiles == NULL ) { dprintf( D_ALWAYS, "Not cleaning ...
@@ -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