Skip to content

RULE-10-1-1: Array access not considered non-const use of non-const pointer #1159

Description

@MichaelRFairhurst

Affected rules

  • RULE-10-1-1

Description

This is occurring in a new PR in qlx.

Example

        void f(vector<Type> *param, ...) {
            ....
                g(param[write_col].data() + write_begin, ...);
            }
        }

Once we index into param, it will be hard to analyze all such cases, but we should do what we can and exclude results otherwise.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Difficulty-MediumA false positive or false negative report which is expected to take 1-5 days effort to addressStardard-MISRA-C++false positive/false negativeAn issue related to observed false positives or false negatives.

    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