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

Do not fassert that object returned from InvalidatingLRUCache is valid

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.10
    • Affects Version/s: None
    • Component/s: Security
    • Labels:
      None
    • Fully Compatible
    • ALL
    • Security 2019-04-08
    • 7

      The InvalidatingLRUCache contains valid objects. However, once an object has been returned, it can be invalidated at any point. This means that it is unsafe to fassert that it is valid. In the past, fassert 17003 was evaluated inside of the mutex which excluded invalidation. It should now be either removed, or moved to a place where the condition is maintained.

            Assignee:
            jonathan.reams@mongodb.com Jonathan Reams
            Reporter:
            spencer.jackson@mongodb.com Spencer Jackson
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: