[jira] [Created] (DISPATCH-1983) Parsing QD_AMQP__LONG uses wrong type for high-order byte shift

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Created] (DISPATCH-1983) Parsing QD_AMQP__LONG uses wrong type for high-order byte shift

ASF GitHub Bot (Jira)
Charles E. Rolke created DISPATCH-1983:
------------------------------------------

             Summary: Parsing QD_AMQP__LONG uses wrong type for high-order byte shift
                 Key: DISPATCH-1983
                 URL: https://issues.apache.org/jira/browse/DISPATCH-1983
             Project: Qpid Dispatch
          Issue Type: Bug
          Components: Router Node
    Affects Versions: 1.15.0
            Reporter: Charles E. Rolke
            Assignee: Charles E. Rolke
             Fix For: 1.16.0


This error shows up from time to time.

 
{code:java}
19: ../src/parse.c:497:66: runtime error: left shift of 128 by 56 places cannot be represented in type 'long int'
{code}
No self test reproduces it on demand.

Code inspection reveals an easy type-cast fix with no run time impact.



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

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]