Esempio n. 1
0
 def handle_sys_lib_def(i,variable,codestr):
     jobs=[]
     yes=fgetc_handler.isArgDef(variable,codestr)
     if yes:
         jobs=fgetc_handler.getJobs(i,variable, codestr)
     yes=fread_handler.isArgDef(variable,codestr)
     if yes:
         jobs=fread_handler.getJobs(i,variable, codestr)
     yes=read_handler.isArgDef(variable,codestr)
     if yes:
         jobs=read_handler.getJobs(i, variable,codestr)
     yes=memcpy_handler.isArgDef(variable, codestr)
     if yes:
         jobs=memcpy_handler.getJobs(i, variable, codestr)
     yes=strncpy_handler.isArgDef(variable, codestr)
     if yes:
         jobs=strncpy_handler.getJobs(i, variable, codestr)
     yes=memmove_handler.isArgDef(variable, codestr)
     if yes:
         jobs=memmove_handler.getJobs(i, variable, codestr)
     yes=strcpy_handler.isArgDef(variable, codestr)
     if yes:
         jobs=strcpy_handler.getJobs(i, variable, codestr)
     yes=memset_handler.isArgDef(variable, codestr)
     if yes:
         jobs=memset_handler.getJobs(i, variable, codestr)
     yes=sscanf_handler.isArgDef(variable, codestr)
     if yes:
         jobs=sscanf_handler.getJobs(i, variable, codestr)
     return jobs#FIX ME: this should not happen
Esempio n. 2
0
 def isLibArgDef(varstr,codestr):
     if fgetc_handler.isArgDef(varstr,codestr):
         return True
     elif fread_handler.isArgDef(varstr,codestr):
         return True
     elif read_handler.isArgDef(varstr,codestr):
         return True
     elif strcpy_handler.isArgDef(varstr,codestr):
         return True
     elif strncpy_handler.isArgDef(varstr,codestr):
         return True
     elif memmove_handler.isArgDef(varstr,codestr):
         return True
     elif memcpy_handler.isArgDef(varstr,codestr):
         return True
     elif memset_handler.isArgDef(varstr,codestr):
         return True
     elif sscanf_handler.isArgDef(varstr,codestr):
         return True
     return False