mirror of
https://github.com/facebook/sapling.git
synced 2024-10-11 01:07:15 +03:00
b90a9504f0
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 |
||
---|---|---|
.. | ||
mount | ||
service | ||
store | ||
testharness | ||
utils | ||
CMakeLists.txt | ||
Edenwin.h |