Skip to content

Fix #235, add check against OS_MAX_QUEUE_DEPTH#448

Merged
astrogeco merged 1 commit intointegration-candidatefrom
fix-235-check-queue-maxdepth
May 19, 2020
Merged

Fix #235, add check against OS_MAX_QUEUE_DEPTH#448
astrogeco merged 1 commit intointegration-candidatefrom
fix-235-check-queue-maxdepth

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