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 df863f9 commit ab71c21Copy full SHA for ab71c21
src/string_bytes.cc
@@ -524,7 +524,7 @@ size_t StringBytes::hex_encode(
524
char* dst,
525
size_t dlen) {
526
527
- CHECK(slen * 2 > slen && "overflow in hex encode");
+ CHECK(slen * 2 >= slen && "overflow in hex encode");
528
529
// We know how much we'll write, just make sure that there's space.
530
CHECK(dlen >= slen * 2 &&
0 commit comments