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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • A-MQ 7.0.0.ER17
    • None
    • None

      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.

              rh-ee-ataylor Andy Taylor
              kvanderr@redhat.com Kim van der Riet
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: