Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-21466

Ensure BufReader reads numeric values in little-endian order

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.3
    • Component/s: Portability
    • Labels:
      None
    • Backwards Compatibility:
      Fully Compatible
    • Operating System:
      ALL
    • Sprint:
      Platforms 10 (02/19/16), Platforms 11 (03/11/16)

      Description

      BufReader has templated read and peak methods which can be used to return numeric values from a buffer (e.g. a BSON object). For portability, these methods should read numeric values in little-endian order and transparently return native-endian results.

      Writing structs to buffers and reading structs from buffers will need additional consideration (or perhaps should be avoided).

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              jason.carey Jason Carey
              Reporter:
              bryanpkc Bryan Chan
              Participants:
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: