Uploaded image for project: 'Ignite'
  1. Ignite
  2. IGNITE-5716

.NET: Negative field offset values can be observed on 2-byte offsets

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 1.9
    • 2.1
    • platforms

    Description

      BinaryObjectSchemaSerializer.WriteSchema uses ushort.MaxValue as a boundary for 2-byte offsets. ReadSchema uses ReadShort, which returns negative offsets for anything above short.MaxValue.

      • Ensure that all offsets are always non-negative (use uint in BinaryObjectSchemaField probably)
      • Check how Java handles this
      • Add tests for all edge cases

      Attachments

        Activity

          People

            ptupitsyn Pavel Tupitsyn
            ptupitsyn Pavel Tupitsyn
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: