Skip to content
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[jssrc2cpg] Fixed crash on Windows #3980

Merged
merged 1 commit into from
Dec 20, 2023
Merged

[jssrc2cpg] Fixed crash on Windows #3980

merged 1 commit into from
Dec 20, 2023

Conversation

max-leuthaeuser
Copy link
Contributor

filename may already be an absolute path on Windows systems when running jssrc2cpg with an absolute path as input directory because node.js Babel works differently there (keeping that absolute path). When calling in / filename we would crash on Windows because concatenating two absolute paths with better.files throws an exception then.

`filename` may already be an absolute path on Windows systems when running jssrc2cpg with an absolute path as input directory because node.js Babel works differently there (keeping that absolute path).
When calling `in / filename` we would crash on Windows because concatenating two absolute paths with better.files throws an exception then.
@max-leuthaeuser max-leuthaeuser merged commit e6bf9d0 into master Dec 20, 2023
5 checks passed
@max-leuthaeuser max-leuthaeuser deleted the max/fixWinCrash branch December 20, 2023 09:28
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants