1. 04 Apr, 2020 14 commits
    • Nils Goroll's avatar
      3df0771d
    • Nils Goroll's avatar
      Clean up the mgt->vcc interface for vcc_acl_pedantic · 0ce0d37c
      Nils Goroll authored
      Spotted by flexelint
      
      Ref: 6c8f25e7
      0ce0d37c
    • Nils Goroll's avatar
      add back a local variable which makes flexelint grok the code · 03463abf
      Nils Goroll authored
      I did not understand when I committed
      119b4174 that the local variable was
      required for flexelint to unterstand that this is not an out-of-bounds
      access.
      
      This quote of phk from the top level rant sais it all:
      
       * Do I need to tell you that static code analysis tools have a
       * really hard time coping with this, and that they give a lot of
       * false negatives which confuse people ?
      
      So true. Sorry for going a smaller but almost full circle here, I
      started with good intentions and now all that's left is the desire to
      leave the code at least a little cleaner as I found it.
      03463abf
    • Nils Goroll's avatar
      another concession to flexelint · 4a69e1ae
      Nils Goroll authored
      I would have preferred avoiding the duplication of the suckaddr member
      types, but flexelint spits "Warning 550: Symbol 'sua' (line 229) not
      accessed"
      4a69e1ae
    • Nils Goroll's avatar
      relex expect window even more · 95162cf4
      Nils Goroll authored
      vtest has seen a case where other workspace debug messages interfered.
      
      FTR, it would be nice if we could backref a prior expect in order to
      expect the same workspace address
      95162cf4
    • Nils Goroll's avatar
      stabilize test: do not expect exact byte counts · 49b40743
      Nils Goroll authored
      Across the platforms we support, the overhead of stevedore allocations
      varies slightly due to different sizes of our structs.
      49b40743
    • Nils Goroll's avatar
      flexelinting · 87d003e6
      Nils Goroll authored
      const char *const bindings_help[] = {
      varnishstat_curses_help.c  9  Note 9075: external symbol 'bindings_help'
          defined without a prior declaration
                                  _
      const int bindings_help_len = 65;
      varnishstat_curses_help.c  78  Note 9075: external symbol
      'bindings_help_len'
          defined without a prior declaration
      87d003e6
    • Nils Goroll's avatar
      stabilize varnishstat curses mode test · 41317786
      Nils Goroll authored
      Could be that there is the bereq # printed right next to the client |
      as in this vtest result:
      
      **   top  === process p1 -expect-text 22 0 { | }
      **** dT   3.593
      **** v1   vsl|          0 CLI             - Rd ping
      **** v1   vsl|          0 CLI             - Wr 200 19 PONG 1585796425 1.0
      **** dT   3.806
      **** p1   stdout|\x1b[1;10H2\x1b[22;24H|#
      41317786
    • Nils Goroll's avatar
      make test less timing sensitive · 548a4e6e
      Nils Goroll authored
      when the second request did not happen within the default
      backend_remote_error_holddown == 0.25s, we would see two ECONNREFUSED
      instead of one and a holddown.
      
      Seen in vtest:
      
      **   top  === varnish v1 -expect VBE.vcl1.foo.fail_econnrefused > 0
      **** dT   6.132
      **   v1   as expected: VBE.vcl1.foo.fail_econnrefused (2) > 0
      **   top  === varnish v1 -expect VBE.vcl1.foo.helddown > 0
      548a4e6e
    • Nils Goroll's avatar
      flexelinting · 2baf7c0b
      Nils Goroll authored
      2baf7c0b
    • Nils Goroll's avatar
      help flexelint understand what happens with memory · 9168ee5e
      Nils Goroll authored
      Flexelint sput warning 429 that the malloc() return value was neither
      freed not returned.
      
      This simplification makes it clear. The assertion on malloc() having
      succeeded is in VSA_Build()
      
      Ref #3275
      9168ee5e
    • Nils Goroll's avatar
      Assert on malloc to succeed · e5341414
      Nils Goroll authored
      This ticks off an XXX comment: We basically assert on malloc to succeed
      everywhere, so we should stick with it here, too.
      e5341414
    • Nils Goroll's avatar
      Avoid flexelint 419 warning for memcpy to a union · 39a03ec6
      Nils Goroll authored
      Closes #3275
      39a03ec6
    • Nils Goroll's avatar
      polish: remove a superfluous variable · 119b4174
      Nils Goroll authored
      119b4174
  2. 03 Apr, 2020 4 commits
  3. 02 Apr, 2020 2 commits
  4. 01 Apr, 2020 20 commits