( )⚙ D1156 tests: add test demonstrating regression in path audit

This is an archive of the discontinued Mercurial Phabricator instance.

tests: add test demonstrating regression in path audit
ClosedPublic

Authored by mbthomas on Oct 17 2017, 11:14 AM.

Details

Summary

D785 regressed behavior in path auditing: files can be deleted if they have a
path that conflicts with a filename from a malicious remote or bundle.

This test demonstrates the problem - the file should not have been deleted.

Diff Detail

Repository
rHG Mercurial
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.

Event Timeline

mbthomas created this revision.Oct 17 2017, 11:14 AM
ryanmce accepted this revision.Oct 17 2017, 5:10 PM
This revision is now accepted and ready to land.Oct 17 2017, 5:10 PM
This revision was automatically updated to reflect the committed changes.