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 2022/08/01 15:02:58 UTC

[GitHub] [incubator-nuttx] anchao commented on a diff in pull request #6750: mm_heap/kasan: poison free node after return back the heap list

anchao commented on code in PR #6750:
URL: https://github.com/apache/incubator-nuttx/pull/6750#discussion_r934632863


##########
mm/mm_heap/mm_free.c:
##########
@@ -175,5 +178,10 @@ void mm_free(FAR struct mm_heap_s *heap, FAR void *mem)
   /* Add the merged node to the nodelist */
 
   mm_addfreechunk(heap, node);
+
+#ifdef CONFIG_MM_KASAN
+  kasan_poison(mem, memsize);

Review Comment:
   Done



-- 
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: commits-unsubscribe@nuttx.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org