[PATCH v2 09/11] malloc: check result of malloc_elem_free
    Dmitry Kozlyuk 
    dmitry.kozliuk at gmail.com
       
    Tue Nov 22 16:52:43 CET 2022
    
    
  
2022-11-21 17:32 (UTC-0500), okaya at kernel.org:
> From: Sinan Kaya <okaya at kernel.org>
> 
> In malloc_heap_free result of call to malloc_elem_free is dereferenced
> here and may be null.
It may not: "malloc_elem_free()" never returns NULL by definition:
it takes a valid busy element and returns a valid free element.
How about annotating the function instead?
    
    
More information about the dev
mailing list