Uploaded image for project: 'Traffic Server'
  1. Traffic Server
  2. TS-5018

CID 1365301: Control flow issues (DEADCODE)

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 7.1.0
    • Component/s: Plugins
    • Labels:
      None

      Description

      ** CID 1365301:  Control flow issues  (DEADCODE)
      /plugins/header_rewrite/parser.cc: 67 in Parser::Parser(const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&)()
      
      
      ________________________________________________________________________________________________________
      *** CID 1365301:  Control flow issues  (DEADCODE)
      /plugins/header_rewrite/parser.cc: 67 in Parser::Parser(const std::basic_string<char, std::char_traits<char>, std::allocator<char>>&)()
      61             cur_token_length = i - cur_token_start + 1;
      62             _tokens.push_back(line.substr(cur_token_start, cur_token_length));
      63             state            = PARSER_DEFAULT;
      64             extracting_token = false;
      65           } else if (!extracting_token) {
      66             // /'s elsewhere are just consumed, but we should not end up here if we're not extracting a token
      >>>     CID 1365301:  Control flow issues  (DEADCODE)
      >>>     Execution cannot reach this statement: "TSError("[%s] malformed reg...".
      67             TSError("[%s] malformed regex \"%s\" ignoring...", PLUGIN_NAME, line.c_str());
      68           }
      69         } else if ((state != PARSER_IN_REGEX) && (line[i] == '\\')) {
      70           // Escaping
      71           if (!extracting_token) {
      72             extracting_token = true;
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                masaori Masaori Koshiba
                Reporter:
                masaori Masaori Koshiba
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 40m
                  40m