Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Avoid unhandled rejection on XML parse error#813

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

papandreou
Copy link
Contributor

Ran into some maliciously crafted .xlsx files that contained invalid XML, which triggered an unhandled rejection because the stream no longer had an error handler at that point. Seems like I introduced this bug myself back in#541, so it's only fair that I fix it.

The test case is a little out there, but I couldn't find another way to test for an unhandled rejection. Theworkbook.xlsx.readFile promise already got rejected as it was supposed to.

@alubbe
Copy link
Member

There seems to something wrong with your prettier configuration, did you runnpm install before committing? Can you try fixing it?

@papandreou
Copy link
ContributorAuthor

Theprettier setup looked incomplete, and there seemed to be some dev deps missing, so I just tried some things to satisfy the pre-commit hook.
Not near a computer right now and won’t be for a while, so you’re very welcome to just ditch the last commit and fix up the formatting the right way.

@guyonroche
Copy link
Collaborator

@alubbe regarding the prettier - I changed the config to be lint only - without the fixing as I ended up with a situation where the fixer was outputting code that the linter rejected. In a way - I tend to prefer fixing the lint issues manually it gives the chance to fix the code in a better way than the lint fixer can

@guyonrocheguyonroche merged commitb16751c intoexceljs:masterMay 16, 2019
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
None yet
Projects
None yet
Milestone
No milestone
Development

Successfully merging this pull request may close these issues.

3 participants
@papandreou@alubbe@guyonroche

[8]ページ先頭

©2009-2025 Movatter.jp