Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-2107

[libwebsockets] coverity error

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 1.16.0
    • 1.17.0
    • Protocol Adaptors
    • None

    Description

      *** CID 370603:  API usage errors  (PRINTF_ARGS)
      {{ /home/kgiusti/work/dispatch/qpid-dispatch/src/http-libwebsockets.c: 698 in callback_metrics()}}
      {{ 692                 }}}
      {{ 693             }}}
      {{ 694     }}
      {{ 695             int alloc_cur = 0;}}
      {{ 696             while (alloc_cur < allocator_metrics_length) {}}
      {{ 697                 if (write_allocator_metric(&position, end, &allocator_metrics[alloc_cur])) {}}
      {{ >>>     CID 370603:  API usage errors  (PRINTF_ARGS)}}
      {{ >>>     Argument "alloc_cur" to format specifier "%lu" was expected to have type "unsigned long" but has type "int".}}
      {{ 698                     qd_log(hs->log, QD_LOG_DEBUG, "wrote allocator metric %lu of %lu", alloc_cur, allocator_metrics_length);}}
      {{ 699                     alloc_cur++;}}
      {{ 700                 } else {}}
      {{ 701                     qd_log(hs->log, QD_LOG_WARNING, "insufficient space in buffer");}}
      {{ 702                     break;}}
      {{ 703                 }}}

      Attachments

        Activity

          People

            kgiusti Ken Giusti
            kgiusti Ken Giusti
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: