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/06/28 19:14:12 UTC

[GitHub] [incubator-nuttx] btashton opened a new pull request #1316: mm: Do not memcopy more than oldsize when realloc

btashton opened a new pull request #1316:
URL: https://github.com/apache/incubator-nuttx/pull/1316


   ## Summary
   When realloc up from a mem area to a larger one where a new node
   is needed. The the larger memory region is copied from the source
   this can both leak data as well as cause memory faults accesssing
   invalid data.
   
   This was first reported by Kwonsk
   
   Signed-off-by: Brennan Ashton <ba...@brennanashton.com>
   
   ## Testing
   the sim:ostest configuration was run
   
   


----------------------------------------------------------------
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



[GitHub] [incubator-nuttx] btashton commented on pull request #1316: mm: Do not memcopy more than oldsize when realloc

Posted by GitBox <gi...@apache.org>.
btashton commented on pull request #1316:
URL: https://github.com/apache/incubator-nuttx/pull/1316#issuecomment-650809996


   @patacongo could you take a look at this and make sure I did not miss something. It looks correct to me but it is a critical component. 


----------------------------------------------------------------
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



[GitHub] [incubator-nuttx] btashton merged pull request #1316: mm: Do not memcopy more than oldsize when realloc

Posted by GitBox <gi...@apache.org>.
btashton merged pull request #1316:
URL: https://github.com/apache/incubator-nuttx/pull/1316


   


----------------------------------------------------------------
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