[pypy-svn] pypy default: dtoa and strtod are sanbox_safe
amauryfa
commits-noreply at bitbucket.org
Tue Jan 25 08:50:05 CET 2011
Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch:
Changeset: r41284:db535cf28c72
Date: 2011-01-25 07:58 +0100
http://bitbucket.org/pypy/pypy/changeset/db535cf28c72/
Log: dtoa and strtod are sanbox_safe
diff --git a/pypy/rlib/rdtoa.py b/pypy/rlib/rdtoa.py
--- a/pypy/rlib/rdtoa.py
+++ b/pypy/rlib/rdtoa.py
@@ -27,16 +27,16 @@
dg_strtod = rffi.llexternal(
'_PyPy_dg_strtod', [rffi.CCHARP, rffi.CCHARPP], rffi.DOUBLE,
- compilation_info=eci)
+ compilation_info=eci, sandboxsafe=True)
dg_dtoa = rffi.llexternal(
'_PyPy_dg_dtoa', [rffi.DOUBLE, rffi.INT, rffi.INT,
rffi.INTP, rffi.INTP, rffi.CCHARPP], rffi.CCHARP,
- compilation_info=eci)
+ compilation_info=eci, sandboxsafe=True)
dg_freedtoa = rffi.llexternal(
'_PyPy_dg_freedtoa', [rffi.CCHARP], lltype.Void,
- compilation_info=eci)
+ compilation_info=eci, sandboxsafe=True)
def strtod(input):
end_ptr = lltype.malloc(rffi.CCHARPP.TO, 1, flavor='raw')
More information about the Pypy-commit
mailing list