Repository navigation
Commit e9031dc
committed
fix(es): use PLATFORM bound for pool bucket array size check
The NumBlockSizes validation in CFE_ES_PoolCreateEx_WithAlignment uses
CFE_MISSION_ES_POOL_MAX_BUCKETS, but the actual Buckets array in
CFE_ES_GenPoolRecord_t is sized to CFE_PLATFORM_ES_POOL_MAX_BUCKETS.
When MISSION > PLATFORM (a valid, documented configuration), this allows
NumBlockSizes values that overflow the array in GenPoolInitialize,
corrupting adjacent entries in the global pool table.1 parent 0896102 commit e9031dc
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
227 | 227 | | |
228 | 228 | | |
229 | 229 | | |
230 | | - | |
| 230 | + | |
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| |||
0 commit comments