-
Notifications
You must be signed in to change notification settings - Fork 4
Closed
Description
Where a regular file is expected as the output of the evaluated program, a symlink usually goes unnoticed.
Steps to reproduce:
Submit the following program to a C or C++ exercise judged by the token judge according to its stdout. External commands are not really needed; this could be implemented using only C.
#include <stdlib.h>
int main(int argc, char** argv) {
system("ln -sf expected.out *.stdout");
return 0;
}Expected behavior: The solution should be rejected.
Observed behavior: The solution is accepted.
I am not sure what component should be responsible for filtering out symlinks (should each and every judge check its input?).
Note: this is unrelated to #29, which is about directory symlinks. Symlinks to files are always copied unresolved.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels