Uploaded image for project: 'Qpid Dispatch'
  1. Qpid Dispatch
  2. DISPATCH-1589

Policy integer settings not properly checked for overflow

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.10.0
    • None
    • Policy Engine
    • None

    Description

      in config code policy maxFrameSize are treated as a 64-bit integer. When processed by policy code only the bottom 32 bits are placed into a signed 32-bit integer and then checked for a value > 0 at run time.

      A config file with:

          "maxFrameSize": 3000000000

      will set the internal policy value to

          maxFrameSize: -1294967296

      Since this value is negative policy code uses the default value.

      If policy is using only 31 bits then the policy compilers should reject values that don't fit in 31 bits.

      Attachments

        Activity

          People

            chug Charles E. Rolke
            chug Charles E. Rolke
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: