fix array index range checking of gat[] in gran_alloc().
This commit is contained in:
parent
e0ae2963d2
commit
979124928c
1 changed files with 1 additions and 1 deletions
|
|
@ -113,7 +113,7 @@ FAR void *gran_alloc(GRAN_HANDLE handle, size_t size)
|
|||
|
||||
/* Get the next entry from the GAT to support a 64 bit shift */
|
||||
|
||||
if (granidx < priv->ngranules)
|
||||
if (granidx + 32 < priv->ngranules)
|
||||
{
|
||||
next = priv->gat[gatidx + 1];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue