Skip to content

Add support for Exact String Search #13

@tushar3q34

Description

@tushar3q34

As per the Pzanalysis PR, we will proceed with out first type of analysis implementation.

Contents for PzAnalysis :

  • PzAnalysisType, which is an enum which tells about the type of analysis
  • PzCoreSPtr, which is a shared pointer to the PzCore object required for accessing buffer
  • PzAnalysisImplUPtr, which is a unique pointer to the implementation class which is a parent class of all analysis implementation

Implement method declaration and definition of PzAnalysisExact (a child of PzAnalysisImpl) :

  • Consider how to make it most efficient. Test various approaches and proceed with the one that performs the best during benchmark
  • Take advantage of the type of buffer. You can implement different regex searches based on the available buffer type.
  • Add relevant tests to benchmark the analysis once the testing framework is setup.

More general tips :

  • Try to maximise use of move semantics and references to minimise copying and hence making a more efficient analysis
  • Try your best to minimise memory footprint of the class but not at the cost of time
  • Handle error cases and report it using PzError API. Feel free to extend PzError API with relevant functions/enums.

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions