Skip to content

Commit

Permalink
Avoid huge input lookup errors (#144)
Browse files Browse the repository at this point in the history
  • Loading branch information
nineinchnick authored Mar 10, 2023
1 parent 01b2782 commit 7263a78
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -16563,7 +16563,7 @@ async function parseFile(file, isFilenameInStackTrace) {

const data = await fs.promises.readFile(file);

const report = libxmljs.parseXml(data + "");
const report = libxmljs.parseXml(data + "", {huge: true});
const testsuites = report.find('//testsuite');

for (const testsuite of testsuites) {
Expand Down
2 changes: 1 addition & 1 deletion utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ async function parseFile(file, isFilenameInStackTrace) {

const data = await fs.promises.readFile(file);

const report = libxmljs.parseXml(data + "");
const report = libxmljs.parseXml(data + "", {huge: true});
const testsuites = report.find('//testsuite');

for (const testsuite of testsuites) {
Expand Down

0 comments on commit 7263a78

Please sign in to comment.