Skip to content

Commit

Permalink
fixup! fix: eliminate ReDoS
Browse files Browse the repository at this point in the history
  • Loading branch information
Trott committed Feb 3, 2021
1 parent c9599bf commit f0d71f9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -209,6 +209,13 @@ describe('glob2base test patterns', function() {

done();
});

it('should not be susceptible to SNYK-JS-GLOBPARENT-1016905', function(done) {
// This will time out if susceptible.
gp('{' + '/'.repeat(5000));

done();
});
});

if (isWin32) {
Expand Down

0 comments on commit f0d71f9

Please sign in to comment.