I'm curious about compiling with gcc/g++/clang with the assumption that
headers and implementation files are user-provided, but not the build configuration.
(i.e., no cd lib && make)
What if the user could provide object files to link against too (static libraries)? How about user-provided compiler/linker flags thrown into the mix?
Could a malicious user bring a system down (exhaust resources) or could they even run arbitrary code this way if all they could do is submit *.cc, *.hh, and *.a files, possibly compiler flags, and have the system compile and link it all together (but not run it)?
 
     
     
    