BSONElement.h permits unsafe conversion of ::date to ::timestamp

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

      This issue was the root cause of a handful of bugs related to the timeseries write path 

      SERVER-118945 and SERVER-94471

       

       

      Show
      This issue was the root cause of a handful of bugs related to the timeseries write path  SERVER-118945 and SERVER-94471    
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      The BSON element function ::timestamp will convert BSON elements of type ::date or ::timestamp.  However, these types are not compatible save for occupying the same memory footprint, making this functionality effectively a `bit_bast`.  

            Assignee:
            Unassigned
            Reporter:
            Benjamin Pearce
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: