Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-5382

Coverity analysis defect 114011: Missing varargs init or cleanup

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Duplicate
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Story Points:
      2
    • Sprint:
      Storage Engines 2020-01-13

      Description

      Incorrect usage of variable argument macros; use va_start or va_copy to begin processing and va_end to finish

      Defect 114011 (STATIC_C)
      Checker VARARGS (subcategory none)
      File: /src/cursor/cur_join.c
      Function __curjoin_get_key
      /src/cursor/cur_join.c, line: 681
      Initializing va_list "ap".

              va_start(ap, cursor);

      /src/cursor/cur_join.c, line: 682
      va_end was not called for "ap".

              JOINABLE_CURSOR_API_CALL(cursor, session, get_key, NULL);

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              keith.bostic Keith Bostic
              Reporter:
              xgen-internal-coverity Coverity Collector User
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: