project
string
commit_id
string
target
int64
func
string
cwe
string
big_vul_idx
string
idx
int64
hash
string
size
float64
message
string
dataset
string
libMeshb
8cd68c54e0647c0030ae4506a225ad4a2655c316
0
static void RecDblWrd(GmfMshSct *msh, const void *wrd) { // [Bruno] added error control #ifdef WITH_GMF_AIO if(write(msh->FilDes, wrd, WrdSiz * 2) != WrdSiz*2) #else if(fwrite(wrd, WrdSiz, 2, msh->hdl) != 2) #endif longjmp(msh->err,-29); }
CWE-120
null
522,359
59978098408077236549722454634140729790
null
null
other
libMeshb
8cd68c54e0647c0030ae4506a225ad4a2655c316
0
static void ScaDblWrd(GmfMshSct *msh, void *ptr) { #ifdef WITH_GMF_AIO if(read(msh->FilDes, ptr, WrdSiz * 2) != WrdSiz * 2) #else if( fread(ptr, WrdSiz, 2, msh->hdl) != 2 ) #endif longjmp(msh->err, -27); if(msh->cod != 1) SwpWrd((char *)ptr, 2 * WrdSiz); }
CWE-120
null
522,360
247360553957728497823069192496896037023
null
null
other
libMeshb
8cd68c54e0647c0030ae4506a225ad4a2655c316
0
size_t my_aio_return( struct aiocb *aiocbp){return(aio_return(aiocbp));}
CWE-120
null
522,361
174901264778127071531463768287311064773
null
null
other
libMeshb
8cd68c54e0647c0030ae4506a225ad4a2655c316
0
int GmfGotoKwd(int64_t MshIdx, int KwdCod) { GmfMshSct *msh = (GmfMshSct *)MshIdx; KwdSct *kwd = &msh->KwdTab[ KwdCod ]; if( (KwdCod < 1) || (KwdCod > GmfMaxKwd) || !kwd->NmbLin ) return(0); return(SetFilPos(msh, kwd->pos)); }
CWE-120
null
522,362
149247587461119949032626672076790232588
null
null
other
libMeshb
8cd68c54e0647c0030ae4506a225ad4a2655c316
0
static int SetFilPos(GmfMshSct *msh, int64_t pos) { #ifdef WITH_GMF_AIO if(msh->typ & Bin) return((lseek(msh->FilDes, (off_t)pos, 0) != -1)); else return((MYFSEEK(msh->hdl, (off_t)pos, SEEK_SET) == 0)); #else return((MYFSEEK(msh->hdl, (off_t)pos, SEEK_SET) == 0)); #endif }
CWE-120
null
522,363
231087872874602965384182665333485211352
null
null
other
libMeshb
8cd68c54e0647c0030ae4506a225ad4a2655c316
0
int my_aio_read(struct aiocb *aiocbp) { if( (MYFSEEK(aiocbp->aio_fildes, (off_t)aiocbp->aio_offset, SEEK_SET) == 0) && (fread(aiocbp->aio_buf, 1, aiocbp->aio_nbytes, aiocbp->aio_fildes) == aiocbp->aio_nbytes) ) { aiocbp->aio_lio_opcode = 0; } else { aiocbp->aio_lio_opcode = -1; ...
CWE-120
null
522,364
95473100682938160097138667236625080567
null
null
other
libMeshb
8cd68c54e0647c0030ae4506a225ad4a2655c316
0
static int64_t GetPos(GmfMshSct *msh) { int IntVal; int64_t pos; if(msh->ver >= 3) ScaDblWrd(msh, (unsigned char*)&pos); else { ScaWrd(msh, (unsigned char*)&IntVal); pos = (int64_t)IntVal; } return(pos); }
CWE-120
null
522,365
132064128599695925942733015235537457917
null
null
other
elfspirit
c5b0f5a9a24f2451bbeda4751d67633bc375e608
0
int parse(char *elf) { int fd; struct stat st; uint8_t *elf_map; int count; char *tmp; char *name; char flag[4]; MODE = get_elf_class(elf); fd = open(elf, O_RDONLY); if (fd < 0) { perror("open"); return -1; } if (fstat(fd, &st) < 0) { perror("fs...
CWE-125
null
522,438
171428185664661141067576165725302615891
null
null
other
elfspirit
c5b0f5a9a24f2451bbeda4751d67633bc375e608
0
int flag2str_sh(int flag, char *flag_str) { if (flag & 0x1) flag_str[2] = 'W'; if (flag >> 1 & 0x1) flag_str[1] = 'A'; if (flag >> 2 & 0x1) flag_str[0] = 'E'; return 0; }
CWE-125
null
522,439
187280809907122249167453826253103515279
null
null
other
elfspirit
c5b0f5a9a24f2451bbeda4751d67633bc375e608
0
int validated_offset(uint32_t addr, uint32_t start, uint32_t end){ return addr <= end && addr >= start? 0:-1; }
CWE-125
null
522,440
303877742669694659630394393673851210545
null
null
other
elfspirit
c5b0f5a9a24f2451bbeda4751d67633bc375e608
0
int flag2str(int flag, char *flag_str) { if (flag & 0x1) flag_str[2] = 'E'; if (flag >> 1 & 0x1) flag_str[1] = 'W'; if (flag >> 2 & 0x1) flag_str[0] = 'R'; return 0; }
CWE-125
null
522,441
173967409183132651828541020517235525867
null
null
other