Skip to content

[bugfix] Fix crash with invalid argument type passed to os.locate #2449

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

Merged
merged 1 commit into from
Mar 22, 2025

Conversation

Jarod42
Copy link
Contributor

@Jarod42 Jarod42 commented Mar 22, 2025

What does this PR do?

[bugfix] Fix crash with invalid argument type passed to os.locate (as os.locate({}))
[doc] Fix doc, os.locate is a variadic function

How does this PR change Premake's behavior?

Replace crash by skipping invalid arguments of os.locate

Anything else we should know?

closes #1912

Did you check all the boxes?

  • Focus on a single fix or feature; remove any unrelated formatting or code changes
  • Add unit tests showing fix or feature works; all tests pass
  • Mention any related issues (put closes #XXXX in comment to auto-close issue when PR is merged)
  • Follow our coding conventions
  • Minimize the number of commits
  • Align documentation to your changes

[doc] Fix doc, `os.locate` is a variadic function
@nickclark2016 nickclark2016 merged commit 8cd7ef9 into premake:master Mar 22, 2025
95 of 96 checks passed
@Jarod42 Jarod42 deleted the os_locate branch March 22, 2025 15: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.

Segmentation fault in os_locate
2 participants