1. Jun 14, 2023
  2. Jun 07, 2023
  3. May 17, 2023
  4. May 10, 2023
    • Romain Geissler @ Amadeus's avatar
      CDRIVER-4627 use `posix_fallocate` when available (#1244) · 86e23fcd
      Romain Geissler @ Amadeus authored
      Avoids an unexpected crash with SIGBUS when trying to allocate a /dev/shm shared memory but there is not enough memory. 
      
      Indeed ftruncate doesn't ensure memory is properly allocated, it ony
      changes the file size from the VFS point of view, but doesn't actually
      allocate any memory. So ftruncate might work despite we have no memory
      left, and later when trying to zero-memset the mmapped buffer, we might
      actually get a SIGBUS signal crashing the whole process.
      
      Instead, make sure we can allocate the whole shared memory using
      posix_fallocate and gracefully handle allocation problems, without
      crashing.
      
      The chromium project faced a similar issue in the past:
      https://bugs.chromium.org/p/chromium/issues/detail?id=951431
      86e23fcd
  5. May 08, 2023
  6. May 06, 2023
    • Andreas Braun's avatar
      CDRIVER-4635 Reset speculative_auth_response when resetting auth state (#1258) · 42a81842
      Andreas Braun authored
      
      
      * CDRIVER-4635 add regression test
      
      * reset authentication state before creating stream
      
      * remove unnecessary state reset in `mongoc_topology_scanner_node_disconnect`
      
      `mongoc_topology_scanner_node_disconnect` sets `stream` to NULL. That will result in the stream being recreated and state being reset in `mongoc_topology_scanner_node_setup`
      
      * skip `/Client/authenticate_cached/client` when using speculativeAuthentication
      
      This previously passed because SCRAM would fail speculativeAuthentication and restart the authentication steps. The restart would use the SCRAM cache.
      
      Now speculativeAuthentication succeeds. speculativeAuthentication in the topology scanner does not use the SCRAM cache (refer: CDRIVER-3642). This does not result in the expected error.
      
      * Reset scram step along with speculative authentication
      
      ---------
      
      Co-authored-by: default avatarKevin Albertson <kevin.albertson@mongodb.com>
      42a81842
  7. May 03, 2023
    • Kyle Kloberdanz's avatar
      Fix compiler warning (#1254) · ef75b3c9
      Kyle Kloberdanz authored
      GCC 13 warns that `pool` may be used uninitialized. This is a false
      positive because pool will only be used in the case that it is
      initialized, but by initializing it to NULL we can avoid this warning.
      ef75b3c9
  8. Apr 10, 2023
  9. Apr 05, 2023
  10. Mar 29, 2023
  11. Mar 28, 2023
  12. Mar 02, 2023
  13. Jan 10, 2023
  14. Jan 03, 2023
  15. Dec 21, 2022
  16. Dec 20, 2022
  17. Dec 16, 2022
  18. Oct 21, 2022
  19. Oct 20, 2022
  20. Oct 17, 2022
  21. Oct 05, 2022
  22. Aug 31, 2022
  23. Aug 27, 2022
  24. Aug 16, 2022
  25. Aug 11, 2022
  26. Aug 10, 2022
  27. Aug 09, 2022