sapling/eden/fs/win
Xavier Deguillard b90a9504f0 win: improve getFileSha1 to not trigger a stack overflow
Summary:
In order to build a StringPiece from a C-string, the length of the that
string needs to be known, and a constexp strlen is performed on it. That
strlen is however a recursive one, causing the stack to blow up on big file.

Interestingly enough, this also means that binary files potentially had a
wrong sha1 being computed, potentially causing `hg status` to report some
files as being modified, while they aren't. By switching to using a vector
instead of a string, the intent should of this should be more obvious.

Reviewed By: simpkins

Differential Revision: D21551331

fbshipit-source-id: 2dc1f08d96f49d310593e0e934a03215be2b5cbb
2020-05-13 11:44:30 -07:00
..
mount win: change the argument order for writeFile 2020-05-05 18:14:54 -07:00
service Add the --foreground flag to run the edenfs as a console application. 2020-05-01 20:00:07 -07:00
store Switch to new EdenMount 2020-04-24 08:33:27 -07:00
testharness Add APIs to remove cached files and tombstones from ProjectedFS cache 2020-04-24 12:46:18 -07:00
utils win: improve getFileSha1 to not trigger a stack overflow 2020-05-13 11:44:30 -07:00
CMakeLists.txt Remove old version of Windows TestMounts 2020-04-24 08:33:27 -07:00
Edenwin.h Tidy up license headers 2019-10-11 05:28:23 -07:00