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 #235, add check against OS_MAX_QUEUE_DEPTH #448

Merged
merged 1 commit into from
May 19, 2020

Conversation

jphickey
Copy link
Contributor

@jphickey jphickey commented May 7, 2020

Describe the contribution
The OS_QueueCreate() function will now sanity check the depth parameter against the configured OS_MAX_QUEUE_DEPTH value. If it is too large, an error will be returned. This is a hard limit
and independent of the "permissive" mode.

The OS_MAX_QUEUE_DEPTH should be configured to the largest value that an application may reasonably request.

Fix #235

Testing performed
Confirm CFE framework starts and operates normally (but see nasa/to_lab#36)
Confirm OSAL unit tests pass

Expected behavior changes
OS_QueueCreate() will return an error code if the depth parameter is larger than the configured OS_MAX_QUEUE_DEPTH.

System(s) tested on
Ubuntu 20.04

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

The OS_QueueCreate() function will now sanity check the depth
parameter against the configured OS_MAX_QUEUE_DEPTH value.  If
it is too large, an error will be returned.  This is a hard limit
and independent of the "permissive" mode.

The OS_MAX_QUEUE_DEPTH should be configured to the largest value
that an application may reasonably request.
@skliper skliper added enhancement CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels May 7, 2020
@skliper skliper added this to the 5.1.0 milestone May 7, 2020
@skliper skliper added CCB-20200513 and removed CCB:Ready Pull request is ready for discussion at the Configuration Control Board (CCB) labels May 13, 2020
@skliper
Copy link
Contributor

skliper commented May 13, 2020

CCB 20200513 - Approved

@astrogeco astrogeco added CCB:Approved Indicates code review and approval by community CCB IC-20200513 labels May 19, 2020
@astrogeco astrogeco changed the base branch from master to integration-candidate May 19, 2020 20:08
@astrogeco astrogeco merged commit 2c69520 into integration-candidate May 19, 2020
@skliper skliper deleted the fix-235-check-queue-maxdepth branch June 22, 2020 22:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CCB:Approved Indicates code review and approval by community CCB enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

osconfig.h OS_QUEUE_MAX_DEPTH unused
3 participants