Skip to content

Add address sanitizer to CI Pipeline #849

@thesamprice

Description

@thesamprice

Checklist (Please check before submitting)

  • I reviewed the Contributing Guide.
  • I reviewed the cFS README.md file to see if the feature is in the major future work.
  • [ X I performed a cursory search to see if the feature request is relevant, not redundant, nor in conflict with other tickets.

Is your feature request related to a problem? Please describe.
Enabling address sanitizer can catch several memory issues in C programming.

Describe the solution you'd like
If possible i would like to see the address sanitizer added to the cfs pipeline CI pipeline.

Prior to make prep you would add the following exports.

export CFLAGS="-fsanitize=address -fno-omit-frame-pointer -g"
export CXXFLAGS="-fsanitize=address -fno-omit-frame-pointer -g"
export LDFLAGS="-fsanitize=address"

I belive you would make these changes to these two CI Workflows.

https://github.com/nasa/cFE/blob/main/.github/workflows/functional-tests.yml#L61
https://github.com/nasa/cFE/blob/main/.github/workflows/code-coverage.yml#L64

Requester Info
Samuel Price

Metadata

Metadata

Assignees

No one assigned

    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