Commit 68d0116e authored by Kenton Varda's avatar Kenton Varda

Merge pull request #232 from skarab/master

Fix bug dereferencing nullptr when forwarding a large skip
parents 33ebc2a4 589cac45
......@@ -127,7 +127,7 @@ void BufferedInputStreamWrapper::skip(size_t bytes) {
} else {
// Forward large skip to the underlying stream.
bufferAvailable = nullptr;
inner.skip(bytes - bufferAvailable.size());
inner.skip(bytes);
}
}
}
......
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