mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +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 |
||
---|---|---|
.. | ||
test-data | ||
BenchmarkMain.cpp | ||
BucketedLogTest.cpp | ||
BugTest.cpp | ||
ChronoTest.cpp | ||
ChronoUnitTest.cpp | ||
CMakeLists.txt | ||
CoverageSetTest.cpp | ||
FaultInjectorTest.cpp | ||
FileDescriptorTest.cpp | ||
FutureTest.cpp | ||
IDGenBenchmark.cpp | ||
IDGenTest.cpp | ||
IoFutureTest.cpp | ||
LazyInitializeTest.cpp | ||
MappedDiskVectorTest.cpp | ||
MemoryTest.cpp | ||
PathFuncsTest.cpp | ||
PathMapTest.cpp | ||
ProcessAccessLogBenchmark.cpp | ||
ProcessAccessLogTest.cpp | ||
ProcessNameCacheBenchmark.cpp | ||
ProcessNameCacheTest.cpp | ||
ProcUtilTest.cpp | ||
ScopedEnvVar.cpp | ||
ScopedEnvVar.h | ||
ServiceAddressTest.cpp | ||
SpawnedProcessTest.cpp | ||
UnixSocketTest.cpp | ||
UserInfoTest.cpp | ||
Utf8Test.cpp |