to_callsite

Coverity Documentation

Version
latest

A to_callsite WritableProgramData value identifies writable values consumed by call sites.

Fields

The to_call_site WritableProgramData object has the following fields:

to_callsite

A CallsiteSet that identifies call sites of interest.

input

A ParamIn value that identifies a base value passed into the call site.

path

(Optional) An array of AccessPathElement values that specify an access path to apply to the base value.

The path field is only allowed for JavaScript uses of to_callsite WritableProgramData.

If no path field is specified, the writable value is the base value indicated by the input field. Adding a path field indicates a writable value along the access path off of the base value.

Examples:

JavaScript example:

{
    "to_callsite" : { 
        "call_on" : {
            "read_off_any" : [ { "property" : "exampleCall" } ]
        }
    },
    "input" : "arg1",
    "path" : [ { "property" : "f"}, { "property" : "g" } ]
}

The to_callsite WritableProgramData value above will match the writable value passedInValue.f.g when passedInValue is passed into this call site:

exampleCall(passedInValue);