Commit 38f75a6
authored
Suppress stdout from env loading script to avoid python exec pollution (#54)
Without this suppression environment loading scripts that give verbose
information (e.g. intel setvars.sh) will have these lines executed by
the Python `exec()` function. Best case, it is total nonsense and throws
an error, worst case it executes some catastrophic code.
Note that the loader still executes perceived differences in the env, so
users should be cautious about loading scripts and be aware of code
injection.1 file changed
Lines changed: 3 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
48 | | - | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
49 | 51 | | |
50 | 52 | | |
51 | 53 | | |
| |||
0 commit comments