-
Notifications
You must be signed in to change notification settings - Fork 455
Comparing changes
Open a pull request
base repository: mongodb/mongo-c-driver
base: 1.30.3
head repository: mongodb/mongo-c-driver
compare: master
Commits on Feb 5, 2025
-
Configuration menu - View commit details
-
Copy full SHA for fb045b8 - Browse repository at this point
Copy the full SHA fb045b8View commit details
Commits on Feb 6, 2025
-
Configuration menu - View commit details
-
Copy full SHA for fec89a6 - Browse repository at this point
Copy the full SHA fec89a6View commit details
Commits on Feb 7, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 6856300 - Browse repository at this point
Copy the full SHA 6856300View commit details -
CDRIVER-5859 Integer comparison macro (#1845)
* Integer type and range utilities. This will lay the basis for more convenient checked arithmetic going forward. * mlib/config.h header for common platform detection and utility macros * Integer comparison utilities. These are intended to replace existing integer comparison functions/macros. Having different comparison functions for differing sign/size combinations is error-prone, resists refactoring, and requires programmer diligence at call sites. `mlib_cmp` is a single macro that works with all integer types, regardless of sign or size. `mlib_cmp` internally branches on the signedness properties of the operands. In unoptimized cases, this may be slower, but any inliner should trivially eliminate the dead code branches. * Mass update: Replace `mcommon_cmp` with `mlib_cmp` * Rename variable to not fight with clang-format * Mark mlib_cmp as force-inline * Add a link-time check in release builds If we are building in optimized mode, we check that any calls to `mlib_cmp` are inlined and that DCE passes over the inlined result. * Move mcommon tests into mlib test file
Configuration menu - View commit details
-
Copy full SHA for a842546 - Browse repository at this point
Copy the full SHA a842546View commit details
Commits on Feb 10, 2025
-
Suppress -Wdeprecated-declarations warnings for Cyrus Sasl and Secure…
… Transport on MacOS (#1850) * CDRIVER-5879 remove global -Wno-deprecated-declarations on MacOS * CDRIVER-5867 address Cyrus SASL and Secure Transport -Wdeprecated-declarations warnings on MacOS
Configuration menu - View commit details
-
Copy full SHA for 9ef7136 - Browse repository at this point
Copy the full SHA 9ef7136View commit details -
CDRIVER-5854 Reserve final byte of bson_error_t for error category di…
…sambiguation (#1834) * Use simple copy instead of memcpy * Relocate and refactor _mongoc_get_server_id_from_opts * Add bson_set_error_category * Add _mongoc_set_error* * Transitively include mongoc-error.h in mongoc-error-private.h * Address -Wmissing-field-initializers warnings * Relocate BSON_ERROR_BUFFER_SIZE changelog entry to 2.0.0 section * CDRIVER-362 remove handling of obsoleve server error 13390 * Refactor common command error handling to _mongoc_cmd_set_error
Configuration menu - View commit details
-
Copy full SHA for d367d65 - Browse repository at this point
Copy the full SHA d367d65View commit details
Commits on Feb 11, 2025
-
Configuration menu - View commit details
-
Copy full SHA for bfc1405 - Browse repository at this point
Copy the full SHA bfc1405View commit details -
CDRIVER-5889: Fix BSON_NORETURN for C23 standard (#1859)
* Fix C23 version of BSON_NORETURN macro definition
mdbmes authoredFeb 11, 2025 Configuration menu - View commit details
-
Copy full SHA for 0924826 - Browse repository at this point
Copy the full SHA 0924826View commit details
Commits on Feb 14, 2025
-
Fix example code for
bson_writer_t
in docs (#1861)* Fix declaration issue of variable `i` * Fix invalid usage of `BSON_APPEND_INT32` First parameter should be `bson_t *` instead of `bson_t **`. --------- Signed-off-by: linraymond2006 <linraymond2006@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 02598b1 - Browse repository at this point
Copy the full SHA 02598b1View commit details
Commits on Feb 18, 2025
-
CDRIVER-5897 Remove duplicated variable assignment in bson-decimal128…
….c (#1860) Signed-off-by: linraymond2006 <linraymond2006@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 8422cad - Browse repository at this point
Copy the full SHA 8422cadView commit details
Commits on Feb 19, 2025
-
Add description for
dst
parameter ofbson_value_copy
(#1874)`dst` should be uninitialized to prevent memory leak Signed-off-by: linraymond2006 <linraymond2006@gmail.com>
Configuration menu - View commit details
-
Copy full SHA for 0bfc37b - Browse repository at this point
Copy the full SHA 0bfc37bView commit details -
Configuration menu - View commit details
-
Copy full SHA for 69ed532 - Browse repository at this point
Copy the full SHA 69ed532View commit details
Commits on Feb 20, 2025
-
sync RPM spec w/ upstream (#1871)
note: back out gcc-15 patch, since it wouldn't apply in any event
Configuration menu - View commit details
-
Copy full SHA for 9049872 - Browse repository at this point
Copy the full SHA 9049872View commit details -
CDRIVER-5900 sync
non-lb-connection-establishment
(#1873)To specifications commit d05c33e0a6124ee7d1a9de665084d540b2ff06c5
Configuration menu - View commit details
-
Copy full SHA for e5bc5a8 - Browse repository at this point
Copy the full SHA e5bc5a8View commit details
Commits on Feb 24, 2025
-
CDRIVER-5904 update scripts and release instructions for SilkBomb 2.0 (…
…#1882) * Remove create-silk-asset-group and related references * Remove Earthly sbom-download * Update Earthly sbom-generate for SilkBomb 2.0 * Add Earthly sbom-validate and sbom-generate-new-serial-number * Add SBOM task to EVG config
Configuration menu - View commit details
-
Copy full SHA for 53f9fec - Browse repository at this point
Copy the full SHA 53f9fecView commit details -
[CDRIVER-5881] Remove the "forwarding" headers (#1881)
* [CDRIVER-5881] Remove the "forwarding" headers The "forwarding" headers were added in 1.13.0 to support programs that include "mongoc.h" or "bson.h" directly. We now require that the header names be prefixed with their parent directory name. * Remove tests against C++ driver r3.8.0 This version of the C++ library relies on the presence of the forwarding headers, and is thus incompatible.
Configuration menu - View commit details
-
Copy full SHA for 52a8afe - Browse repository at this point
Copy the full SHA 52a8afeView commit details -
Configuration menu - View commit details
-
Copy full SHA for e34a897 - Browse repository at this point
Copy the full SHA e34a897View commit details
Commits on Feb 25, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 9d50274 - Browse repository at this point
Copy the full SHA 9d50274View commit details
Commits on Feb 26, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 0dc839c - Browse repository at this point
Copy the full SHA 0dc839cView commit details -
CDRIVER-5912 fix
bounds-strict
sanitizer (#1887)Remove size from flexible array member declaration of `jsonsl_st::stack`
Configuration menu - View commit details
-
Copy full SHA for e93245d - Browse repository at this point
Copy the full SHA e93245dView commit details
Commits on Feb 27, 2025
-
CDRIVER-5861 support
$lookup
in CSFLE and QE (#1880)* update table for test mock servers * remove trailing colons in error message * update libmongocrypt * pass all `listCollections` results to libmongocrypt Accounts for updated protocol in MONGOCRYPT-723. * fail test on error in `get_bson_from_json_file` * add test wire version checks for server 8.1 * use `const` in `ASSERT_EQUAL_BSON` * implement prose tests * apply majority write concern * drop individual collections To match latest revision of prose tests * fix param name
Configuration menu - View commit details
-
Copy full SHA for 33ed617 - Browse repository at this point
Copy the full SHA 33ed617View commit details -
CDRIVER-5891 extend C standard coverage up to C23 (#1890)
* Ensure CC and CXX consistency, use CMAKE_GENERATOR for Visual Studio * Use ls_distro to reduce boilerplate * Sort std-matrix tasks by compiler and version * Support /std:clatest with MSVC * Exclude -Wc++98-compat warnings from public-header-warnings * Exclude -Wpre-c2x-compat warnings from public-header-warnings * Exclude -Wunsafe-buffer-usage from public-header-warnings * Address C2X compatibility issues due to _Bool macro expansions
Configuration menu - View commit details
-
Copy full SHA for 9b19be9 - Browse repository at this point
Copy the full SHA 9b19be9View commit details
Commits on Feb 28, 2025
-
[CDRIVER-5916] Deprecate the Hedged-Reads APIs (#1889)
* Tweak definition of deprecation macros. We now emit deprecation warnings on MSVC as well, and all deprecation warnings now include a string message, if possible. * Update existing deprecation attributes and formatting - Replace use of `BSON_GNUC_DEPRECATED...` with `BSON_DEPRECATED...` - Reformat attribute macros as attributes according to clang-format. - Give dense API listings in public headers some breathing room. * A macro to disable deprecation warnings with _Pragma * Annotate and document "hedge" APIs as deprecated
Configuration menu - View commit details
-
Copy full SHA for d6f975d - Browse repository at this point
Copy the full SHA d6f975dView commit details -
Configuration menu - View commit details
-
Copy full SHA for b9045da - Browse repository at this point
Copy the full SHA b9045daView commit details
Commits on Mar 3, 2025
-
CDRIVER-5915: Fix for allocation of bson_t larger than half max size (#…
…1891) addresses CDRIVER-5915, fixing three closely related problems: * rounding allocation size to the next power of two could cause BSON_MAX_SIZE to be exceeded * bson_reserve_buffer allocated more space than requested, equal to the previous document length * test_bson_reserve_buffer_errors had a flawed "too big" case which was masked by the other two issues additionally: * adds a test for allocating bson_t of exactly max size (on 64-bit systems only) * fix for potential integer overflow in bson_reserve_buffer() with overlong size * comments and assertions related to bson_t max size assumptions
mdbmes authoredMar 3, 2025 Configuration menu - View commit details
-
Copy full SHA for 57bffac - Browse repository at this point
Copy the full SHA 57bffacView commit details -
CDRIVER-5914: fix for internal issue (#1894)
mdbmes authoredMar 3, 2025 Configuration menu - View commit details
-
Copy full SHA for ba380a3 - Browse repository at this point
Copy the full SHA ba380a3View commit details
Commits on Mar 6, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 02760dc - Browse repository at this point
Copy the full SHA 02760dcView commit details -
Configuration menu - View commit details
-
Copy full SHA for 3c349a4 - Browse repository at this point
Copy the full SHA 3c349a4View commit details -
CDRIVER-5641: BSON Binary Vector Subtype Support (#1868)
* Resolves CDRIVER-5641 by documenting and implementing new BSON Binary Vector APIs * Synced bson_binary_vector and bson_corpus spec tests from specifications commit 585b797c110b6709f81def6200b946b94c8d9c55 * tests: Full support for the existing version of the spec test suite. * tests: TODOs mark spec test improvements that depend on DRIVERS-3095 and DRIVERS-3097. * tests: Additional API usage and fuzzing. * New BSON Binary APIs: bson_append_binary_uninit, bson_iter_binary_equal, bson_iter_binary_subtype, bson_iter_overwrite_binary * Extend existing big-endian byte swapping API for 32-bit float * Compiler support for restricted pointer aliasing using BSON_RESTRICT. * Added note about the differing public and private API of bson_iter_binary and friends * ASSERT_MEMCMP improvements: eval inputs once inside parens, show a hex dump on mismatch, include error location.
mdbmes authoredMar 6, 2025 Configuration menu - View commit details
-
Copy full SHA for 1126b6e - Browse repository at this point
Copy the full SHA 1126b6eView commit details -
CDRIVER-5641: Build fix for _FORTIFY_SOURCE (#1899)
mdbmes authoredMar 6, 2025 Configuration menu - View commit details
-
Copy full SHA for 01101f4 - Browse repository at this point
Copy the full SHA 01101f4View commit details
Commits on Mar 7, 2025
-
[CDRIVER-5859] Enable sign-compare warnings globally, and fix them all (
#1856) * Add a statement macro that can assert SIGABRT The `mlib_assert_aborts` macro checks that the following statement terminates the process with SIGABRT. This relies on `fork()`, so it only works on Unix systems. On Win32 it is a no-op. * New test assertion macro * Integer range looping macro. `mlib_foreach_irange` and `mlib_foreach_urange` provide concise looping over an integral range. * Looping over arrays * Replace all sign-compare loops with macro loops. This change swaps any `for (...)` loops that trigger `-Wsign-compare` with `mlib/loop` macros. This also simplifies redundant code around looping over array elements. * Integer encoding utilities. This adds function for reading little-endian i32, u32, i64, and u64 from pointers to memory. This allows us to decode integers in a single line instead of doing a declare+memcpy+byteswap that clutters the code and prevents us from using `const` and correct signedness. Instead, we can declare and initialize integers of the exact size and sign that we want in a single line. * Use integer decoding functions throughout the codebase * Enable sign-compare warnings globally, and fix every occurrence
Configuration menu - View commit details
-
Copy full SHA for 9152773 - Browse repository at this point
Copy the full SHA 9152773View commit details
Commits on Mar 10, 2025
-
Configuration menu - View commit details
-
Copy full SHA for d2ac281 - Browse repository at this point
Copy the full SHA d2ac281View commit details -
CDRIVER-5743: NUL terminate string, handle more error cases (#1903)
* NUL termination and error handling fixes for mongoc_secure_channel_setup_ca
mdbmes authoredMar 10, 2025 Configuration menu - View commit details
-
Copy full SHA for edb2cce - Browse repository at this point
Copy the full SHA edb2cceView commit details -
Configuration menu - View commit details
-
Copy full SHA for db338a0 - Browse repository at this point
Copy the full SHA db338a0View commit details -
Clean up Earthly task generation, add missing tasks (#1906)
A recent change in task definitions caused the sasl=off tasks to be fully excluded from the Earthly task matrix. This was also caught by pylance/pyright in the earthly.py file when it detects unreachable branches. This small changeset re-enables those tasks and makes earthly.py warning-free.
Configuration menu - View commit details
-
Copy full SHA for 0d5145e - Browse repository at this point
Copy the full SHA 0d5145eView commit details -
CDRIVER-5880: Remove workaround for DRIVERS-3095, defer other test im…
…provements (#1901) * DRIVERS-3095: Update float32 test (specifications change ccd72de68cc29b68fe55a79ad44d20b20ad1b4e7) * CDRIVER-5880: Remove workaround for DRIVERS-3095, defer other test improvements
mdbmes authoredMar 10, 2025 Configuration menu - View commit details
-
Copy full SHA for c186295 - Browse repository at this point
Copy the full SHA c186295View commit details
Commits on Mar 11, 2025
-
CDRIVER-5743 Followup fix for signedness warning (#1907)
mdbmes authoredMar 11, 2025 Configuration menu - View commit details
-
Copy full SHA for be04a7e - Browse repository at this point
Copy the full SHA be04a7eView commit details -
CDRIVER-5641: Fixes for packed_bit edge cases on systems with 32-bit …
…size_t (#1904)
mdbmes authoredMar 11, 2025 Configuration menu - View commit details
-
Copy full SHA for 136c3db - Browse repository at this point
Copy the full SHA 136c3dbView commit details
Commits on Mar 12, 2025
-
Configuration menu - View commit details
-
Copy full SHA for 0dfdb56 - Browse repository at this point
Copy the full SHA 0dfdb56View commit details
Commits on Mar 13, 2025
-
CDRIVER-5925 apply
batchSize:0
toaggregate
in change stream (#1909)Apply `batchSize:0` to `aggregate` for change stream when specified. Previously it was ignored.
Configuration menu - View commit details
-
Copy full SHA for 27d2a68 - Browse repository at this point
Copy the full SHA 27d2a68View commit details -
CDRIVER-955 remove
mongoc_matcher_t
(#1910)And provide migration suggestion in NEWS
Configuration menu - View commit details
-
Copy full SHA for 3a4c071 - Browse repository at this point
Copy the full SHA 3a4c071View commit details -
Configuration menu - View commit details
-
Copy full SHA for 64dc7a7 - Browse repository at this point
Copy the full SHA 64dc7a7View commit details -
Configuration menu - View commit details
-
Copy full SHA for d88f042 - Browse repository at this point
Copy the full SHA d88f042View commit details -
CDRIVER-4006 remove deprecated public API with oppressive language (#…
…1908) * remove `mongoc_server_description_ismaster` * remove `MONGOC_QUERY_SLAVE_OK` * remove `MONGOC_URI_SLAVEOK`
Configuration menu - View commit details
-
Copy full SHA for fe10e17 - Browse repository at this point
Copy the full SHA fe10e17View commit details -
Configuration menu - View commit details
-
Copy full SHA for f2ed9aa - Browse repository at this point
Copy the full SHA f2ed9aaView commit details
Commits on Mar 17, 2025
-
CDRIVER-4489 refactor URI auth finalization by authentication mechan…
…ism (#1896) * CDRIVER-3517 promote empty authSource to client error * CDRIVER-4128 promote invalid or unsupported CANONICALIZE_HOST_NAME values to client error * CDRIVER-5773 further remove support and testing of MONGODB-CR * CDRIVER-5776 avoid assertions for null fields * CDRIVER-5811 remove test skip for MONGODB-AWS username and password validation * CDRIVER-5812 remove workaround for incorrect MONGODB-AWS authSource * Modernize test code for URI and connection strings * Remove obsolete(?) comment concerning GSSAPISERVICENAME overwrites * Update wording for NEWS entries
Configuration menu - View commit details
-
Copy full SHA for ae43242 - Browse repository at this point
Copy the full SHA ae43242View commit details -
Configuration menu - View commit details
-
Copy full SHA for 803d005 - Browse repository at this point
Copy the full SHA 803d005View commit details -
CDRIVER-5711 remove
mongoc_collection_delete
and unused flags (#1923)* remove `mongoc_collection_delete` * remove `mongoc_delete_flags_t` * remove `mongoc_reply_flags_t` from public API
Configuration menu - View commit details
-
Copy full SHA for a5fbace - Browse repository at this point
Copy the full SHA a5fbaceView commit details -
Configuration menu - View commit details
-
Copy full SHA for 846c115 - Browse repository at this point
Copy the full SHA 846c115View commit details -
Configuration menu - View commit details
-
Copy full SHA for 2846383 - Browse repository at this point
Copy the full SHA 2846383View commit details
There are no files selected for viewing
This file was deleted.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.