Commit 452a30d7 authored by Max Kellermann's avatar Max Kellermann

input/Curl: break loop when remaining length becomes 0

Fixes assertion failure (regression).
parent 49e79620
......@@ -776,6 +776,9 @@ read_from_buffer(IcyMetaDataParser &icy, std::list<CurlInputBuffer> &buffers,
buffers.pop_front();
break;
}
if (length == 0)
break;
}
chunk = icy.Meta(buffer.Begin(), length);
......@@ -788,6 +791,9 @@ read_from_buffer(IcyMetaDataParser &icy, std::list<CurlInputBuffer> &buffers,
buffers.pop_front();
break;
}
if (length == 0)
break;
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment