Commit 71db083
Fix untrusted input bug.
During the execution of a task of Batch type, the contestant program
could tamper with the input file (usually input.txt). We check it
out again from the database to be sure.
Committer note: this patch was first written when the contestant could
actually write the input file. At commit time, this is no longer true
(it can only write the output file). Nonetheless, graders might decide
to delete the input, so the patch still makes sense.1 parent 1fff330 commit 71db083
1 file changed
Lines changed: 15 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
331 | 331 | | |
332 | 332 | | |
333 | 333 | | |
| 334 | + | |
| 335 | + | |
| 336 | + | |
| 337 | + | |
| 338 | + | |
| 339 | + | |
| 340 | + | |
| 341 | + | |
| 342 | + | |
| 343 | + | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
| 347 | + | |
| 348 | + | |
334 | 349 | | |
335 | 350 | | |
336 | 351 | | |
| |||
0 commit comments