sapling/eden/fs/utils/test
Wez Furlong 950c81858c eden: fix buffer advance in FileDescriptor::wrapFull
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
2020-09-02 23:38:18 -07:00
..
test-data read memory stats from /proc/self/statm instead of /proc/self/status 2019-05-28 12:55:41 -07:00
BenchmarkMain.cpp switch from folly benchmark to google benchmark 2020-04-30 09:36:01 -07:00
BucketedLogTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
BugTest.cpp refactor the EDEN_BUG() macro 2019-11-22 15:38:33 -08:00
ChronoTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
ChronoUnitTest.cpp Remove dead includes in eden 2019-10-11 16:45:01 -07:00
CMakeLists.txt utils: add a platform independent FileUtils 2020-08-14 18:56:33 -07:00
CoverageSetTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
FaultInjectorTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
FileDescriptorTest.cpp eden: fix buffer advance in FileDescriptor::wrapFull 2020-09-02 23:38:18 -07:00
FutureTest.cpp add a collectSafe function 2020-02-03 11:30:50 -08:00
IDGenBenchmark.cpp switch from folly benchmark to google benchmark 2020-04-30 09:36:01 -07:00
IDGenTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
IoFutureTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
LazyInitializeTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
MappedDiskVectorTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
MemoryTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
PathFuncsTest.cpp utils: add a platform independent FileUtils 2020-08-14 18:56:33 -07:00
PathMapTest.cpp eden: add CaseSensitive template param to PathMap 2020-09-02 10:19:14 -07:00
ProcessAccessLogBenchmark.cpp switch from folly benchmark to google benchmark 2020-04-30 09:36:01 -07:00
ProcessAccessLogTest.cpp Migrate to field_ref Thrift API 2020-07-21 11:23:35 -07:00
ProcessNameCacheBenchmark.cpp switch from folly benchmark to google benchmark 2020-04-30 09:36:01 -07:00
ProcessNameCacheTest.cpp Tidy up license headers 2019-10-11 05:28:23 -07:00
ProcUtilTest.cpp utils: add a platform independent FileUtils 2020-08-14 18:56:33 -07:00
ScopedEnvVar.cpp enable the fs/utils tests in the Windows build 2020-04-29 11:04:21 -07:00
ScopedEnvVar.h Tidy up license headers 2019-10-11 05:28:23 -07:00
ServiceAddressTest.cpp Remove old getSelection APIs from ServiceSelectorCache 2020-08-14 03:21:12 -07:00
SpawnedProcessTest.cpp eden: introduce SpawnedProcess 2020-09-01 13:31:32 -07:00
UnixSocketTest.cpp Remove dead includes in eden 2019-10-11 16:45:01 -07:00
UserInfoTest.cpp move UserInfo to eden/fs/utils/ 2020-04-29 17:21:12 -07:00
Utf8Test.cpp add some utf-8 helper functions 2020-06-10 19:29:51 -07:00