Package FuzzManager :: Package FTB :: Package Signatures :: Module CrashSignature :: Class CrashSignature
[hide private]
[frames] | no frames]

Class CrashSignature

source code

Instance Methods [hide private]
 
__init__(self, rawSignature)
Constructor
source code
 
__str__(self) source code
bool
matches(self, crashInfo)
Match this signature against the given crash information
source code
bool
matchRequiresTest(self)
Check if the signature requires a testcase to match.
source code
 
getDistance(self, crashInfo) source code
 
fit(self, crashInfo) source code
 
getSymptomsDiff(self, crashInfo) source code
 
getSignatureUnifiedDiffTuples(self, crashInfo) source code
Static Methods [hide private]
 
fromFile(signatureFile) source code
Method Details [hide private]

__init__(self, rawSignature)
(Constructor)

source code 

Constructor

Parameters:
  • rawSignature (string) - A JSON-formatted string representing the crash signature

matches(self, crashInfo)

source code 

Match this signature against the given crash information

Parameters:
  • crashInfo (CrashInfo) - The crash info to match the signature against
Returns: bool
True if the signature matches, False otherwise

matchRequiresTest(self)

source code 

Check if the signature requires a testcase to match.

This method can be used to avoid attaching a testcase to the crashInfo before matching, avoiding unnecessary I/O on testcase files.

Returns: bool
True if the signature requires a testcase to match