parameters: ()
return_statement: return offsets.copy()
docstring: we also read lea.out file to know offsets that were used in LEA instructions. There offsets are good candidates to fuzz with extreme values, like \xffffffff, \x80000000.
docstring_summary: we also read lea.out file to know offsets that were used in LEA instructions. There offsets are good candidates to fuzz with extreme values, like \xffffffff, \x80000000.
docstring_tokens: we also read lea . out file to know offsets that were used in LEA instructions . There offsets are good candidates to fuzz with extreme values like \ xffffffff \ x80000000 .
function: def read_lea():
      '''
      we also read lea.out file to know offsets that were used in LEA instructions. There offsets are good candidates to fuzz with extreme values, like \xffffffff, \x80000000.'''
      leaFD=open("lea.out","r")
      offsets=set() # set to keep all the offsets that are used in LEA instructions.
      pat=re.compile(r"(\d+) (\w+) \{([0-9,]*)\} \{([0-9,]*)\} \{([0-9,]*)\} \{([0-9,]*)\} \{([0-9,]*)\} \{([0-9,]*)\} \{([0-9,]*)\} \{([0-9,]*)\}",re.I)
      
      for ln in leaFD:
          mat=pat.match(ln)
          try:# this is a check to see if lea entry is complete.
            if config.BIT64 == False:
              rr=mat.group(6)
  	  else:
              rr=mat.group(10)
          except:
              continue
          tempoff=get_non_empty(mat,3)#mat.group(9)
          if tempoff == -1:
              continue
          toff=tempoff.split(',')
          toff=[int(o) for o in toff]
          if len(toff)<5:
              offsets.add(toff[0])
      return offsets.copy()
function_tokens: def read_lea ( ) : leaFD = open ( "lea.out" , "r" ) offsets = set ( ) # set to keep all the offsets that are used in LEA instructions. pat = re . compile ( r"(\d+) (\w+) \{([0-9,]*)\} \{([0-9,]*)\} \{([0-9,]*)\} \{([0-9,]*)\} \{([0-9,]*)\} \{([0-9,]*)\} \{([0-9,]*)\} \{([0-9,]*)\}" , re . I ) for ln in leaFD : mat = pat . match ( ln ) try : # this is a check to see if lea entry is complete. if config . BIT64 == False : rr = mat . group ( 6 ) else : rr = mat . group ( 10 ) except : continue tempoff = get_non_empty ( mat , 3 ) #mat.group(9) if tempoff == - 1 : continue toff = tempoff . split ( ',' ) toff = [ int ( o ) for o in toff ] if len ( toff ) < 5 : offsets . add ( toff [ 0 ] ) return offsets . copy ( )