From 0c5d892dbac95ae2418fcfc29ddfd23e4effa5ff Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 29 Jan 2016 23:09:05 +0100 Subject: Only allow including from allowed directories. --- solc/CommandLineInterface.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'solc/CommandLineInterface.h') diff --git a/solc/CommandLineInterface.h b/solc/CommandLineInterface.h index 7fdc9c0d..d288b5c1 100644 --- a/solc/CommandLineInterface.h +++ b/solc/CommandLineInterface.h @@ -24,6 +24,7 @@ #include #include #include +#include namespace dev { @@ -80,6 +81,8 @@ private: std::map m_sourceCodes; /// list of path prefix remappings, e.g. github.com/ethereum -> /usr/local/ethereum std::vector> m_remappings; + /// list of allowed directories to read files from + std::vector m_allowedDirectories; /// map of library names to addresses std::map m_libraries; /// Solidity compiler stack -- cgit v1.2.3