minabeoki commented on pull request #5532:
URL: https://github.com/apache/incubator-nuttx/pull/5532#issuecomment-1043806170


   @masayuki2009
   We can reproduce this by following sequence.
   
   * use a config with CONFIG_GRAN=y
   * add the following code somewhere
   
   ```
   #include <nuttx/mm/gran.h>
   
   static GRAN_HANDLE gran;
   static uint32_t area[32];
   
   void gran_test(void)
   {
     gran = gran_initialize(area, sizeof(area), 2, 2);
     gran_alloc(gran, 8);
   }
   ```
   
   * call gran_test() and `next = priv->gat[gatidx + 1];` accesses the out of 
range for gat[]
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to