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 14:58:58 UTC
[GitHub] [incubator-nuttx] xiaoxiang781216 commented on a diff in pull request #6750: mm_heap/kasan: poison free node after return back the heap list
xiaoxiang781216 commented on code in PR #6750:
URL: https://github.com/apache/incubator-nuttx/pull/6750#discussion_r934628628
##########
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:
merge to line 102
--
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