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 2022/03/17 17:18:00 UTC

[jira] [Commented] (DISPATCH-2333) Fix assert that is always true (detected by Coverity Scan)

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

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

Commit b58ce50bee634e4dd2155d19ae68ad5184eea0ed in qpid-dispatch's branch refs/heads/dependabot/npm_and_yarn/console/react/react-scripts-5.0.0 from Ken Giusti
[ https://gitbox.apache.org/repos/asf?p=qpid-dispatch.git;h=b58ce50 ]

DISPATCH-2333: fix incorrect assertion check

This closes #1528


> Fix assert that is always true (detected by Coverity Scan)
> ----------------------------------------------------------
>
>                 Key: DISPATCH-2333
>                 URL: https://issues.apache.org/jira/browse/DISPATCH-2333
>             Project: Qpid Dispatch
>          Issue Type: Bug
>          Components: Policy Engine
>    Affects Versions: 1.18.0
>            Reporter: Ken Giusti
>            Assignee: Ken Giusti
>            Priority: Trivial
>             Fix For: 1.19.0
>
>
> In policy.c:
> 292    uint64_t nc = n_connections;
> 293    assert (n_connections >= 0);
>  
> n_connections >= 0 is always true regardless of the values of its operands.



--
This message was sent by Atlassian Jira
(v8.20.1#820001)

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