##// END OF EJS Templates
dirs: resolve fuzzer OOM situation by disallowing deep directory hierarchies...
dirs: resolve fuzzer OOM situation by disallowing deep directory hierarchies It seems like 2048 directories ought to be enough for any reasonable use of Mercurial? A previous version of this patch scanned for slashes before any allocations occurred. That approach is slower than this in the happy path, but much faster than this in the case that too many slashes are encountered. We may want to revisit it in the future using memchr() so it'll be well-optimized by the libc we're using. .. bc: Mercurial will now defend against OOMs by refusing to operate on paths with 2048 or more components. This means that _extremely_ deep path hierarchies will be rejected, but we anticipate nobody is using hierarchies this deep. Differential Revision: https://phab.mercurial-scm.org/D7411
Augie Fackler -
r44057:0796e266 default
Show More
Name Size Modified Last Commit Author
/ contrib / packaging
debian
docker
hgpackaging
inno
macosx
wix
Makefile Loading ...
build-linux-wheels.sh Loading ...
builddeb Loading ...
buildrpm Loading ...
dockerdeb Loading ...
dockerrpm Loading ...
hg-docker Loading ...
linux-wheel-centos5-blacklist Loading ...
mercurial.spec Loading ...
packagelib.sh Loading ...
packaging.py Loading ...
requirements.txt Loading ...
requirements.txt.in Loading ...