mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +03:00
950c81858c
Summary: The loop took care to advance `b` to match the amount of data that it had processed, but was still passing `buf` (the unadjusted start of the buffer) to the syscalls. This meant that in situations where a `readFull` might encounter a partial read, it would scribble over the start of the buffer and leave junk at the end. For example: write("hell"); write("o"); could produce "oell?" in the buffer when `readFull` consumes the other end of the pipe. Reviewed By: xavierd Differential Revision: D23486270 fbshipit-source-id: 0848f6789b44421b609b91fe08890768ff59f7f5 |
||
---|---|---|
.. | ||
benchharness | ||
benchmarks | ||
cli | ||
config | ||
docs | ||
fuse | ||
inodes | ||
journal | ||
model | ||
monitor | ||
notifications | ||
py | ||
rocksdb | ||
service | ||
sqlite | ||
store | ||
takeover | ||
telemetry | ||
testharness | ||
third-party | ||
utils | ||
win | ||
CMakeLists.txt |