summaryrefslogtreecommitdiff
path: root/src/stream_base.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream_base.cc')
-rw-r--r--src/stream_base.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream_base.cc b/src/stream_base.cc
index 3139274c6f..27ae0fee7b 100644
--- a/src/stream_base.cc
+++ b/src/stream_base.cc
@@ -154,7 +154,7 @@ int StreamBase::Writev(const FunctionCallbackInfo<Value>& args) {
// Write string
offset = ROUND_UP(offset, WriteWrap::kAlignSize);
- CHECK_LT(offset, storage_size);
+ CHECK_LE(offset, storage_size);
char* str_storage = req_wrap->Extra(offset);
size_t str_size = storage_size - offset;