You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by GitBox <gi...@apache.org> on 2020/01/30 14:29:14 UTC

[GitHub] [incubator-nuttx] minabeoki opened a new pull request #186: fix gran_alloc() miss allocation in mm_granalloc.c.

minabeoki opened a new pull request #186: fix gran_alloc() miss allocation in mm_granalloc.c.
URL: https://github.com/apache/incubator-nuttx/pull/186
 
 
   fix gran_alloc() miss allocation in mm_granalloc.c.
   
   problem sequence:
    1. ptr0 = gran_alloc(handle, 8 << MM_PGSHIFT);
    2. ptr1 = gran_alloc(handle, 32 << MM_PGSHIFT);
    3. gran_free(handle, ptr0, 8 << MM_PGSHIFT);
    4. ptr2 = gran_alloc(handle, 10 << MM_PGSHIFT);
         => ptr2 value is incorrect address.
   
   In the gran_alloc()'s bitidx for loop,
   if "if (curr == 0xffffffff)" condition is true,
   "alloc" value become incorrect.

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services

[GitHub] [incubator-nuttx] acassis merged pull request #186: fix gran_alloc() miss allocation in mm_granalloc.c.

Posted by GitBox <gi...@apache.org>.
acassis merged pull request #186: fix gran_alloc() miss allocation in mm_granalloc.c.
URL: https://github.com/apache/incubator-nuttx/pull/186
 
 
   

----------------------------------------------------------------
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.
 
For queries about this service, please contact Infrastructure at:
users@infra.apache.org


With regards,
Apache Git Services