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

Ban sun.misc.Unsafe #4

Merged
merged 3 commits into from
Dec 22, 2023
Merged

Ban sun.misc.Unsafe #4

merged 3 commits into from
Dec 22, 2023

Conversation

kiritofeng
Copy link
Member

Ban sun.misc.Unsafe by default. It can be re-enabled by passing the unsafe option.

If you're using sun.misc.Unsafe in a contest-programming setting, odds are you're doing something silly anyways...

@kiritofeng kiritofeng requested a review from quantum5 December 21, 2023 20:57
@kiritofeng kiritofeng force-pushed the ban-unsafe branch 2 times, most recently from b4244af to cf04463 Compare December 21, 2023 22:23
@kiritofeng kiritofeng force-pushed the ban-unsafe branch 3 times, most recently from 977a77d to b4f5732 Compare December 22, 2023 00:00
@kiritofeng kiritofeng requested a review from quantum5 December 22, 2023 00:01
@kiritofeng
Copy link
Member Author

Tested this against DMOJ/judge-server@d50d7fb and it successfully blocks Unsafe.

Copy link
Member

@quantum5 quantum5 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks fine, some nits. Yava is disgusting...

@kiritofeng kiritofeng merged commit 8f6de08 into master Dec 22, 2023
2 checks passed
@Xyene Xyene deleted the ban-unsafe branch June 3, 2024 03:32
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