NonCheckpointEndNonPageFails test relies on uninitialized variable

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • None
    • Server Security
    • ALL
    • Hide

      To reproduce, build with --cxxopt=-ftrivial-auto-var-init=zero and then run that test:

      bazel build --config=dbg --cxxopt=-ftrivial-auto-var-init=zero src/mongo/db/modules/atlas/src/disagg_storage/encryption:sls_log_encryption_test
      ./bazel-bin/src/mongo/db/modules/atlas/src/disagg_storage/encryption/sls_log_encryption_test --filter NonCheckpointEndNonPageFails
      
      
      
      Show
      To reproduce, build with --cxxopt=-ftrivial-auto-var-init=zero and then run that test: bazel build --config=dbg --cxxopt=-ftrivial-auto- var -init=zero src/mongo/db/modules/atlas/src/disagg_storage/encryption:sls_log_encryption_test ./bazel-bin/src/mongo/db/modules/atlas/src/disagg_storage/encryption/sls_log_encryption_test --filter NonCheckpointEndNonPageFails
    • Server Security 2026-01-02
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The test onCheckpointEndNonPageFails, in src/mongo/db/modules/atlas/src/disagg_storage/encryption/sls_phylog_encryptor_test.cpp, relies on the uninitialized member variable EncryptDecryptParams::type not being initialized to zero. If it is initialized to zero, the invariant invariant(type != EncryptDecryptParamsType::kOplog) inĀ  EncryptDecryptParams::encodeEntryDataForAEAD() will fail, as type will be zero, i.e., kOplog.

            Assignee:
            Adrian Gonzalez Montemayor
            Reporter:
            Ryan Berryhill
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: