Package vivisect :: Module codediff
[hide private]
[frames] | no frames]

Module codediff

source code

Classes [hide private]
  CodeDiff
The CodeDiff class is a context for diffing multiple vivisect workspaces to identify shared or changed code.
Functions [hide private]
 
getOtherWorkspace(wsname) source code
 
getBlockMnems(vw, bva, bsize) source code
 
getFunctionEdgeList(vw, fva)
Return a list of b1mnems|b2mnems strings where b*mnems is a list of the instruction mnemonics for each block.
source code
 
getFunctionDeltas(vw1, vw2)
Return a tuple of ( <vw1_unique>, <vw2_unique>, <common>) function lists.
source code
 
getBestBlockMatch(edgelist, f2einfo)
For the specified edge list, go through the functions the supplied f2einfo dictionary and find the one with the most in common...
source code
 
printCodeDeltas(vw1, vw2) source code
Variables [hide private]
  FHASH_MNEM = 1
  FHAHS_GRAPH = 2
Function Details [hide private]

getFunctionEdgeList(vw, fva)

source code 

Return a list of b1mnems|b2mnems strings where b*mnems is a list of the instruction mnemonics for each block. This creates a list of "edges" rather than a list of blocks which makes false positive matches on similar blocks less likely.