Skip to content

fix(judge): keep special-judge files outside the sandbox - #320

Open
ZnPdCo wants to merge 1 commit into
Project-LemonLime:masterfrom
ZnPdCo:fix/special-judge-files-outside-sandbox
Open

ZnPdCo wants to merge 1 commit into
Project-LemonLime:masterfrom
ZnPdCo:fix/special-judge-files-outside-sandbox

Conversation

@ZnPdCo

@ZnPdCo ZnPdCo commented Oct 18, 2026

Copy link
Copy Markdown
Contributor

lemonSpecialJudge() 把 _score 和 _message 放在每个 testcase 的工作目录里,而这个工作目录选手可读写。选手程序可以在 checker 打开这些路径之前,把它们替换成任意东西。例如通过符号链接到另一个文件,或者 /proc/self/timerslack_ns。

这个 pr 把他们移动到了父目录,例如 /tmp/lemon-xxx/_0.0_score。

@alphagocc

Copy link
Copy Markdown
Member

sorry, but please solve the confilts, thank you!

This branch has not been deployed

No deployments
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