Skip to content

Comments

Fix nasa/cFS#703, Reduce stack usage in UT_CallTaskPipe#2674

Open
heathdutton wants to merge 1 commit intonasa:mainfrom
heathdutton:fix-703-reduce-stack-usage-ut-calltaskpipe
Open

Fix nasa/cFS#703, Reduce stack usage in UT_CallTaskPipe#2674
heathdutton wants to merge 1 commit intonasa:mainfrom
heathdutton:fix-703-reduce-stack-usage-ut-calltaskpipe

Conversation

@heathdutton
Copy link

Checklist (Please check before submitting)

Describe the contribution
Moves the large message buffer in UT_CallTaskPipe() from stack to static storage. The buffer is CFE_MISSION_SB_MAX_SB_MSG_SIZE bytes (32KB by default), which exceeds the default RTEMS task stack size of 20KB configured in bsp_start.c.

Fixes nasa/cFS#703

Testing performed
Code review and verification that the change follows existing patterns in the file (other static buffers like UT_CFE_ES_ResetData).

Expected behavior changes
Unit tests will no longer overflow the stack on systems with constrained stack sizes (e.g., RTEMS with default 20KB stacks).

System(s) tested on
Code review only (macOS development environment does not support cFS build)

Contributor Info - All information REQUIRED for consideration of pull request
Heath Dutton

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

Successfully merging this pull request may close these issues.

Large object pushed on stack by function UT_CallTaskPipe()

1 participant