Skip to content

Evil Programs

John edited this page Sep 4, 2019 · 1 revision

Evil Programs are submissions that should cause a [Security Violation] (SV) judgement in PC². PC2V9 contains a number of "sample evil programs".

The PC2V9 project contains a folder named samps, under which is a subfolder named contests. Under some sample contests there are submissions that should cause incorect (non-yes) judgements like RTE, SV, etc. The general location for these files is:

samps/contests/CONTEST_NAME/config/PROBLEM_SHORT_NAME/submissions

Most of the PC² evil programs are under the sumitMTC sample contest, which is located at samps/contests/sumitMTC. (sumitMTC is a sample contest containing a problem named sumit, whose specification involves writing a program to output the sum of a set of input integers; sumitMTC contains a sumit problem along with Multiple Test Cases.)

An example of a C++ program that causes a Security Violation (SV) by writing to a file can be found at samps/contests/sumitMTC/config/sumit/submissions/security_violation/SumitSVFileWrite.cpp

See Also

PC2 Logo

Clone this wiki locally