Print this page
11506 smatch resync

Split Close
Expand all
Collapse all
          --- old/usr/src/tools/smatch/src/validation/sm_null_deref.c
          +++ new/usr/src/tools/smatch/src/validation/sm_null_deref.c
↓ open down ↓ 36 lines elided ↑ open up ↑
  37   37          if (ab) {
  38   38                  c->a = 1;
  39   39          }
  40   40  }
  41   41  /*
  42   42   * check-name: Null Dereferences
  43   43   * check-command: smatch --spammy -I.. sm_null_deref.c
  44   44   *
  45   45   * check-output-start
  46   46  sm_null_deref.c:18 func() error: potentially dereferencing uninitialized 'aa'.
       47 +sm_null_deref.c:18 func() error: potentially dereferencing uninitialized 'aa'.
  47   48  sm_null_deref.c:23 func() error: we previously assumed 'a' could be null (see line 20)
  48   49  sm_null_deref.c:25 func() warn: variable dereferenced before check 'a' (see line 23)
  49   50  sm_null_deref.c:30 func() error: we previously assumed 'b' could be null (see line 25)
  50   51   * check-output-end
  51   52   */
  52   53  
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX