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

The size field in a CachedBSONObj instance is not endian-safe

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.3.1
    • Component/s: Portability
    • Labels:
      None

      Description

      The first 4 bytes in the buffer are cast into an int in native byte order for read/write. This is incorrect on big-endian platforms.

        Attachments

          Activity

            People

            Assignee:
            tess.avitabile Tess Avitabile
            Reporter:
            bryanpkc Bryan Chan
            Participants:
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: