aboutsummaryrefslogtreecommitdiffstats
path: root/erts/preloaded/src
diff options
context:
space:
mode:
authorSverker Eriksson <[email protected]>2018-02-15 13:44:19 +0100
committerSverker Eriksson <[email protected]>2018-02-15 13:44:19 +0100
commit54ac9157e121175615485f89dbf90fc645435d17 (patch)
treec4ffd2573e175575e7538fa4110a834fa2f3d8ac /erts/preloaded/src
parentdc0b345ae5374a422250c9d2e3bec63e6186afca (diff)
downloadotp-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/preloaded/src')
-rw-r--r--erts/preloaded/src/erl_prim_loader.erl2
1 files changed, 1 insertions, 1 deletions
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").