nasa / PSP

The Core Flight System (cFS) Platform Support Package (PSP)
Apache License 2.0
66 stars 56 forks source link

Fix #418, malloc stub memalign calculation #419

Closed jphickey closed 7 months ago

jphickey commented 8 months ago

Checklist (Please check before submitting)

Describe the contribution Correct the round-up memory alignment calculation in the stub "malloc" routine.

Fixes #418

Testing performed Run all unit tests

Expected behavior changes malloc stub now rounds up properly

System(s) tested on

Additional context Same change as was submitted in nasa/osal#1413

It is likely this was never really used by tests, as this bug had been in there a long time and not noticed. At least with this it should work as intended if multiple blocks are allocated.

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