diff options
author | aozeritsky <aozeritsky@ydb.tech> | 2023-11-20 18:32:42 +0300 |
---|---|---|
committer | aozeritsky <aozeritsky@ydb.tech> | 2023-11-20 21:45:14 +0300 |
commit | 01d3c6da4b2b3d86a37b7b83ca5820d7a221fcb5 (patch) | |
tree | 589cad8edefa03b77f6b5b316a3a6291965abf31 | |
parent | e8c3ac52f2be09161284901853ba0234dd2c9030 (diff) | |
download | ydb-01d3c6da4b2b3d86a37b7b83ca5820d7a221fcb5.tar.gz |
Fix loading rope from closed pipe
-rw-r--r-- | ydb/library/yql/providers/dq/task_runner/tasks_runner_pipe.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ydb/library/yql/providers/dq/task_runner/tasks_runner_pipe.cpp b/ydb/library/yql/providers/dq/task_runner/tasks_runner_pipe.cpp index 372efc48dd..749df5783f 100644 --- a/ydb/library/yql/providers/dq/task_runner/tasks_runner_pipe.cpp +++ b/ydb/library/yql/providers/dq/task_runner/tasks_runner_pipe.cpp @@ -67,6 +67,7 @@ void Load(IInputStream& input, void* buf, size_t size) { char* p = (char*)buf; while (size) { auto len = input.Read(p, size); + YQL_ENSURE(len != 0); p += len; size -= len; } |