Skip to content

Commit d4feffb

Browse files
committed
Remove workaround for CDRIVER-5732
1 parent 6594184 commit d4feffb

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

examples/api/bsoncxx/examples/bson_errors/big_string.hh

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,8 +27,7 @@ namespace examples {
2727
// Used to trigger builder append failure.
2828
struct big_string {
2929
// 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)};
30+
std::size_t length{static_cast<std::size_t>(std::numeric_limits<std::int32_t>::max())};
3231

3332
// Allocate an UNINITIALIZED blob of data that will not be accessed due to length checks.
3433
// Leaving memory unitialized (rather than zero-init) should hopefully avoid slow and expensive

0 commit comments

Comments
 (0)