Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-18497

Coverity analysis defect 72681: Unchecked return value

    XMLWordPrintableJSON

Details

    • ALL

    Description

      Value returned from a function is not checked for errors before being used

      Defect 72681 (STATIC_C)
      Checker CHECKED_RETURN (subcategory none)
      File: /src/mongo/util/time_support.cpp
      Function mongo::<unnamed>::_dateToISOString(mongo::Date_t, bool, mongo::<unnamed>::DateStringBuffer *)
      /src/mongo/util/time_support.cpp, line: 232
      Calling "strftime" without checking return value (as is done elsewhere 3 out of 4 times).

                      strftime(cur, bufRemaining, "%z", &t);

      Attachments

        Activity

          People

            schwerin@mongodb.com Andy Schwerin
            xgen-internal-coverity Coverity Collector User
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: