Skip to content

Commit

Permalink
Merge pull request #1271 from jphickey/fix-1270-pool-check
Browse files Browse the repository at this point in the history
Fix #1270, limit check in pool validation
  • Loading branch information
astrogeco authored Mar 30, 2021
2 parents 6f5344e + c1de7f4 commit de01f9e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/es/fsw/src/cfe_es_generic_pool.c
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ int32 CFE_ES_GenPoolRebuild(CFE_ES_GenPoolRecord_t *PoolRecPtr)
bool CFE_ES_GenPoolValidateState(const CFE_ES_GenPoolRecord_t *PoolRecPtr)
{
return (PoolRecPtr->PoolTotalSize > 0 && PoolRecPtr->TailPosition <= PoolRecPtr->PoolMaxOffset &&
PoolRecPtr->NumBuckets > 0 && PoolRecPtr->NumBuckets < CFE_PLATFORM_ES_POOL_MAX_BUCKETS);
PoolRecPtr->NumBuckets > 0 && PoolRecPtr->NumBuckets <= CFE_PLATFORM_ES_POOL_MAX_BUCKETS);
}

/*
Expand Down

0 comments on commit de01f9e

Please sign in to comment.