Hi Yicong,
On 16 May 2015 at 07:42, Yicong Huang hengha@gmail.com wrote:
I quite agree with you that cfii is very powerful and should not include in
sandbox.
However, could we consider include a small subset of cffi?
No. Anything that cffi enables lets you read random memory, or write
In the document, we see PyPy could be embeded in C++ code as the following:
pypy_execute_source_ptr(source, api);
The source is a string of python code. But I think by default the code
does not run in sandbox.
Are there any methods to run the code in sandbox?
Hi Yicong,
No, PyPy cannot be embedded running sandbox. The way we present
embedding is by using the cffi module on the Python code; but this
module is not available at all in a sandboxed PyPy (as it allows
random invalid things to occur).
If you really want to use the sandbox, you need to
Hi Armin,
Thanks for the answer!
I quite agree with you that cfii is very powerful and should not include in
sandbox.
However, could we consider include a small subset of cffi?
Considering the typical user usage, I think the below features are
sufficient to satisfiy most of cases:
1. Convert