Uploaded image for project: 'Thrift'
  1. Thrift
  2. THRIFT-3066

C++ TDenseProtocol assert modifies instead of checks

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 0.9.2
    • 0.9.3
    • C++ - Library
    • None

    Description

      cppcheck-1.68 found an assertion that is assigning a value:

        // If this is the end of the top-level write, we should have just popped
        // the TypeSpec passed to the constructor.
        if (ts_stack_.empty()) {
          assert(old_tts = type_spec_);
          return;
        }
      

      Attachments

        Activity

          People

            jking3 James E. King III
            jking3 James E. King III
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: