lkml.org 
[lkml]   [2019]   [Mar]   [1]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] cxgb4: fix undefined behavior in mem.c
    On Thu, 28 Feb 2019, Shaobo He wrote:

    > I think maybe the more problematic issue is that the value of a freed pointer
    > is intermediate.

    The pointer is not affected by freeing the data it points to. Thus it
    definitely has the same value as before and is not indeterminate.

    The pointer points now to an area of memory that could now be in use for
    different purposes so maybe it could be taken as a dangerous situation.

    But situations like that are common in code.

    \
     
     \ /
      Last update: 2019-03-01 19:16    [W:5.753 / U:0.052 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site