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

Memory alignment issue in libc malloc stub #418

Closed
jphickey opened this issue Nov 13, 2023 · 0 comments · Fixed by #419
Closed

Memory alignment issue in libc malloc stub #418

jphickey opened this issue Nov 13, 2023 · 0 comments · Fixed by #419
Assignees
Labels
bug Something isn't working

Comments

@jphickey
Copy link
Contributor

Describe the bug
This is identical to nasa/osal#1412 but in the PSP, which has basically the same stub. It was cloned for use in the PSP, and the bug was also cloned.

Expected behavior
Memory block address should align

System observed on:
N/A

Additional context
Found by code review after reviewing nasa/osal#1413

Reporter Info
Joseph Hickey, Vantage Systems, Inc.

@jphickey jphickey self-assigned this Nov 13, 2023
@jphickey jphickey added the bug Something isn't working label Nov 13, 2023
jphickey added a commit to jphickey/PSP that referenced this issue Nov 13, 2023
Correct the round-up memory alignment calculation in the
stub "malloc" routine.
dzbaker added a commit that referenced this issue Dec 5, 2023
Fix #418, malloc stub memalign calculation
@dzbaker dzbaker closed this as completed in e28fa2f Dec 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant