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

CFE_PSP_MemSet stub and handler parameter mis-match #440

Closed
CDKnightNASA opened this issue Nov 20, 2024 · 0 comments
Closed

CFE_PSP_MemSet stub and handler parameter mis-match #440

CDKnightNASA opened this issue Nov 20, 2024 · 0 comments
Assignees

Comments

@CDKnightNASA
Copy link
Contributor

Describe the bug
The handler for CFE_PSP_MemSet expects a parameter named "size", whereas the stub defines the third parameter as named "n".

To Reproduce
Calling the CFE_PSP_MemSet stub results in: [ FAIL] 18.011 utstubs.c:868 - Requested parameter size of size 4 which was not provided by the stub

Expected behavior
Calling the default stub/handler should behave normally.

Code snips
See

uint32 size = UT_Hook_GetArgValueByName(Context, "size", uint32);

and

https://github.com/nasa/PSP/blob/main/ut-stubs/src/cfe_psp_memaccess_api_stubs.c#L108

System observed on:
Ubuntu 24

Additional context
Add any other context about the problem here.

Reporter Info
[email protected]

@CDKnightNASA CDKnightNASA self-assigned this Nov 20, 2024
CDKnightNASA added a commit to CDKnightNASA/PSP that referenced this issue Nov 20, 2024
dzbaker added a commit that referenced this issue Dec 10, 2024
Fix #440 - rename parameter in CFE_PSP_MemSet handler to align with stub and actual code
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant