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

14 of last 15 bytes of journal section may be ignored in computing hash

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: MMAPv1, Storage
    • Labels:
      None
    • Storage Execution
    • ALL

      In Checksum::gen in util/checksum.h:

      • there are up to 15 bytes left over after computing "a" and "b", but they are packed into the 8-byte word "c", so up to 7 may get lost.
      • the bytes are extracted as char, not unsigned char, so they get sign extended then or'ed, so the previously packed bytes may get obscured by the sign bit of the new byte. This code may also be non-portable as it depends on the signedness of the char type.

      The net result is that up to 14 of the last 15 bytes may get ignored in the hash. This seems highly unlikely to make a difference in practice however.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            bruce.lucas@mongodb.com Bruce Lucas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: