aniervs / GraderMock

This mocks a grader from standard programming competitions (I/O checks, and AC,WA,MLE,TLE,RTE verdicts)
0 stars 2 forks source link

Isolating the runtime of the code being evaluated #11

Open aniervs opened 4 months ago

aniervs commented 4 months ago

Right now, when evaluating exec(code), it runs under the current namespace (the one defined in the function run_code). Which means that it will have access to variables under the run_code namespace. This not only posses issues with memory and time checking, but also could lead to bugs like:

WE WANT to FIX this by isolating the code being evaluated. Perhaps consider having a different process for this code, or having a container or a separate Virtual Machine.