Uploaded image for project: 'C# Driver'
  1. C# Driver
  2. CSHARP-1289

Fix 32 bit integer overflows in ByteBufferStream and MultiChunkBuffer

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.1
    • Affects Version/s: 2.0
    • Component/s: BSON
    • Labels:
      None

      The current implementations of ByteBufferStream and MultiChunkBuffer use 32 bit integers for certain fields, which limits them to a maximum size of 2GB (minus 1).

      At this point we're not going to change the 2GB limit, but there are certain cases where the current implementation uses 32 bit arithmetic which can result in integer overflow and large values being mis-interpreted as negative numbers, causing odd results.

            Assignee:
            robert@mongodb.com Robert Stam
            Reporter:
            robert@mongodb.com Robert Stam
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: