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

Define iterator-based decompressor behavior when shifting a long more than 64 bits

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 8.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
      None
    • Storage Execution
    • Fully Compatible
    • QI 2024-03-04

      Inputs that are just deltas without an uncompressed byte can lead to a bit shift that is higher than 64 for a long on this line. This is undefined behavior, but it is gracefully handled by the decompressor currently (an error is raised in the materializer), so no errors are occurring in production. However, the bson_column_validate_fuzzer is crashing. We should fix this issue explicitly.  The full output of the fuzzer is in the comments.

            Assignee:
            gil.alon@mongodb.com Gil Alon
            Reporter:
            gil.alon@mongodb.com Gil Alon
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Created:
              Updated:
              Resolved: