diff options
author | Sverker Eriksson <[email protected]> | 2018-02-15 13:44:19 +0100 |
---|---|---|
committer | Sverker Eriksson <[email protected]> | 2018-02-15 13:44:19 +0100 |
commit | 54ac9157e121175615485f89dbf90fc645435d17 (patch) | |
tree | c4ffd2573e175575e7538fa4110a834fa2f3d8ac /erts | |
parent | dc0b345ae5374a422250c9d2e3bec63e6186afca (diff) | |
download | otp-54ac9157e121175615485f89dbf90fc645435d17.tar.gz otp-54ac9157e121175615485f89dbf90fc645435d17.tar.bz2 otp-54ac9157e121175615485f89dbf90fc645435d17.zip |
kernel: Reject load of module names with slash
or backslash on Windows.
Purpose: Prevent tricks to get hostile code running.
Diffstat (limited to 'erts')
-rw-r--r-- | erts/preloaded/ebin/erl_prim_loader.beam | bin | 54872 -> 54832 bytes | |||
-rw-r--r-- | erts/preloaded/src/erl_prim_loader.erl | 2 |
2 files changed, 1 insertions, 1 deletions
diff --git a/erts/preloaded/ebin/erl_prim_loader.beam b/erts/preloaded/ebin/erl_prim_loader.beam Binary files differindex af6facb5f2..31372a3fab 100644 --- a/erts/preloaded/ebin/erl_prim_loader.beam +++ b/erts/preloaded/ebin/erl_prim_loader.beam diff --git a/erts/preloaded/src/erl_prim_loader.erl b/erts/preloaded/src/erl_prim_loader.erl index 1d09aeded9..11d63c93e3 100644 --- a/erts/preloaded/src/erl_prim_loader.erl +++ b/erts/preloaded/src/erl_prim_loader.erl @@ -56,7 +56,7 @@ -export([purge_archive_cache/0]). %% Used by init and the code server. --export([get_modules/2,get_modules/3]). +-export([get_modules/2,get_modules/3, is_basename/1]). -include_lib("kernel/include/file.hrl"). |