We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f573b11 commit 2b5c35aCopy full SHA for 2b5c35a
examples/api/bsoncxx/examples/bson_errors/big_string.hh
@@ -27,8 +27,7 @@ namespace examples {
27
// Used to trigger builder append failure.
28
struct big_string {
29
// BSON_SIZE_MAX == 0x7FFFFFFF
30
- // Leave some room for CDRIVER-5732.
31
- std::size_t length{static_cast<std::size_t>(std::numeric_limits<std::int32_t>::max() - 32u)};
+ std::size_t length{static_cast<std::size_t>(std::numeric_limits<std::int32_t>::max())};
32
33
// Allocate an UNINITIALIZED blob of data that will not be accessed due to length checks.
34
// Leaving memory unitialized (rather than zero-init) should hopefully avoid slow and expensive
0 commit comments