idx
int64
func_before
string
Vulnerability Classification
string
vul
int64
func_after
string
patch
string
CWE ID
string
lines_before
string
lines_after
string
12,900
bool ContainerChunk::removeValue( XMP_Uns32 id ) { valueMap* cm = &this->childmap; valueMapIter iter = cm->find( id ); if( iter == cm->end() ) return false; //not found ValueChunk* propChunk = iter->second; chunkVect* cv = &this->children; chunkVectIter cvIter; for (cvIter = cv->begin(); cvIter != cv->end(...
DoS Overflow
0
bool ContainerChunk::removeValue( XMP_Uns32 id ) { valueMap* cm = &this->childmap; valueMapIter iter = cm->find( id ); if( iter == cm->end() ) return false; //not found ValueChunk* propChunk = iter->second; chunkVect* cv = &this->children; chunkVectIter cvIter; for (cvIter = cv->begin(); cvIter != cv->end(...
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,901
void ContainerChunk::replaceChildWithJunk( Chunk* child, bool deleteChild ) { chunkVectIter iter = getChild( child ); if ( iter == this->children.end() ) { throw new XMP_Error(kXMPErr_InternalFailure, "replaceChildWithJunk: childChunk not found."); } *iter = new JunkChunk ( NULL, child->oldSize ); if ( deleteCh...
DoS Overflow
0
void ContainerChunk::replaceChildWithJunk( Chunk* child, bool deleteChild ) { chunkVectIter iter = getChild( child ); if ( iter == this->children.end() ) { throw new XMP_Error(kXMPErr_InternalFailure, "replaceChildWithJunk: childChunk not found."); } *iter = new JunkChunk ( NULL, child->oldSize ); if ( deleteCh...
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,902
std::string Chunk::toString(XMP_Uns8 level ) { char buffer[256]; snprintf( buffer, 255, "%.4s -- " "oldSize: 0x%.8llX, " "newSize: 0x%.8llX, " "oldPos: 0x%.8llX\n", (char*)(&this->id), this->oldSize, this->newSize, this->oldPos ); return std::string(buffer); }
DoS Overflow
0
std::string Chunk::toString(XMP_Uns8 level ) { char buffer[256]; snprintf( buffer, 255, "%.4s -- " "oldSize: 0x%.8llX, " "newSize: 0x%.8llX, " "oldPos: 0x%.8llX\n", (char*)(&this->id), this->oldSize, this->newSize, this->oldPos ); return std::string(buffer); }
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,903
std::string ContainerChunk::toString(XMP_Uns8 level ) { XMP_Int64 offset= 12; // compute offsets, just for informational purposes char buffer[256]; snprintf( buffer, 255, "%.4s:%.4s, " "oldSize: 0x%8llX, " "newSize: 0x%.8llX, " "oldPos: 0x%.8llX\n", (char*)(&this->id), (char*)(&this->containerType), thi...
DoS Overflow
0
std::string ContainerChunk::toString(XMP_Uns8 level ) { XMP_Int64 offset= 12; // compute offsets, just for informational purposes char buffer[256]; snprintf( buffer, 255, "%.4s:%.4s, " "oldSize: 0x%8llX, " "newSize: 0x%.8llX, " "oldPos: 0x%.8llX\n", (char*)(&this->id), (char*)(&this->containerType), thi...
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,904
void ContainerChunk::write( RIFF_MetaHandler* handler, XMP_IO* file, bool isMainChunk ) { if ( isMainChunk ) file ->Rewind(); XMP_Int64 chunkStart = file->Offset(); XMP_Int64 chunkEnd = chunkStart + this->newSize; XMP_Enforce( chunkStart % 2 == 0 ); chunkVect *rc = &this->children; XMP_Int64 childStart = chun...
DoS Overflow
0
void ContainerChunk::write( RIFF_MetaHandler* handler, XMP_IO* file, bool isMainChunk ) { if ( isMainChunk ) file ->Rewind(); XMP_Int64 chunkStart = file->Offset(); XMP_Int64 chunkEnd = chunkStart + this->newSize; XMP_Enforce( chunkStart % 2 == 0 ); chunkVect *rc = &this->children; XMP_Int64 childStart = chun...
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,905
void XMPChunk::write( RIFF_MetaHandler* handler, XMP_IO* file, bool isMainChunk ) { XIO::WriteUns32_LE( file, kChunk_XMP ); XIO::WriteUns32_LE( file, (XMP_Uns32) this->newSize - 8 ); // validated in changesAndSize() above file->Write ( handler->xmpPacket.data(), (XMP_Int32)handler->xmpPacket.size() ); }
DoS Overflow
0
void XMPChunk::write( RIFF_MetaHandler* handler, XMP_IO* file, bool isMainChunk ) { XIO::WriteUns32_LE( file, kChunk_XMP ); XIO::WriteUns32_LE( file, (XMP_Uns32) this->newSize - 8 ); // validated in changesAndSize() above file->Write ( handler->xmpPacket.data(), (XMP_Int32)handler->xmpPacket.size() ); }
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,906
void ValueChunk::write( RIFF_MetaHandler* handler, XMP_IO* file, bool isMainChunk ) { XIO::WriteUns32_LE( file, this->id ); XIO::WriteUns32_LE( file, (XMP_Uns32)this->newSize - 8 ); file->Write ( this->newValue.data() , (XMP_Int32)this->newSize - 8 ); }
DoS Overflow
0
void ValueChunk::write( RIFF_MetaHandler* handler, XMP_IO* file, bool isMainChunk ) { XIO::WriteUns32_LE( file, this->id ); XIO::WriteUns32_LE( file, (XMP_Uns32)this->newSize - 8 ); file->Write ( this->newValue.data() , (XMP_Int32)this->newSize - 8 ); }
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,907
void JunkChunk::write( RIFF_MetaHandler* handler, XMP_IO* file, bool isMainChunk ) { XIO::WriteUns32_LE( file, kChunk_JUNK ); // write JUNK, never JUNQ XMP_Enforce( this->newSize < 0xFFFFFFFF ); XMP_Enforce( this->newSize >= 8 ); // minimum size of any chunk XMP_Uns32 innerSize = (XMP_Uns32)this->newSize - 8; X...
DoS Overflow
0
void JunkChunk::write( RIFF_MetaHandler* handler, XMP_IO* file, bool isMainChunk ) { XIO::WriteUns32_LE( file, kChunk_JUNK ); // write JUNK, never JUNQ XMP_Enforce( this->newSize < 0xFFFFFFFF ); XMP_Enforce( this->newSize >= 8 ); // minimum size of any chunk XMP_Uns32 innerSize = (XMP_Uns32)this->newSize - 8; X...
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,908
ContainerChunk::~ContainerChunk() { this->release(); // free resources }
DoS Overflow
0
ContainerChunk::~ContainerChunk() { this->release(); // free resources }
@@ -167,7 +167,8 @@ Chunk::Chunk( ContainerChunk* parent, RIFF_MetaHandler* handler, bool skip, Chun this->oldPos = file->Offset(); this->id = XIO::ReadUns32_LE( file ); - this->oldSize = XIO::ReadUns32_LE( file ) + 8; + this->oldSize = XIO::ReadUns32_LE( file ); + this->oldSize += 8; // Make sure the size is...
CWE-190
null
null
12,909
cdio_add_device_list(char **device_list[], const char *drive, unsigned int *num_drives) { if (NULL != drive) { unsigned int j; char real_device_1[PATH_MAX]; char real_device_2[PATH_MAX]; cdio_realpath(drive, real_device_1); /* Check if drive is already in list. */ for (j=0...
null
0
cdio_add_device_list(char **device_list[], const char *drive, unsigned int *num_drives) { if (NULL != drive) { unsigned int j; char real_device_1[PATH_MAX]; char real_device_2[PATH_MAX]; cdio_realpath(drive, real_device_1); /* Check if drive is already in list. */ for (j=0...
@@ -296,7 +296,6 @@ get_cdtext_generic (void *p_user_data) if(len <= 0 || 0 != cdtext_data_init (p_env->cdtext, &p_cdtext_data[4], len)) { p_env->b_cdtext_error = true; - cdtext_destroy (p_env->cdtext); free(p_env->cdtext); p_env->cdtext = NULL; }
CWE-415
null
null
12,910
cdio_generic_free (void *p_user_data) { generic_img_private_t *p_env = p_user_data; if (NULL == p_env) return; if (p_env->source_name) free (p_env->source_name); if (NULL != p_env->cdtext) { cdtext_destroy(p_env->cdtext); p_env->cdtext = NULL; } if (p_env->fd >= 0) close (p_env->fd); i...
null
0
cdio_generic_free (void *p_user_data) { generic_img_private_t *p_env = p_user_data; if (NULL == p_env) return; if (p_env->source_name) free (p_env->source_name); if (NULL != p_env->cdtext) { cdtext_destroy(p_env->cdtext); p_env->cdtext = NULL; } if (p_env->fd >= 0) close (p_env->fd); i...
@@ -296,7 +296,6 @@ get_cdtext_generic (void *p_user_data) if(len <= 0 || 0 != cdtext_data_init (p_env->cdtext, &p_cdtext_data[4], len)) { p_env->b_cdtext_error = true; - cdtext_destroy (p_env->cdtext); free(p_env->cdtext); p_env->cdtext = NULL; }
CWE-415
null
null
12,911
cdio_generic_init (void *user_data, int open_flags) { generic_img_private_t *p_env = user_data; if (p_env->init) { cdio_warn ("init called more than once"); return false; } p_env->fd = open (p_env->source_name, open_flags, 0); if (p_env->fd < 0) { cdio_warn ("open (%s): %s", p_env->source_...
null
0
cdio_generic_init (void *user_data, int open_flags) { generic_img_private_t *p_env = user_data; if (p_env->init) { cdio_warn ("init called more than once"); return false; } p_env->fd = open (p_env->source_name, open_flags, 0); if (p_env->fd < 0) { cdio_warn ("open (%s): %s", p_env->source_...
@@ -296,7 +296,6 @@ get_cdtext_generic (void *p_user_data) if(len <= 0 || 0 != cdtext_data_init (p_env->cdtext, &p_cdtext_data[4], len)) { p_env->b_cdtext_error = true; - cdtext_destroy (p_env->cdtext); free(p_env->cdtext); p_env->cdtext = NULL; }
CWE-415
null
null
12,912
cdio_generic_read (void *user_data, void *buf, size_t size) { generic_img_private_t *p_env = user_data; return read(p_env->fd, buf, size); }
null
0
cdio_generic_read (void *user_data, void *buf, size_t size) { generic_img_private_t *p_env = user_data; return read(p_env->fd, buf, size); }
@@ -296,7 +296,6 @@ get_cdtext_generic (void *p_user_data) if(len <= 0 || 0 != cdtext_data_init (p_env->cdtext, &p_cdtext_data[4], len)) { p_env->b_cdtext_error = true; - cdtext_destroy (p_env->cdtext); free(p_env->cdtext); p_env->cdtext = NULL; }
CWE-415
null
null
12,913
cdio_generic_read_form1_sector (void * user_data, void *data, lsn_t lsn) { if (0 > cdio_generic_lseek(user_data, CDIO_CD_FRAMESIZE*lsn, SEEK_SET)) return DRIVER_OP_ERROR; return cdio_generic_read(user_data, data, CDIO_CD_FRAMESIZE); }
null
0
cdio_generic_read_form1_sector (void * user_data, void *data, lsn_t lsn) { if (0 > cdio_generic_lseek(user_data, CDIO_CD_FRAMESIZE*lsn, SEEK_SET)) return DRIVER_OP_ERROR; return cdio_generic_read(user_data, data, CDIO_CD_FRAMESIZE); }
@@ -296,7 +296,6 @@ get_cdtext_generic (void *p_user_data) if(len <= 0 || 0 != cdtext_data_init (p_env->cdtext, &p_cdtext_data[4], len)) { p_env->b_cdtext_error = true; - cdtext_destroy (p_env->cdtext); free(p_env->cdtext); p_env->cdtext = NULL; }
CWE-415
null
null
12,914
cdio_generic_stdio_free (void *p_user_data) { generic_img_private_t *p_env = p_user_data; if (NULL == p_env) return; if (NULL != p_env->source_name) free (p_env->source_name); if (p_env->data_source) cdio_stdio_destroy (p_env->data_source); }
null
0
cdio_generic_stdio_free (void *p_user_data) { generic_img_private_t *p_env = p_user_data; if (NULL == p_env) return; if (NULL != p_env->source_name) free (p_env->source_name); if (p_env->data_source) cdio_stdio_destroy (p_env->data_source); }
@@ -296,7 +296,6 @@ get_cdtext_generic (void *p_user_data) if(len <= 0 || 0 != cdtext_data_init (p_env->cdtext, &p_cdtext_data[4], len)) { p_env->b_cdtext_error = true; - cdtext_destroy (p_env->cdtext); free(p_env->cdtext); p_env->cdtext = NULL; }
CWE-415
null
null
12,915
cdio_generic_unimplemented_eject_media (void *p_user_data) { /* Sort of a stub here. Perhaps log a message? */ return DRIVER_OP_UNSUPPORTED; }
null
0
cdio_generic_unimplemented_eject_media (void *p_user_data) { /* Sort of a stub here. Perhaps log a message? */ return DRIVER_OP_UNSUPPORTED; }
@@ -296,7 +296,6 @@ get_cdtext_generic (void *p_user_data) if(len <= 0 || 0 != cdtext_data_init (p_env->cdtext, &p_cdtext_data[4], len)) { p_env->b_cdtext_error = true; - cdtext_destroy (p_env->cdtext); free(p_env->cdtext); p_env->cdtext = NULL; }
CWE-415
null
null
12,916
cdio_generic_unimplemented_set_blocksize (void *p_user_data, uint16_t i_blocksize) { /* Sort of a stub here. Perhaps log a message? */ return DRIVER_OP_UNSUPPORTED; }
null
0
cdio_generic_unimplemented_set_blocksize (void *p_user_data, uint16_t i_blocksize) { /* Sort of a stub here. Perhaps log a message? */ return DRIVER_OP_UNSUPPORTED; }
@@ -296,7 +296,6 @@ get_cdtext_generic (void *p_user_data) if(len <= 0 || 0 != cdtext_data_init (p_env->cdtext, &p_cdtext_data[4], len)) { p_env->b_cdtext_error = true; - cdtext_destroy (p_env->cdtext); free(p_env->cdtext); p_env->cdtext = NULL; }
CWE-415
null
null
12,917
cdio_generic_unimplemented_set_speed (void *p_user_data, int i_speed) { /* Sort of a stub here. Perhaps log a message? */ return DRIVER_OP_UNSUPPORTED; }
null
0
cdio_generic_unimplemented_set_speed (void *p_user_data, int i_speed) { /* Sort of a stub here. Perhaps log a message? */ return DRIVER_OP_UNSUPPORTED; }
@@ -296,7 +296,6 @@ get_cdtext_generic (void *p_user_data) if(len <= 0 || 0 != cdtext_data_init (p_env->cdtext, &p_cdtext_data[4], len)) { p_env->b_cdtext_error = true; - cdtext_destroy (p_env->cdtext); free(p_env->cdtext); p_env->cdtext = NULL; }
CWE-415
null
null
12,918
cdio_is_device_generic(const char *source_name) { struct stat buf; if (0 != stat(source_name, &buf)) { cdio_warn ("Can't get file status for %s:\n%s", source_name, strerror(errno)); return false; } return (S_ISBLK(buf.st_mode) || S_ISCHR(buf.st_mode)); }
null
0
cdio_is_device_generic(const char *source_name) { struct stat buf; if (0 != stat(source_name, &buf)) { cdio_warn ("Can't get file status for %s:\n%s", source_name, strerror(errno)); return false; } return (S_ISBLK(buf.st_mode) || S_ISCHR(buf.st_mode)); }
@@ -296,7 +296,6 @@ get_cdtext_generic (void *p_user_data) if(len <= 0 || 0 != cdtext_data_init (p_env->cdtext, &p_cdtext_data[4], len)) { p_env->b_cdtext_error = true; - cdtext_destroy (p_env->cdtext); free(p_env->cdtext); p_env->cdtext = NULL; }
CWE-415
null
null
12,919
cdio_is_device_quiet_generic(const char *source_name) { struct stat buf; if (0 != stat(source_name, &buf)) { return false; } return (S_ISBLK(buf.st_mode) || S_ISCHR(buf.st_mode)); }
null
0
cdio_is_device_quiet_generic(const char *source_name) { struct stat buf; if (0 != stat(source_name, &buf)) { return false; } return (S_ISBLK(buf.st_mode) || S_ISCHR(buf.st_mode)); }
@@ -296,7 +296,6 @@ get_cdtext_generic (void *p_user_data) if(len <= 0 || 0 != cdtext_data_init (p_env->cdtext, &p_cdtext_data[4], len)) { p_env->b_cdtext_error = true; - cdtext_destroy (p_env->cdtext); free(p_env->cdtext); p_env->cdtext = NULL; }
CWE-415
null
null
12,920
int session_activate(Session *s) { int r; assert(s); if (s->vtnr < 0) return -ENOTSUP; if (!s->seat) return -ENOTSUP; if (s->seat->active == s) return 0; assert(seat_is_vtconsole(s->seat)); r = chvt(s->vtnr); ...
null
0
int session_activate(Session *s) { int r; assert(s); if (s->vtnr < 0) return -ENOTSUP; if (!s->seat) return -ENOTSUP; if (s->seat->active == s) return 0; assert(seat_is_vtconsole(s->seat)); r = chvt(s->vtnr); ...
@@ -376,15 +376,13 @@ static int session_link_x11_socket(Session *s) { return -ENOENT; } - t = strappend(s->user->runtime_path, "/X11/display"); + t = strappend(s->user->runtime_path, "/X11-display"); if (!t) { log_error("Out of memory"); ...
CWE-59
null
null
12,921
CheckCredentials () { CredentialWrapper * pCred; credentials.Rewind(); dprintf (D_FULLDEBUG, "In CheckCredentials()\n"); time_t now = time(NULL); while (credentials.Next(pCred)) { init_user_id_from_FQN (pCred->cred->GetOwner()); priv_state priv = set_user_priv(); time_t time = pCred->cre...
DoS Exec Code
0
CheckCredentials () { CredentialWrapper * pCred; credentials.Rewind(); dprintf (D_FULLDEBUG, "In CheckCredentials()\n"); time_t now = time(NULL); while (credentials.Next(pCred)) { init_user_id_from_FQN (pCred->cred->GetOwner()); priv_state priv = set_user_priv(); time_t time = pCred->cre...
@@ -263,7 +263,7 @@ get_cred_handler(Service * /*service*/, int /*i*/, Stream *stream) { *pColon = '\0'; // Name is the second part - sprintf (name, (char*)(pColon+sizeof(char))); + sprintf (name, "%s", (char*)(pColon+sizeof(char))); if (strcmp (owner, user) != 0) { dprintf (D_ALW...
CWE-134
null
null
12,922
Init() { char * tmp = param( "CRED_SUPER_USERS" ); if( tmp ) { super_users.initializeFromString( tmp ); free( tmp ); } else { #if defined(WIN32) super_users.initializeFromString("Administrator"); #else super_users.initializeFromString("root"); #endif } char * spool = param ("SPOOL"); tmp =...
DoS Exec Code
0
Init() { char * tmp = param( "CRED_SUPER_USERS" ); if( tmp ) { super_users.initializeFromString( tmp ); free( tmp ); } else { #if defined(WIN32) super_users.initializeFromString("Administrator"); #else super_users.initializeFromString("root"); #endif } char * spool = param ("SPOOL"); tmp =...
@@ -263,7 +263,7 @@ get_cred_handler(Service * /*service*/, int /*i*/, Stream *stream) { *pColon = '\0'; // Name is the second part - sprintf (name, (char*)(pColon+sizeof(char))); + sprintf (name, "%s", (char*)(pColon+sizeof(char))); if (strcmp (owner, user) != 0) { dprintf (D_ALW...
CWE-134
null
null
12,923
int MyProxyGetDelegationReaper(Service *, int exitPid, int exitStatus) { dprintf (D_ALWAYS, "MyProxyGetDelegationReaper pid = %d, rc = %d\n", exitPid, exitStatus); credentials.Rewind(); CredentialWrapper * cred_wrapper; X509CredentialWrapper * matched_entry = NULL; while (credentials.Next (cred_wrapper)) { ...
DoS Exec Code
0
int MyProxyGetDelegationReaper(Service *, int exitPid, int exitStatus) { dprintf (D_ALWAYS, "MyProxyGetDelegationReaper pid = %d, rc = %d\n", exitPid, exitStatus); credentials.Rewind(); CredentialWrapper * cred_wrapper; X509CredentialWrapper * matched_entry = NULL; while (credentials.Next (cred_wrapper)) { ...
@@ -263,7 +263,7 @@ get_cred_handler(Service * /*service*/, int /*i*/, Stream *stream) { *pColon = '\0'; // Name is the second part - sprintf (name, (char*)(pColon+sizeof(char))); + sprintf (name, "%s", (char*)(pColon+sizeof(char))); if (strcmp (owner, user) != 0) { dprintf (D_ALW...
CWE-134
null
null
12,924
int RefreshProxyThruMyProxy(X509CredentialWrapper * proxy) { const char * proxy_filename = proxy->GetStorageName(); char * myproxy_host = NULL; int status; if (((X509Credential*)proxy->cred)->GetMyProxyServerHost() == NULL) { dprintf (D_ALWAYS, "Skipping %s\n", proxy->cred->GetName()); return FALSE; ...
DoS Exec Code
0
int RefreshProxyThruMyProxy(X509CredentialWrapper * proxy) { const char * proxy_filename = proxy->GetStorageName(); char * myproxy_host = NULL; int status; if (((X509Credential*)proxy->cred)->GetMyProxyServerHost() == NULL) { dprintf (D_ALWAYS, "Skipping %s\n", proxy->cred->GetName()); return FALSE; ...
@@ -263,7 +263,7 @@ get_cred_handler(Service * /*service*/, int /*i*/, Stream *stream) { *pColon = '\0'; // Name is the second part - sprintf (name, (char*)(pColon+sizeof(char))); + sprintf (name, "%s", (char*)(pColon+sizeof(char))); if (strcmp (owner, user) != 0) { dprintf (D_ALW...
CWE-134
null
null
12,925
StoreData (const char * file_name, const void * data, const int data_size) { if (!data) { return FALSE; } priv_state priv = set_root_priv(); dprintf (D_FULLDEBUG, "in StoreData(), euid=%d\n", geteuid()); int fd = safe_open_wrapper_follow(file_name, O_WRONLY | O_CREAT | O_TRUNC, 0600 ); if (fd == -1)...
DoS Exec Code
0
StoreData (const char * file_name, const void * data, const int data_size) { if (!data) { return FALSE; } priv_state priv = set_root_priv(); dprintf (D_FULLDEBUG, "in StoreData(), euid=%d\n", geteuid()); int fd = safe_open_wrapper_follow(file_name, O_WRONLY | O_CREAT | O_TRUNC, 0600 ); if (fd == -1)...
@@ -263,7 +263,7 @@ get_cred_handler(Service * /*service*/, int /*i*/, Stream *stream) { *pColon = '\0'; // Name is the second part - sprintf (name, (char*)(pColon+sizeof(char))); + sprintf (name, "%s", (char*)(pColon+sizeof(char))); if (strcmp (owner, user) != 0) { dprintf (D_ALW...
CWE-134
null
null
12,926
init_user_id_from_FQN (const char * _fqn) { char * uid = NULL; char * domain = NULL; char * fqn = NULL; char default_uid [] = "nobody"; if (_fqn) { fqn = strdup (_fqn); uid = fqn; char * pAt = strchr (fqn, '@'); if (pAt) { *pAt='\0'; domain = pAt+1; } } if (uid == NUL...
DoS Exec Code
0
init_user_id_from_FQN (const char * _fqn) { char * uid = NULL; char * domain = NULL; char * fqn = NULL; char default_uid [] = "nobody"; if (_fqn) { fqn = strdup (_fqn); uid = fqn; char * pAt = strchr (fqn, '@'); if (pAt) { *pAt='\0'; domain = pAt+1; } } if (uid == NUL...
@@ -263,7 +263,7 @@ get_cred_handler(Service * /*service*/, int /*i*/, Stream *stream) { *pColon = '\0'; // Name is the second part - sprintf (name, (char*)(pColon+sizeof(char))); + sprintf (name, "%s", (char*)(pColon+sizeof(char))); if (strcmp (owner, user) != 0) { dprintf (D_ALW...
CWE-134
null
null
12,927
isSuperUser( const char* user ) { if( ! (user)) { return false; } super_users.rewind(); char * next; while ((next = super_users.next())) { if (strcmp (user, next ) == 0) { return true; } } return false; }
DoS Exec Code
0
isSuperUser( const char* user ) { if( ! (user)) { return false; } super_users.rewind(); char * next; while ((next = super_users.next())) { if (strcmp (user, next ) == 0) { return true; } } return false; }
@@ -263,7 +263,7 @@ get_cred_handler(Service * /*service*/, int /*i*/, Stream *stream) { *pColon = '\0'; // Name is the second part - sprintf (name, (char*)(pColon+sizeof(char))); + sprintf (name, "%s", (char*)(pColon+sizeof(char))); if (strcmp (owner, user) != 0) { dprintf (D_ALW...
CWE-134
null
null
12,928
store_cred_handler(Service * /*service*/, int /*i*/, Stream *stream) { void * data = NULL; int rtnVal = FALSE; int rc; char * temp_file_name = NULL; bool found_cred; CredentialWrapper * temp_cred = NULL; int data_size = -1; classad::ClassAd * _classad = NULL; classad::ClassAd classad; std::string cl...
DoS Exec Code
0
store_cred_handler(Service * /*service*/, int /*i*/, Stream *stream) { void * data = NULL; int rtnVal = FALSE; int rc; char * temp_file_name = NULL; bool found_cred; CredentialWrapper * temp_cred = NULL; int data_size = -1; classad::ClassAd * _classad = NULL; classad::ClassAd classad; std::string cl...
@@ -263,7 +263,7 @@ get_cred_handler(Service * /*service*/, int /*i*/, Stream *stream) { *pColon = '\0'; // Name is the second part - sprintf (name, (char*)(pColon+sizeof(char))); + sprintf (name, "%s", (char*)(pColon+sizeof(char))); if (strcmp (owner, user) != 0) { dprintf (D_ALW...
CWE-134
null
null
12,929
GahpServer::AddGahpClient() { m_reference_count++; if ( m_deleteMeTid != TIMER_UNSET ) { daemonCore->Cancel_Timer( m_deleteMeTid ); m_deleteMeTid = TIMER_UNSET; } }
DoS Exec Code
0
GahpServer::AddGahpClient() { m_reference_count++; if ( m_deleteMeTid != TIMER_UNSET ) { daemonCore->Cancel_Timer( m_deleteMeTid ); m_deleteMeTid = TIMER_UNSET; } }
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,930
GahpServer::DeleteMe() { m_deleteMeTid = TIMER_UNSET; if ( m_reference_count <= 0 ) { delete this; } }
DoS Exec Code
0
GahpServer::DeleteMe() { m_deleteMeTid = TIMER_UNSET; if ( m_reference_count <= 0 ) { delete this; } }
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,931
void GahpReconfig() { int tmp_int; logGahpIo = param_boolean( "GRIDMANAGER_GAHPCLIENT_DEBUG", true ); logGahpIoSize = param_integer( "GRIDMANAGER_GAHPCLIENT_DEBUG_SIZE", 0 ); useXMLClassads = param_boolean( "GAHP_USE_XML_CLASSADS", false ); tmp_int = param_integer( "GRIDMANAGER_MAX_PENDING_REQUESTS", 50 ); Ga...
DoS Exec Code
0
void GahpReconfig() { int tmp_int; logGahpIo = param_boolean( "GRIDMANAGER_GAHPCLIENT_DEBUG", true ); logGahpIoSize = param_integer( "GRIDMANAGER_GAHPCLIENT_DEBUG_SIZE", 0 ); useXMLClassads = param_boolean( "GAHP_USE_XML_CLASSADS", false ); tmp_int = param_integer( "GRIDMANAGER_MAX_PENDING_REQUESTS", 50 ); Ga...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,932
GahpServer::GahpServer(const char *id, const char *path, const ArgList *args) { m_gahp_pid = -1; m_gahp_startup_failed = false; m_gahp_readfd = -1; m_gahp_writefd = -1; m_gahp_errorfd = -1; m_gahp_error_buffer = ""; m_reference_count = 0; m_commands_supported = NULL; m_pollInterval = 5; poll_tid = -1; max_pe...
DoS Exec Code
0
GahpServer::GahpServer(const char *id, const char *path, const ArgList *args) { m_gahp_pid = -1; m_gahp_startup_failed = false; m_gahp_readfd = -1; m_gahp_writefd = -1; m_gahp_errorfd = -1; m_gahp_error_buffer = ""; m_reference_count = 0; m_commands_supported = NULL; m_pollInterval = 5; poll_tid = -1; max_pe...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,933
GahpClient::Initialize(Proxy *proxy) { return server->Initialize(proxy); }
DoS Exec Code
0
GahpClient::Initialize(Proxy *proxy) { return server->Initialize(proxy); }
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,934
GahpServer::Initialize( Proxy *proxy ) { if ( is_initialized == true ) { return true; } if ( m_gahp_pid == -1 ) { if ( Startup() == false ) { return false; } } master_proxy = new GahpProxyInfo; master_proxy->proxy = proxy->subject->master_proxy; AcquireProxy( master_proxy->proxy, (TimerHandlercpp)&Gah...
DoS Exec Code
0
GahpServer::Initialize( Proxy *proxy ) { if ( is_initialized == true ) { return true; } if ( m_gahp_pid == -1 ) { if ( Startup() == false ) { return false; } } master_proxy = new GahpProxyInfo; master_proxy->proxy = proxy->subject->master_proxy; AcquireProxy( master_proxy->proxy, (TimerHandlercpp)&Gah...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,935
GahpServer::ProxyCallback() { if ( m_gahp_pid > 0 ) { proxy_check_tid = daemonCore->Register_Timer( 0, (TimerHandlercpp)&GahpServer::doProxyCheck, "GahpServer::doProxyCheck", (Service*)this ); } return 0; }
DoS Exec Code
0
GahpServer::ProxyCallback() { if ( m_gahp_pid > 0 ) { proxy_check_tid = daemonCore->Register_Timer( 0, (TimerHandlercpp)&GahpServer::doProxyCheck, "GahpServer::doProxyCheck", (Service*)this ); } return 0; }
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,936
GahpClient::Startup() { return server->Startup(); }
DoS Exec Code
0
GahpClient::Startup() { return server->Startup(); }
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,937
GahpServer::Startup() { char *gahp_path = NULL; ArgList gahp_args; int stdin_pipefds[2]; int stdout_pipefds[2]; int stderr_pipefds[2]; int low_port; int high_port; Env newenv; char *tmp_char; if ( m_gahp_startup_failed ) { return false; } else if ( m_gahp_pid != -1 ) { return true; } if ( binary_path...
DoS Exec Code
0
GahpServer::Startup() { char *gahp_path = NULL; ArgList gahp_args; int stdin_pipefds[2]; int stdout_pipefds[2]; int stderr_pipefds[2]; int low_port; int high_port; Env newenv; char *tmp_char; if ( m_gahp_startup_failed ) { return false; } else if ( m_gahp_pid != -1 ) { return true; } if ( binary_path...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,938
GahpServer::UnregisterProxy( Proxy *proxy ) { int rc; GahpProxyInfo *gahp_proxy = NULL; if ( ProxiesByFilename == NULL || proxy == NULL || can_cache_proxies == false ) { return; } if ( master_proxy != NULL && proxy == master_proxy->proxy ) { master_proxy->num_references--; return; } rc = ProxiesByFi...
DoS Exec Code
0
GahpServer::UnregisterProxy( Proxy *proxy ) { int rc; GahpProxyInfo *gahp_proxy = NULL; if ( ProxiesByFilename == NULL || proxy == NULL || can_cache_proxies == false ) { return; } if ( master_proxy != NULL && proxy == master_proxy->proxy ) { master_proxy->num_references--; return; } rc = ProxiesByFi...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,939
GahpClient::blah_job_cancel(const char *job_id) { static const char* command = "BLAH_JOB_CANCEL"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!job_id) job_id=NULLSTRING; std::string reqline; int x = sprintf( reqline, "%s", escapeGahpStr...
DoS Exec Code
0
GahpClient::blah_job_cancel(const char *job_id) { static const char* command = "BLAH_JOB_CANCEL"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!job_id) job_id=NULLSTRING; std::string reqline; int x = sprintf( reqline, "%s", escapeGahpStr...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,940
GahpClient::blah_job_status(const char *job_id, ClassAd **status_ad) { static const char* command = "BLAH_JOB_STATUS"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!job_id) job_id=NULLSTRING; std::string reqline; int x = sprintf( reqline...
DoS Exec Code
0
GahpClient::blah_job_status(const char *job_id, ClassAd **status_ad) { static const char* command = "BLAH_JOB_STATUS"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!job_id) job_id=NULLSTRING; std::string reqline; int x = sprintf( reqline...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,941
GahpServer::buffered_peek() { return m_buffer_end - m_buffer_pos; }
DoS Exec Code
0
GahpServer::buffered_peek() { return m_buffer_end - m_buffer_pos; }
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,942
GahpServer::buffered_read( int fd, void *buf, int count ) { ASSERT(fd == m_gahp_readfd); ASSERT(count == 1); if ( m_buffer_pos >= m_buffer_end ) { int dummy_pipe = -1; err_pipe_ready(dummy_pipe); int rc = daemonCore->Read_Pipe(fd, m_buffer, m_buffer_size ); m_buffer_pos = 0; if ( rc <= 0 ) { m_buffer_e...
DoS Exec Code
0
GahpServer::buffered_read( int fd, void *buf, int count ) { ASSERT(fd == m_gahp_readfd); ASSERT(count == 1); if ( m_buffer_pos >= m_buffer_end ) { int dummy_pipe = -1; err_pipe_ready(dummy_pipe); int rc = daemonCore->Read_Pipe(fd, m_buffer, m_buffer_size ); m_buffer_pos = 0; if ( rc <= 0 ) { m_buffer_e...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,943
GahpClient::check_pending_timeout(const char *,const char *) { if ( pending_reqid == 0 ) { return false; } if ( pending_submitted_to_gahp == false ) { return false; } if ( pending_timeout && (time(NULL) > pending_timeout) ) { clear_pending(); // we no longer want to hear about it... return true; } re...
DoS Exec Code
0
GahpClient::check_pending_timeout(const char *,const char *) { if ( pending_reqid == 0 ) { return false; } if ( pending_submitted_to_gahp == false ) { return false; } if ( pending_timeout && (time(NULL) > pending_timeout) ) { clear_pending(); // we no longer want to hear about it... return true; } re...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,944
GahpClient::clear_pending() { if ( pending_reqid ) { if (server->requestTable->remove(pending_reqid) == 0) { server->requestTable->insert(pending_reqid,NULL); } } pending_reqid = 0; if (pending_result) delete pending_result; pending_result = NULL; free(pending_command); pending_command = NULL; if (pendin...
DoS Exec Code
0
GahpClient::clear_pending() { if ( pending_reqid ) { if (server->requestTable->remove(pending_reqid) == 0) { server->requestTable->insert(pending_reqid,NULL); } } pending_reqid = 0; if (pending_result) delete pending_result; pending_result = NULL; free(pending_command); pending_command = NULL; if (pendin...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,945
GahpServer::command_async_mode_on() { static const char* command = "ASYNC_MODE_ON"; if (m_commands_supported->contains_anycase(command)==FALSE) { return false; } write_line(command); Gahp_Args result; read_argv(result); if ( result.argc == 0 || result.argv[0][0] != 'S' ) { dprintf(D_ALWAYS,"GAHP command '...
DoS Exec Code
0
GahpServer::command_async_mode_on() { static const char* command = "ASYNC_MODE_ON"; if (m_commands_supported->contains_anycase(command)==FALSE) { return false; } write_line(command); Gahp_Args result; read_argv(result); if ( result.argc == 0 || result.argv[0][0] != 'S' ) { dprintf(D_ALWAYS,"GAHP command '...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,946
GahpServer::command_cache_proxy_from_file( GahpProxyInfo *new_proxy ) { static const char *command = "CACHE_PROXY_FROM_FILE"; ASSERT(new_proxy); // Gotta have it... if (m_commands_supported->contains_anycase(command)==FALSE) { return false; } std::string buf; int x = sprintf(buf,"%s %d %s",command,new_prox...
DoS Exec Code
0
GahpServer::command_cache_proxy_from_file( GahpProxyInfo *new_proxy ) { static const char *command = "CACHE_PROXY_FROM_FILE"; ASSERT(new_proxy); // Gotta have it... if (m_commands_supported->contains_anycase(command)==FALSE) { return false; } std::string buf; int x = sprintf(buf,"%s %d %s",command,new_prox...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,947
GahpServer::command_commands() { write_line("COMMANDS"); Gahp_Args result; read_argv(result); if ( result.argc == 0 || result.argv[0][0] != 'S' ) { dprintf(D_ALWAYS,"GAHP command 'COMMANDS' failed\n"); return false; } if ( m_commands_supported ) { delete m_commands_supported; m_commands_supported = NULL;...
DoS Exec Code
0
GahpServer::command_commands() { write_line("COMMANDS"); Gahp_Args result; read_argv(result); if ( result.argc == 0 || result.argv[0][0] != 'S' ) { dprintf(D_ALWAYS,"GAHP command 'COMMANDS' failed\n"); return false; } if ( m_commands_supported ) { delete m_commands_supported; m_commands_supported = NULL;...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,948
GahpServer::command_initialize_from_file(const char *proxy_path, const char *command) { ASSERT(proxy_path); // Gotta have it... std::string buf; if ( command == NULL ) { command = "INITIALIZE_FROM_FILE"; } int x = sprintf(buf,"%s %s",command, escapeGahpString(proxy_path)); ASSERT( x > 0 ); ...
DoS Exec Code
0
GahpServer::command_initialize_from_file(const char *proxy_path, const char *command) { ASSERT(proxy_path); // Gotta have it... std::string buf; if ( command == NULL ) { command = "INITIALIZE_FROM_FILE"; } int x = sprintf(buf,"%s %s",command, escapeGahpString(proxy_path)); ASSERT( x > 0 ); ...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,949
GahpServer::command_version() { int i,j,result; bool ret_val = false; j = sizeof(m_gahp_version); i = 0; while ( i < j ) { result = buffered_read(m_gahp_readfd, &(m_gahp_version[i]), 1 ); /* Check return value from read() */ if ( result < 0 ) { /* Error - try reading again */ continue; } if ( result...
DoS Exec Code
0
GahpServer::command_version() { int i,j,result; bool ret_val = false; j = sizeof(m_gahp_version); i = 0; while ( i < j ) { result = buffered_read(m_gahp_readfd, &(m_gahp_version[i]), 1 ); /* Check return value from read() */ if ( result < 0 ) { /* Error - try reading again */ continue; } if ( result...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,950
GahpClient::condor_job_refresh_proxy(const char *schedd_name, PROC_ID job_id, const char *proxy_file) { static const char* command = "CONDOR_JOB_REFRESH_PROXY"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!schedd_name) schedd_na...
DoS Exec Code
0
GahpClient::condor_job_refresh_proxy(const char *schedd_name, PROC_ID job_id, const char *proxy_file) { static const char* command = "CONDOR_JOB_REFRESH_PROXY"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!schedd_name) schedd_na...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,951
GahpClient::condor_job_release(const char *schedd_name, PROC_ID job_id, const char *reason) { static const char* command = "CONDOR_JOB_RELEASE"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!schedd_name) schedd_name=NULLSTRING; ...
DoS Exec Code
0
GahpClient::condor_job_release(const char *schedd_name, PROC_ID job_id, const char *reason) { static const char* command = "CONDOR_JOB_RELEASE"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!schedd_name) schedd_name=NULLSTRING; ...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,952
GahpClient::condor_job_remove(const char *schedd_name, PROC_ID job_id, const char *reason) { static const char* command = "CONDOR_JOB_REMOVE"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!schedd_name) schedd_name=NULLSTRING; if ...
DoS Exec Code
0
GahpClient::condor_job_remove(const char *schedd_name, PROC_ID job_id, const char *reason) { static const char* command = "CONDOR_JOB_REMOVE"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!schedd_name) schedd_name=NULLSTRING; if ...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,953
GahpClient::condor_job_stage_in(const char *schedd_name, ClassAd *job_ad) { static const char* command = "CONDOR_JOB_STAGE_IN"; MyString ad_string; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!schedd_name) schedd_name=NULLSTRING; if (!...
DoS Exec Code
0
GahpClient::condor_job_stage_in(const char *schedd_name, ClassAd *job_ad) { static const char* command = "CONDOR_JOB_STAGE_IN"; MyString ad_string; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!schedd_name) schedd_name=NULLSTRING; if (!...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,954
GahpClient::condor_job_stage_out(const char *schedd_name, PROC_ID job_id) { static const char* command = "CONDOR_JOB_STAGE_OUT"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!schedd_name) schedd_name=NULLSTRING; std::string reqline; char...
DoS Exec Code
0
GahpClient::condor_job_stage_out(const char *schedd_name, PROC_ID job_id) { static const char* command = "CONDOR_JOB_STAGE_OUT"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!schedd_name) schedd_name=NULLSTRING; std::string reqline; char...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,955
GahpClient::condor_job_status_constrained(const char *schedd_name, const char *constraint, int *num_ads, ClassAd ***ads) { static const char* command = "CONDOR_JOB_STATUS_CONSTRAINED"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPO...
DoS Exec Code
0
GahpClient::condor_job_status_constrained(const char *schedd_name, const char *constraint, int *num_ads, ClassAd ***ads) { static const char* command = "CONDOR_JOB_STATUS_CONSTRAINED"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPO...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,956
GahpClient::condor_job_update(const char *schedd_name, PROC_ID job_id, ClassAd *update_ad) { static const char* command = "CONDOR_JOB_UPDATE"; MyString ad_string; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!schedd_name) schedd...
DoS Exec Code
0
GahpClient::condor_job_update(const char *schedd_name, PROC_ID job_id, ClassAd *update_ad) { static const char* command = "CONDOR_JOB_UPDATE"; MyString ad_string; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!schedd_name) schedd...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,957
GahpClient::condor_job_update_constrained(const char *schedd_name, const char *constraint, ClassAd *update_ad) { static const char* command = "CONDOR_JOB_UPDATE_CONSTRAINED"; MyString ad_string; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMA...
DoS Exec Code
0
GahpClient::condor_job_update_constrained(const char *schedd_name, const char *constraint, ClassAd *update_ad) { static const char* command = "CONDOR_JOB_UPDATE_CONSTRAINED"; MyString ad_string; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMA...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,958
GahpClient::condor_job_update_lease(const char *schedd_name, const SimpleList<PROC_ID> &jobs, const SimpleList<int> &expirations, SimpleList<PROC_ID> &updated ) { static const char* command = "CONDOR_JOB_UPDATE_LEASE"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { ...
DoS Exec Code
0
GahpClient::condor_job_update_lease(const char *schedd_name, const SimpleList<PROC_ID> &jobs, const SimpleList<int> &expirations, SimpleList<PROC_ID> &updated ) { static const char* command = "CONDOR_JOB_UPDATE_LEASE"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { ...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,959
GahpClient::cream_delegate(const char *delg_service, const char *delg_id) { static const char* command = "CREAM_DELEGATE"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!delg_service) delg_service=NULLSTRING; if (!delg_id) delg_id=NULLSTRI...
DoS Exec Code
0
GahpClient::cream_delegate(const char *delg_service, const char *delg_id) { static const char* command = "CREAM_DELEGATE"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!delg_service) delg_service=NULLSTRING; if (!delg_id) delg_id=NULLSTRI...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,960
GahpClient::cream_job_purge(const char *service, const char *job_id) { static const char* command = "CREAM_JOB_PURGE"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!service) service=NULLSTRING; if (!job_id) job_id=NULLSTRING; std::string...
DoS Exec Code
0
GahpClient::cream_job_purge(const char *service, const char *job_id) { static const char* command = "CREAM_JOB_PURGE"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!service) service=NULLSTRING; if (!job_id) job_id=NULLSTRING; std::string...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,961
GahpClient::cream_job_register(const char *service, const char *delg_id, const char *jdl, const char *lease_id, char **job_id, char **upload_url, char **download_url) { static const char* command = "CREAM_JOB_REGISTER"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCL...
DoS Exec Code
0
GahpClient::cream_job_register(const char *service, const char *delg_id, const char *jdl, const char *lease_id, char **job_id, char **upload_url, char **download_url) { static const char* command = "CREAM_JOB_REGISTER"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCL...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,962
GahpClient::cream_job_status(const char *service, const char *job_id, char **job_status, int *exit_code, char **failure_reason) { static const char* command = "CREAM_JOB_STATUS"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!serv...
DoS Exec Code
0
GahpClient::cream_job_status(const char *service, const char *job_id, char **job_status, int *exit_code, char **failure_reason) { static const char* command = "CREAM_JOB_STATUS"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!serv...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,963
GahpClient::cream_job_status_all(const char *service, GahpClient::CreamJobStatusMap & results) { static const char* command = "CREAM_JOB_STATUS"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } std::string reqline; char *esc1 = strdup( escape...
DoS Exec Code
0
GahpClient::cream_job_status_all(const char *service, GahpClient::CreamJobStatusMap & results) { static const char* command = "CREAM_JOB_STATUS"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } std::string reqline; char *esc1 = strdup( escape...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,964
GahpClient::cream_job_suspend(const char *service, const char *job_id) { static const char* command = "CREAM_JOB_SUSPEND"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!service) service=NULLSTRING; if (!job_id) job_id=NULLSTRING; std::st...
DoS Exec Code
0
GahpClient::cream_job_suspend(const char *service, const char *job_id) { static const char* command = "CREAM_JOB_SUSPEND"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!service) service=NULLSTRING; if (!job_id) job_id=NULLSTRING; std::st...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,965
GahpClient::cream_ping(const char * service) { static const char* command = "CREAM_PING"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!service) service=NULLSTRING; std::string reqline; int x = sprintf(reqline,"%s",escapeGahpString(serv...
DoS Exec Code
0
GahpClient::cream_ping(const char * service) { static const char* command = "CREAM_PING"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!service) service=NULLSTRING; std::string reqline; int x = sprintf(reqline,"%s",escapeGahpString(serv...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,966
GahpClient::cream_set_lease(const char *service, const char *lease_id, time_t &lease_expiry) { static const char* command = "CREAM_SET_LEASE"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!service) service=NULLSTRING; if (!lease_id) lease_...
DoS Exec Code
0
GahpClient::cream_set_lease(const char *service, const char *lease_id, time_t &lease_expiry) { static const char* command = "CREAM_SET_LEASE"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!service) service=NULLSTRING; if (!lease_id) lease_...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,967
int GahpClient::dcloud_action( const char *service_url, const char *username, const char *password, const char *instance_id, const char *action ) { static const char* command = "DELTACLOUD_VM_ACTION"; if ( server->m_commands_supported->contains_anycase( command ) == FALSE ) { ...
DoS Exec Code
0
int GahpClient::dcloud_action( const char *service_url, const char *username, const char *password, const char *instance_id, const char *action ) { static const char* command = "DELTACLOUD_VM_ACTION"; if ( server->m_commands_supported->contains_anycase( command ) == FALSE ) { ...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,968
int GahpClient::dcloud_find( const char *service_url, const char *username, const char *password, const char *instance_name, char **instance_id ) { static const char* command = "DELTACLOUD_VM_FIND"; if ( server->m_commands_supported->contains_anycase( command ) == FALSE ) { return G...
DoS Exec Code
0
int GahpClient::dcloud_find( const char *service_url, const char *username, const char *password, const char *instance_name, char **instance_id ) { static const char* command = "DELTACLOUD_VM_FIND"; if ( server->m_commands_supported->contains_anycase( command ) == FALSE ) { return G...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,969
int GahpClient::dcloud_start_auto( const char *service_url, const char *username, const char *password, bool *autostart ) { static const char* command = "DELTACLOUD_START_AUTO"; if ( server->m_commands_supported->contains_anycase( command ) == FALSE ) { return GAHPCLIENT_COMMAND_NO...
DoS Exec Code
0
int GahpClient::dcloud_start_auto( const char *service_url, const char *username, const char *password, bool *autostart ) { static const char* command = "DELTACLOUD_START_AUTO"; if ( server->m_commands_supported->contains_anycase( command ) == FALSE ) { return GAHPCLIENT_COMMAND_NO...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,970
int GahpClient::dcloud_status_all( const char *service_url, const char *username, const char *password, StringList &instance_ids, StringList &statuses ) { static const char* command = "DELTACLOUD_VM_STATUS_ALL"; if ( server->m_commands_supported->contains_anycase( command ...
DoS Exec Code
0
int GahpClient::dcloud_status_all( const char *service_url, const char *username, const char *password, StringList &instance_ids, StringList &statuses ) { static const char* command = "DELTACLOUD_VM_STATUS_ALL"; if ( server->m_commands_supported->contains_anycase( command ...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,971
int GahpClient::dcloud_submit( const char *service_url, const char *username, const char *password, const char *image_id, const char *instance_name, const char *realm_id, const char *hwp_id, const char *hwp_memory, const char *hwp_cpu, ...
DoS Exec Code
0
int GahpClient::dcloud_submit( const char *service_url, const char *username, const char *password, const char *image_id, const char *instance_name, const char *realm_id, const char *hwp_id, const char *hwp_memory, const char *hwp_cpu, ...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,972
GahpServer::doProxyCheck() { proxy_check_tid = TIMER_UNSET; if ( m_gahp_pid == -1 ) { return; } GahpProxyInfo *next_proxy; if ( ProxiesByFilename ) { ProxiesByFilename->startIterations(); while ( ProxiesByFilename->iterate( next_proxy ) != 0 ) { if ( next_proxy->proxy->expiration_time > next_prox...
DoS Exec Code
0
GahpServer::doProxyCheck() { proxy_check_tid = TIMER_UNSET; if ( m_gahp_pid == -1 ) { return; } GahpProxyInfo *next_proxy; if ( ProxiesByFilename ) { ProxiesByFilename->startIterations(); while ( ProxiesByFilename->iterate( next_proxy ) != 0 ) { if ( next_proxy->proxy->expiration_time > next_prox...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,973
int GahpClient::ec2_associate_address(const char * service_url, const char * publickeyfile, const char * privatekeyfile, const char * instance_id, const char * elastic...
DoS Exec Code
0
int GahpClient::ec2_associate_address(const char * service_url, const char * publickeyfile, const char * privatekeyfile, const char * instance_id, const char * elastic...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,974
int GahpClient::ec2_attach_volume(const char * service_url, const char * publickeyfile, const char * privatekeyfile, const char * volume_id, const char * instance_id, const char * device_id,...
DoS Exec Code
0
int GahpClient::ec2_attach_volume(const char * service_url, const char * publickeyfile, const char * privatekeyfile, const char * volume_id, const char * instance_id, const char * device_id,...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,975
int GahpClient::ec2_ping(const char *service_url, const char * publickeyfile, const char * privatekeyfile) { static const char* command = "EC2_VM_STATUS_ALL"; char* esc1 = strdup( escapeGahpString(service_url) ); char* esc2 = strdup( escapeGahpString(publickeyfile) ); char* esc3 = strdup( escapeGahpString(private...
DoS Exec Code
0
int GahpClient::ec2_ping(const char *service_url, const char * publickeyfile, const char * privatekeyfile) { static const char* command = "EC2_VM_STATUS_ALL"; char* esc1 = strdup( escapeGahpString(service_url) ); char* esc2 = strdup( escapeGahpString(publickeyfile) ); char* esc3 = strdup( escapeGahpString(private...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,976
int GahpClient::ec2_vm_start( const char * service_url, const char * publickeyfile, const char * privatekeyfile, const char * ami_id, const char * keypair, const char * user_data, const char * user_data_file, const char * instance_type, const char...
DoS Exec Code
0
int GahpClient::ec2_vm_start( const char * service_url, const char * publickeyfile, const char * privatekeyfile, const char * ami_id, const char * keypair, const char * user_data, const char * user_data_file, const char * instance_type, const char...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,977
int GahpClient::ec2_vm_status( const char *service_url, const char * publickeyfile, const char * privatekeyfile, const char * instance_id, StringList &returnStatus, char* & error_code ) { static const char* command = "EC2_VM_STATUS"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { ...
DoS Exec Code
0
int GahpClient::ec2_vm_status( const char *service_url, const char * publickeyfile, const char * privatekeyfile, const char * instance_id, StringList &returnStatus, char* & error_code ) { static const char* command = "EC2_VM_STATUS"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { ...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,978
int GahpClient::ec2_vm_vm_keypair_all( const char *service_url, const char* publickeyfile, const char* privatekeyfile, StringList & returnStatus, char* & error_code ) { static const char* command = "EC2_VM_RUNNING_KEYPAIR"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return ...
DoS Exec Code
0
int GahpClient::ec2_vm_vm_keypair_all( const char *service_url, const char* publickeyfile, const char* privatekeyfile, StringList & returnStatus, char* & error_code ) { static const char* command = "EC2_VM_RUNNING_KEYPAIR"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return ...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,979
GahpServer::err_pipe_ready(int /*pipe_end*/) { int count = 0; char buff[5001]; buff[0] = '\0'; while (((count = (daemonCore->Read_Pipe(m_gahp_errorfd, &buff, 5000))))>0) { char *prev_line = buff; char *newline = buff - 1; buff[count]='\0'; while ( (newline = strchr( newline + 1, '\n' ) ) != NULL ) { ...
DoS Exec Code
0
GahpServer::err_pipe_ready(int /*pipe_end*/) { int count = 0; char buff[5001]; buff[0] = '\0'; while (((count = (daemonCore->Read_Pipe(m_gahp_errorfd, &buff, 5000))))>0) { char *prev_line = buff; char *newline = buff - 1; buff[count]='\0'; while ( (newline = strchr( newline + 1, '\n' ) ) != NULL ) { ...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,980
escapeGahpString(const char * input) { static std::string output; if (!input) return NULL; output = ""; unsigned int i = 0; size_t input_len = strlen(input); for (i=0; i < input_len; i++) { if ( input[i] == ' ' || input[i] == '\\' || input[i] == '\r' || input[i] == '\n' ) { output += '\\'; } outp...
DoS Exec Code
0
escapeGahpString(const char * input) { static std::string output; if (!input) return NULL; output = ""; unsigned int i = 0; size_t input_len = strlen(input); for (i=0; i < input_len; i++) { if ( input[i] == ' ' || input[i] == '\\' || input[i] == '\r' || input[i] == '\n' ) { output += '\\'; } outp...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,981
GahpClient::getErrorString() { static std::string output; output = ""; unsigned int i = 0; unsigned int input_len = error_string.length(); for (i=0; i < input_len; i++) { switch (error_string[i]) { case '\n': output += "\\n"; break; case '\r': output += "\\r"; break; default: output += err...
DoS Exec Code
0
GahpClient::getErrorString() { static std::string output; output = ""; unsigned int i = 0; unsigned int input_len = error_string.length(); for (i=0; i < input_len; i++) { switch (error_string[i]) { case '\n': output += "\\n"; break; case '\r': output += "\\r"; break; default: output += err...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,982
GahpClient::getMasterProxy() { return server->master_proxy->proxy; }
DoS Exec Code
0
GahpClient::getMasterProxy() { return server->master_proxy->proxy; }
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,983
GahpServer::getPollInterval() { return m_pollInterval; }
DoS Exec Code
0
GahpServer::getPollInterval() { return m_pollInterval; }
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,984
GahpClient::getVersion() { return server->m_gahp_version; }
DoS Exec Code
0
GahpClient::getVersion() { return server->m_gahp_version; }
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,985
GahpClient::get_pending_result(const char *,const char *) { Gahp_Args* r = NULL; if ( (m_mode == blocking) && (!pending_result) ) { for (;;) { server->poll(); if ( pending_result ) { break; } if ( pending_timeout && (time(NULL) > pending_timeout) ) { break; } sleep(1); // block for one se...
DoS Exec Code
0
GahpClient::get_pending_result(const char *,const char *) { Gahp_Args* r = NULL; if ( (m_mode == blocking) && (!pending_result) ) { for (;;) { server->poll(); if ( pending_result ) { break; } if ( pending_timeout && (time(NULL) > pending_timeout) ) { break; } sleep(1); // block for one se...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,986
GahpClient::globus_gass_server_superez_init( char **gass_url, int port ) { static const char* command = "GASS_SERVER_INIT"; if ( server->globus_gass_server_url != NULL ) { *gass_url = strdup( server->globus_gass_server_url ); return 0; } if (server->m_commands_supported->contains_anycase(command)==FALSE) { ...
DoS Exec Code
0
GahpClient::globus_gass_server_superez_init( char **gass_url, int port ) { static const char* command = "GASS_SERVER_INIT"; if ( server->globus_gass_server_url != NULL ) { *gass_url = strdup( server->globus_gass_server_url ); return 0; } if (server->m_commands_supported->contains_anycase(command)==FALSE) { ...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,987
GahpClient::globus_gram_client_callback_allow( globus_gram_client_callback_func_t callback_func, void * user_callback_arg, char ** callback_contact) { char buf[150]; static const char* command = "GRAM_CALLBACK_ALLOW"; if (callback_contact) { *callback_contact = NULL; } if ( server->globus_gt2_gram_callback_c...
DoS Exec Code
0
GahpClient::globus_gram_client_callback_allow( globus_gram_client_callback_func_t callback_func, void * user_callback_arg, char ** callback_contact) { char buf[150]; static const char* command = "GRAM_CALLBACK_ALLOW"; if (callback_contact) { *callback_contact = NULL; } if ( server->globus_gt2_gram_callback_c...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,988
GahpClient::globus_gram_client_error_string(int error_code) { static char buf[200]; static const char* command = "GRAM_ERROR_STRING"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { strcpy(buf,"Unknown error"); return buf; } int x = snprintf(buf,sizeof(buf),"%s %d",command,error_code);...
DoS Exec Code
0
GahpClient::globus_gram_client_error_string(int error_code) { static char buf[200]; static const char* command = "GRAM_ERROR_STRING"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { strcpy(buf,"Unknown error"); return buf; } int x = snprintf(buf,sizeof(buf),"%s %d",command,error_code);...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,989
GahpClient::globus_gram_client_get_jobmanager_version(const char * resource_contact) { static const char* command = "GRAM_GET_JOBMANAGER_VERSION"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!resource_contact) resource_contact=NULLSTRING;...
DoS Exec Code
0
GahpClient::globus_gram_client_get_jobmanager_version(const char * resource_contact) { static const char* command = "GRAM_GET_JOBMANAGER_VERSION"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!resource_contact) resource_contact=NULLSTRING;...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,990
GahpClient::globus_gram_client_job_refresh_credentials(const char *job_contact, int limited_deleg) { static const char* command = "GRAM_JOB_REFRESH_PROXY"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!job_contact) job_cont...
DoS Exec Code
0
GahpClient::globus_gram_client_job_refresh_credentials(const char *job_contact, int limited_deleg) { static const char* command = "GRAM_JOB_REFRESH_PROXY"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!job_contact) job_cont...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,991
GahpClient::globus_gram_client_job_request( const char * resource_manager_contact, const char * description, const int limited_deleg, const char * callback_contact, char ** job_contact) { static const char* command = "GRAM_JOB_REQUEST"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { r...
DoS Exec Code
0
GahpClient::globus_gram_client_job_request( const char * resource_manager_contact, const char * description, const int limited_deleg, const char * callback_contact, char ** job_contact) { static const char* command = "GRAM_JOB_REQUEST"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { r...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,992
GahpClient::globus_gram_client_job_signal(const char * job_contact, globus_gram_protocol_job_signal_t signal, const char * signal_arg, int * job_status, int * failure_code) { static const char* command = "GRAM_JOB_SIGNAL"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT...
DoS Exec Code
0
GahpClient::globus_gram_client_job_signal(const char * job_contact, globus_gram_protocol_job_signal_t signal, const char * signal_arg, int * job_status, int * failure_code) { static const char* command = "GRAM_JOB_SIGNAL"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,993
GahpClient::globus_gram_client_job_status(const char * job_contact, int * job_status, int * failure_code) { static const char* command = "GRAM_JOB_STATUS"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!job_contact) job_contact=NULLSTRING...
DoS Exec Code
0
GahpClient::globus_gram_client_job_status(const char * job_contact, int * job_status, int * failure_code) { static const char* command = "GRAM_JOB_STATUS"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!job_contact) job_contact=NULLSTRING...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,994
GahpClient::globus_gram_client_ping(const char * resource_contact) { static const char* command = "GRAM_PING"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!resource_contact) resource_contact=NULLSTRING; std::string reqline; int x = spri...
DoS Exec Code
0
GahpClient::globus_gram_client_ping(const char * resource_contact) { static const char* command = "GRAM_PING"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!resource_contact) resource_contact=NULLSTRING; std::string reqline; int x = spri...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,995
GahpClient::gridftp_transfer(const char *src_url, const char *dst_url) { static const char* command = "GRIDFTP_TRANSFER"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!src_url) src_url=NULLSTRING; if (!dst_url) dst_url=NULLSTRING; std::s...
DoS Exec Code
0
GahpClient::gridftp_transfer(const char *src_url, const char *dst_url) { static const char* command = "GRIDFTP_TRANSFER"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!src_url) src_url=NULLSTRING; if (!dst_url) dst_url=NULLSTRING; std::s...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,996
GahpClient::gt4_generate_submit_id (char ** submit_id) { static const char * command = "GT4_GENERATE_SUBMIT_ID"; if ( submit_id ) { *submit_id = NULL; } if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if ( !is_pending( command, NULL ) ) { ...
DoS Exec Code
0
GahpClient::gt4_generate_submit_id (char ** submit_id) { static const char * command = "GT4_GENERATE_SUBMIT_ID"; if ( submit_id ) { *submit_id = NULL; } if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if ( !is_pending( command, NULL ) ) { ...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,997
GahpClient::gt4_gram_client_callback_allow( globus_gt4_gram_callback_func_t callback_func, void * user_callback_arg, char ** callback_contact) { char buf[150]; static const char* command = "GT4_GRAM_CALLBACK_ALLOW"; if (callback_contact) { *callback_contact = NULL; } if ( server->globus_gt4_gram_callback_con...
DoS Exec Code
0
GahpClient::gt4_gram_client_callback_allow( globus_gt4_gram_callback_func_t callback_func, void * user_callback_arg, char ** callback_contact) { char buf[150]; static const char* command = "GT4_GRAM_CALLBACK_ALLOW"; if (callback_contact) { *callback_contact = NULL; } if ( server->globus_gt4_gram_callback_con...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,998
GahpClient::gt4_gram_client_delegate_credentials(const char *delegation_service_url, char ** delegation_uri) { static const char* command = "GT4_DELEGATE_CREDENTIAL"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } ASSERT (delegation_service_url ...
DoS Exec Code
0
GahpClient::gt4_gram_client_delegate_credentials(const char *delegation_service_url, char ** delegation_uri) { static const char* command = "GT4_DELEGATE_CREDENTIAL"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } ASSERT (delegation_service_url ...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null
12,999
GahpClient::gt4_gram_client_job_callback_register(const char * job_contact, const char * callback_contact) { static const char* command = "GT4_GRAM_JOB_CALLBACK_REGISTER"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!job_contact) job_con...
DoS Exec Code
0
GahpClient::gt4_gram_client_job_callback_register(const char * job_contact, const char * callback_contact) { static const char* command = "GT4_GRAM_JOB_CALLBACK_REGISTER"; if (server->m_commands_supported->contains_anycase(command)==FALSE) { return GAHPCLIENT_COMMAND_NOT_SUPPORTED; } if (!job_contact) job_con...
@@ -321,10 +321,10 @@ GahpServer::Reaper(Service *,int pid,int status) if ( dead_server ) { sprintf_cat( buf, " unexpectedly" ); - EXCEPT( buf.c_str() ); + EXCEPT( "%s", buf.c_str() ); } else { sprintf_cat( buf, "\n" ); - dprint...
CWE-134
null
null