Skip to content

Improve the lexical search tool #130

Description

@TamarW0

We observed behavior in which, for some inputs, the lexical search failing to retrieve relevant documents ( sometimes no documents at all) since the function name or package name is not exactly the same:
Sometimes the context contains a similar word, not the exact word of function or package
In other cases, the word from context is with a wildcard(*) suffix, as there several options for exploitability.
Another thing we encountered, is that it search for a package name together with a function ( e.g. package.function) , and it expects to find it as is, while in many times , you need to separate the function/method from the package, as it can be qualified by a class name/instance name/alias name or just alone .
Example CVE that we saw the issue in : CVE-2022-21698
the tool got promhttp.InstrumentHandler while we expected to find a function that its name starts with InstrumentHandler and it was under promhttp package

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions