You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/05/11 13:21:00 UTC

[jira] [Commented] (DISPATCH-2107) [libwebsockets] coverity error

    [ https://issues.apache.org/jira/browse/DISPATCH-2107?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17342557#comment-17342557 ] 

ASF subversion and git services commented on DISPATCH-2107:
-----------------------------------------------------------

Commit 810bb18af7fff11efa1dff22c13f595f7842a80c in qpid-dispatch's branch refs/heads/main from Ganesh Murthy
[ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=810bb18 ]

DISPATCH-2106, DISPATCH-2107: Coverity fixes for main branch. This closes #1206


> [libwebsockets] coverity error
> ------------------------------
>
>                 Key: DISPATCH-2107
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-2107
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Protocol Adaptors
>    Affects Versions: 1.16.0
>            Reporter: Ken Giusti
>            Assignee: Ken Giusti
>            Priority: Trivial
>             Fix For: 1.17.0
>
>
> {{*** 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                 }}}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org