Better trivial function identification in WARP #6179
Labels
Component: WARP
Effort: Medium
Issue should take < 1 month
Impact: Medium
Issue is impactful with a bad, or no, workaround
Type: Enhancement
Issue is a small enhancement to existing functionality
WARP tries to identify trivial functions to force constraint matching, this is what prevents trivial functions from matching random functions that don't have more than one possible match. For example the following function:
Will match with:
As seen above, there is only one possible match, and because the length is greater than
analysis.warp.trivialFunctionLength
(default of 20 bytes), the function will match without checking the constraint.Of course the user can raise the setting listed above, but the primary issue here is the fact that our definition of a "trivial" function goes as far as the length of said function, rather than for example, the number of basic blocks.
We should extend WARP's definition of a trivial function to include things such as the number of basic blocks, the number of calls, and other broad metrics that make sense to include.
The text was updated successfully, but these errors were encountered: