diff options
| author | Damien Doligez <damien.doligez@gmail.com> | 2017-06-28 14:02:15 +0200 |
|---|---|---|
| committer | Damien Doligez <damien.doligez@inria.fr> | 2017-06-28 14:08:07 +0200 |
| commit | fee01100fb0664a3b18aa6214b9eb12976c77e99 (patch) | |
| tree | 3e3b5c04ba738b0b91ff17d9f91448685f183e18 /asmrun | |
| parent | c34e24277450e4f5a08b7f338abd09e81ca7b943 (diff) | |
| download | ocaml-fee01100fb0664a3b18aa6214b9eb12976c77e99.tar.gz | |
Some tweaks for MPR#7557 (#1213)
* fall back to __secure_getenv when secure_getenv is not available
* use secure_getenv for instrumented runtimes
* documentation: warn against setting the setuid or setgid bits on custom bytecode executables
Diffstat (limited to 'asmrun')
| -rw-r--r-- | asmrun/spacetime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/asmrun/spacetime.c b/asmrun/spacetime.c index f3c7e9cfd2..bdcdd9f4f8 100644 --- a/asmrun/spacetime.c +++ b/asmrun/spacetime.c @@ -211,7 +211,7 @@ void caml_spacetime_initialize(void) caml_spacetime_static_shape_tables = &caml_spacetime_shapes; - ap_interval = getenv ("OCAML_SPACETIME_INTERVAL"); + ap_interval = caml_secure_getenv ("OCAML_SPACETIME_INTERVAL"); if (ap_interval != NULL) { unsigned int interval = 0; sscanf(ap_interval, "%u", &interval); |
