Skip to content

Commit ab71c21

Browse files
committed
fix: zero may be a possibility in one of the multiverse
1 parent df863f9 commit ab71c21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/string_bytes.cc

+1-1
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,7 @@ size_t StringBytes::hex_encode(
524524
char* dst,
525525
size_t dlen) {
526526

527-
CHECK(slen * 2 > slen && "overflow in hex encode");
527+
CHECK(slen * 2 >= slen && "overflow in hex encode");
528528

529529
// We know how much we'll write, just make sure that there's space.
530530
CHECK(dlen >= slen * 2 &&

0 commit comments

Comments
 (0)