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

Fix 32 bit integer overflows in ByteBufferStream and MultiChunkBuffer

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • 2.1
    • 2.0
    • BSON
    • None

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: