Uploaded image for project: 'A-MQ Broker'
  1. A-MQ Broker
  2. ENTMQBR-56

[Artemis] AMQP 1.0 floating point value NaN is stripped of its sign

    Details

    • Type: Bug
    • Status: Done
    • Priority: Minor
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: A-MQ 7.0.0.ER17
    • Component/s: None
    • Labels:

      Description

      IEEE 754-1985 Defines special floating point values for NaN and Inf. Each of these types includes the sign bit, which should be preserved in the body of a message containing an AMQP float or double type.

      Artemis strips the sign from the NaN encoding in both 32- and 64-bit floating point numbers (although it does not have this issue with inf). For 32-bit numbers:
      -NaN (0xffc00000) is returned as NaN (0x7fc00000)
      and similarly for 64-bit:
      -NaN(0xfff8000000000000) is returned as NaN (0x7ff8000000000000)

      While it is true that mathematically and logically, there is no significance to the sign for this value, nevertheless this represents an altering of the intended message body by the broker.

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                ataylor Andy Taylor
                Reporter:
                kvanderr Kim van der Riet
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: