commit | 6b80d4913b5d2a4ebbfd176a11c66a4726a42381 | [log] [tgz] |
---|---|---|
author | Craig Tiller <craig.tiller@gmail.com> | Wed Nov 18 07:05:54 2015 -0800 |
committer | Craig Tiller <craig.tiller@gmail.com> | Wed Nov 18 07:05:54 2015 -0800 |
tree | 8ac1d9eb5454799439c3c2b40ddf6b8ad2c54191 | |
parent | bd50ed8057aa9823a0fd4d0b6d5b1722c199a70d [diff] |
Edge case cleanup
diff --git a/src/core/support/slice_buffer.c b/src/core/support/slice_buffer.c index 17c0b6c..856d3a2 100644 --- a/src/core/support/slice_buffer.c +++ b/src/core/support/slice_buffer.c
@@ -220,7 +220,7 @@ return; } src_idx = 0; - for (;;) { + while (src_idx < src->capacity) { gpr_slice slice = src->slices[src_idx]; size_t slice_len = GPR_SLICE_LENGTH(slice); if (n > slice_len) {