Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #432, buffer error in the VxWorks sysmon module #439

Merged
merged 1 commit into from
Sep 19, 2024

Conversation

jphickey
Copy link
Contributor

Checklist (Please check before submitting)

Describe the contribution
The cpu number to poll was not range checked until after the memset. This is not the correct order of operations, it must range the element number in the array before writing/clearing it.

Fixes #432

Testing performed
Run coverage tests

Expected behavior changes
No array overrun, no address sanitizer issues

System(s) tested on
Debian

Contributor Info - All information REQUIRED for consideration of pull request
Joseph Hickey, Vantage Systems, Inc.

The cpu number to poll was not range checked until _after_ the memset.
This is not the correct order of operations, it must range the element
number in the array before writing/clearing it.
@jphickey jphickey added the CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) label Sep 12, 2024
@dzbaker dzbaker added CCB:Approved Indicates Approval by CCB and removed CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels Sep 12, 2024
dzbaker added a commit to nasa/cFS that referenced this pull request Sep 16, 2024
*Combines:*

cFE equuleus-rc1+dev199
PSP equuleus-rc1+dev49

**Includes:**

*cFS*
- #791
- #796

*cFE*
- nasa/cFE#2599

*PSP*
- nasa/PSP#439
- nasa/PSP#436

Co-authored by: Andrew Liounis <aliounis@users.noreply.github.com>
Co-authored by: Rich Landau <RichLandau@users.noreply.github.com>
Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com>
@dzbaker dzbaker merged commit d74d188 into nasa:main Sep 19, 2024
10 checks passed
dzbaker added a commit to nasa/cFS that referenced this pull request Sep 19, 2024
*Combines:*

cFE equuleus-rc1+dev199
PSP equuleus-rc1+dev49

**Includes:**

*cFS*
- #791
- #796

*cFE*
- nasa/cFE#2599

*PSP*
- nasa/PSP#439
- nasa/PSP#436

Co-authored by: Andrew Liounis <aliounis@users.noreply.github.com>
Co-authored by: Rich Landau <RichLandau@users.noreply.github.com>
Co-authored by: Joseph Hickey <jphickey@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates Approval by CCB
Projects
None yet
Development

Successfully merging this pull request may close these issues.

addressSanitier issue with coverage-pspmod-vxworks_sysmon-testrunner
2 participants