Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified bootstrap/lib/stdlib/ebin/otp_internal.beam
Binary file not shown.
6 changes: 6 additions & 0 deletions erts/preloaded/src/erlang.erl
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,12 @@ in the description of each individual BIF.
"use the new try/catch syntax for retrieving the "
"stack backtrace"}]).

-unsafe([{list_to_atom, 1, possibly},
{binary_to_atom, '_', possibly},
{binary_to_term, '_', possibly}]).

-compile([{nowarn_unsafe_function, {erlang, binary_to_atom, 2}}]).

%% Get rid of autoimports of spawn to avoid clashes with ourselves.
-compile({no_auto_import,[spawn_link/1]}).
-compile({no_auto_import,[spawn_link/4]}).
Expand Down
2 changes: 2 additions & 0 deletions lib/asn1/src/asn1_db.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
-module(asn1_db).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([dbstart/1,dbnew/3,dbload/1,dbload/4,dbsave/2,dbput/2,
dbput/3,dbget/2]).
-export([dbstop/0]).
Expand Down
2 changes: 2 additions & 0 deletions lib/asn1/src/asn1ct.erl
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ ASN.1 data (encoded as `BER` or `PER`).
> `legacy_erlang_types`.
""".

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

%% Compile Time functions for ASN.1 (e.g ASN.1 compiler).

%% Public exports
Expand Down
2 changes: 2 additions & 0 deletions lib/asn1/src/asn1ct_check.erl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
-module(asn1ct_check).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

%% Main Module for ASN.1 compile time functions

-export([check/2,storeindb/2,format_error/1]).
Expand Down
2 changes: 2 additions & 0 deletions lib/asn1/src/asn1ct_constructed_ber_bin_v2.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
-module(asn1ct_constructed_ber_bin_v2).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([gen_encode_sequence/3]).
-export([gen_decode_sequence/3]).
-export([gen_encode_set/3]).
Expand Down
2 changes: 2 additions & 0 deletions lib/asn1/src/asn1ct_constructed_per.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
-module(asn1ct_constructed_per).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([gen_encode_sequence/3]).
-export([gen_decode_sequence/3]).
-export([gen_encode_set/3]).
Expand Down
3 changes: 3 additions & 0 deletions lib/asn1/src/asn1ct_func.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@

-module(asn1ct_func).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([start_link/0,need/1,call/3,call_gen/3,call_gen/4,
generate/1,is_used/1]).
-export([init/1,handle_call/3,handle_cast/2,terminate/2]).
Expand Down
2 changes: 2 additions & 0 deletions lib/asn1/src/asn1ct_gen.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
-module(asn1ct_gen).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-include("asn1_records.hrl").

-export([emit/1,
Expand Down
2 changes: 2 additions & 0 deletions lib/asn1/src/asn1ct_gen_ber_bin_v2.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
-module(asn1ct_gen_ber_bin_v2).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

%% Generate erlang module which handles (PER) encode and decode for
%% all types in an ASN.1 module

Expand Down
3 changes: 3 additions & 0 deletions lib/asn1/src/asn1ct_gen_jer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@
-module(asn1ct_gen_jer).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}},
{nowarn_unsafe_function, {erlang, binary_to_atom, 1}}]).

%% Generate erlang module which handles (PER) encode and decode for
%% all types in an ASN.1 module

Expand Down
2 changes: 2 additions & 0 deletions lib/asn1/src/asn1ct_gen_per.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
-module(asn1ct_gen_per).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

%% Generate erlang module which handles (PER) encode and decode for
%% all types in an ASN.1 module

Expand Down
2 changes: 2 additions & 0 deletions lib/asn1/src/asn1ct_name.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
-module(asn1ct_name).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([start/0,
curr/1,
clear/0,
Expand Down
2 changes: 2 additions & 0 deletions lib/asn1/src/asn1ct_parser2.erl
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,8 @@
-module(asn1ct_parser2).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([parse/2,format_error/1]).
-include("asn1_records.hrl").

Expand Down
2 changes: 2 additions & 0 deletions lib/asn1/src/asn1ct_tok.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
-module(asn1ct_tok).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

%% Tokenize ASN.1 code (input to parser generated with yecc)

-export([file/1,format_error/1]).
Expand Down
2 changes: 2 additions & 0 deletions lib/asn1/src/asn1ct_value.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
-module(asn1ct_value).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

%% Generate Erlang values for ASN.1 types.
%% The value is randomized within it's constraints

Expand Down
3 changes: 3 additions & 0 deletions lib/asn1/src/asn1rtt_jer.erl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
%%

-module(asn1rtt_jer).

-compile([{nowarn_unsafe_function, {erlang, binary_to_atom, 1}}]).

%% encoding / decoding of BER
-ifdef(DEBUG).
-compile(export_all).
Expand Down
3 changes: 3 additions & 0 deletions lib/asn1/src/prepare_templates.erl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
%%

-module(prepare_templates).

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([gen_asn1ct_rtt/1,gen_asn1ct_eval/1]).

gen_asn1ct_rtt(Ms) ->
Expand Down
2 changes: 2 additions & 0 deletions lib/common_test/src/ct.erl
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ Possible configuration variables include:
> instead.
""".

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-include("ct.hrl").
-include("ct_util.hrl").

Expand Down
3 changes: 2 additions & 1 deletion lib/common_test/src/ct_config.erl
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,8 @@
-module(ct_config).
-moduledoc false.
-compile([{nowarn_deprecated_function,{crypto,block_decrypt,4}},
{nowarn_deprecated_function,{crypto,block_encrypt,4}}]).
{nowarn_deprecated_function,{crypto,block_encrypt,4}},
{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([start/1, stop/0]).

Expand Down
3 changes: 3 additions & 0 deletions lib/common_test/src/ct_config_xml.erl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@
%%----------------------------------------------------------------------
-module(ct_config_xml).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([read_config/1, check_parameter/1]).

% read config file
Expand Down
2 changes: 2 additions & 0 deletions lib/common_test/src/ct_cover.erl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
This module exports help functions for performing code coverage analysis.
""".

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([get_spec/1, add_nodes/1, remove_nodes/1, cross_cover_analyse/2]).

-include("ct_util.hrl").
Expand Down
2 changes: 2 additions & 0 deletions lib/common_test/src/ct_framework.erl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@
-module(ct_framework).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([init_tc/3, end_tc/3, end_tc/4, get_suite/2, get_all_cases/1]).
-export([report/2, warn/1, error_notification/4]).

Expand Down
2 changes: 2 additions & 0 deletions lib/common_test/src/ct_groups.erl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@
-module(ct_groups).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([find_groups/4]).
-export([make_all_conf/3, make_all_conf/4, make_conf/5]).
-export([delete_subs/2]).
Expand Down
2 changes: 2 additions & 0 deletions lib/common_test/src/ct_logs.erl
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,8 @@
-module(ct_logs).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([init/3, close/3, init_tc/1, end_tc/1]).
-export([register_groupleader/2, unregister_groupleader/1]).
-export([get_log_dir/0, get_log_dir/1]).
Expand Down
2 changes: 2 additions & 0 deletions lib/common_test/src/ct_master.erl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ This module exports functions for running `Common Test` nodes on multiple hosts
in parallel.
""".

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([run/1,run/3,run/4]).
-export([run_on_node/2,run_on_node/3]).
-export([run_test/1,run_test/2]).
Expand Down
1 change: 1 addition & 0 deletions lib/common_test/src/ct_netconfc.erl
Original file line number Diff line number Diff line change
Expand Up @@ -214,6 +214,7 @@ logging of all NETCONF connections in to the test case HTML log.
""".
-moduledoc(#{since => "OTP R15B02"}).

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).
-dialyzer(no_improper_lists).

-include("ct_netconfc.hrl").
Expand Down
2 changes: 2 additions & 0 deletions lib/common_test/src/ct_property_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,8 @@ prop_ftp() ->
""".
-moduledoc(#{since => "OTP 17.3"}).

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

%%% API
%% Main functions
-export([init_per_suite/1,
Expand Down
2 changes: 2 additions & 0 deletions lib/common_test/src/ct_release_test.erl
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@
-module(ct_release_test).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([init/1, upgrade/4, cleanup/1, get_app_vsns/2, get_appup/2]).

-include_lib("kernel/include/file.hrl").
Expand Down
2 changes: 2 additions & 0 deletions lib/common_test/src/ct_run.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,8 @@
-module(ct_run).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

%% Script interface
-export([script_start/0,script_usage/0]).

Expand Down
2 changes: 2 additions & 0 deletions lib/common_test/src/ct_slave.erl
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ term in the Test Specification.
""".
-moduledoc(#{since => "OTP R14B"}).

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([start/1, start/2, start/3, stop/1, stop/2]).

-export([slave_started/2, slave_ready/2, monitor_master/1]).
Expand Down
2 changes: 2 additions & 0 deletions lib/common_test/src/ct_testspec.erl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,8 @@ This module exports help functions for parsing of test specifications.
""".
-moduledoc(#{since => "OTP 19.3"}).

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([prepare_tests/1, prepare_tests/2,
collect_tests_from_list/2, collect_tests_from_list/3,
collect_tests_from_file/2, collect_tests_from_file/3,
Expand Down
2 changes: 2 additions & 0 deletions lib/common_test/src/test_server.erl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,8 @@
-module(test_server).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-define(DEFAULT_TIMETRAP_SECS, 60).

%%% TEST_SERVER_CTRL INTERFACE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
Expand Down
3 changes: 3 additions & 0 deletions lib/common_test/src/test_server_ctrl.erl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
%%
-module(test_server_ctrl).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% %%
%% The Erlang Test Server %%
Expand Down
7 changes: 1 addition & 6 deletions lib/common_test/src/test_server_node.erl
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,7 @@
-module(test_server_node).
-moduledoc false.

%% Prior to OTP 26, maybe_expr used to require runtime support. As it's now
%% enabled by default, all modules are tagged with the feature even when they
%% don't use it. Therefore, we explicitly disable it until OTP 25 is out of
%% support.
-feature(maybe_expr, disable).
-compile(r25).
-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

%% Test Controller interface
-export([is_release_available/1, find_release/1]).
Expand Down
3 changes: 3 additions & 0 deletions lib/common_test/src/test_server_sup.erl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,9 @@
%%%-------------------------------------------------------------------
-module(test_server_sup).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([timetrap/2, timetrap/3, timetrap/4,
timetrap_cancel/1, capture_get/1, messages_get/1,
timecall/3, call_crash/5, app_test/2, check_new_crash_dumps/0,
Expand Down
3 changes: 3 additions & 0 deletions lib/common_test/test_server/ts.erl
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@

-module(ts).

-compile([{nowarn_unsafe_function, {file, consult, 1}},
{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([cl_run/1,
run/0, run/1, run/2, run/3, run/4, run/5,
run_category/1, run_category/2, run_category/3,
Expand Down
1 change: 1 addition & 0 deletions lib/common_test/test_server/ts_erl_config.erl
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@

-module(ts_erl_config).

-compile([{nowarn_unsafe_function, {os, cmd, 1}}]).

-export([variables/2]).

Expand Down
4 changes: 4 additions & 0 deletions lib/common_test/test_server/ts_install.erl
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@

-export([install/2, platform_id/1]).

-compile([{nowarn_unsafe_function, {file, consult, 1}},
{nowarn_unsafe_function, {erlang, list_to_atom, 1}},
{nowarn_unsafe_function, {os, cmd, 1}}]).

-include("ts.hrl").
-include_lib("kernel/include/file.hrl").

Expand Down
4 changes: 4 additions & 0 deletions lib/common_test/test_server/ts_install_cth.erl
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@

-module(ts_install_cth).

-compile([{nowarn_unsafe_function, {file, consult, 1}},
{nowarn_unsafe_function, {erlang, list_to_atom, 1}},
{nowarn_unsafe_function, {os, cmd, 1}}]).

%% Suite Callbacks
-export([id/1]).
-export([init/2]).
Expand Down
3 changes: 3 additions & 0 deletions lib/common_test/test_server/ts_lib.erl
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@
%%
-module(ts_lib).

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}},
{nowarn_unsafe_function, {os, cmd, 1}}]).

-include_lib("kernel/include/file.hrl").
-include("ts.hrl").

Expand Down
3 changes: 3 additions & 0 deletions lib/common_test/test_server/ts_run.erl
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@

-export([run/4,ct_run_test/2]).

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}},
{nowarn_unsafe_function, {os, cmd, 1}}]).

-define(DEFAULT_MAKE_TIMETRAP_MINUTES, 60).
-define(DEFAULT_UNMAKE_TIMETRAP_MINUTES, 15).

Expand Down
2 changes: 2 additions & 0 deletions lib/compiler/src/beam_core_to_ssa.erl
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,8 @@
-module(beam_core_to_ssa).
-moduledoc false.

-compile([{nowarn_unsafe_function, {erlang, list_to_atom, 1}}]).

-export([module/2,format_error/1]).

-import(lists, [all/2,append/1,droplast/1,
Expand Down
Loading