Skip to content

Commit

Permalink
otp: add missing licenses to files added in OTP-27
Browse files Browse the repository at this point in the history
  • Loading branch information
kikofernandez committed Nov 26, 2024
1 parent dc97ae2 commit 9474e5f
Show file tree
Hide file tree
Showing 13 changed files with 237 additions and 8 deletions.
24 changes: 22 additions & 2 deletions SECURITY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,25 @@
<!--
%CopyrightBegin%
Copyright Ericsson AB 1996-2024. All Rights Reserved.
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
%CopyrightEnd%
-->

# Security Policy

## Reporting a Vulnerability and/or Security Issues
Expand All @@ -21,5 +43,3 @@ For example, if the latest release is OTP-27, we will support with maintainance
| =< 24 | :x: |




20 changes: 20 additions & 0 deletions lib/common_test/test/ct_misc_1_SUITE_data/empty_group_SUITE.erl
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
%%
%% %CopyrightBegin%
%%
%% Copyright 2024 Johannes Christ <[email protected]>
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%
%% %CopyrightEnd%
%%

-module(empty_group_SUITE).
-compile(export_all).
-compile(nowarn_export_all).
Expand Down
20 changes: 20 additions & 0 deletions lib/compiler/test/beam_ssa_check_SUITE_data/ss_depth_limit.erl
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 1996-2024. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%
%% %CopyrightEnd%
%%

%%%
%%% Check that the limit imposed on the depth of sharing state value
%%% chains is imposed.
Expand Down
21 changes: 20 additions & 1 deletion lib/compiler/test/compile_SUITE_data/exceptions.erl
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 1996-2024. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%
%% %CopyrightEnd%
%%
-module(exceptions).
-export([?MODULE/1]).

Expand All @@ -10,7 +29,7 @@ wrong_line() -> %Line 4

{'EXIT',{{badmatch,error},
[{?MODULE,wrong_line,0,Loc}|_]}} = catch wrong_line(),
{line,5} = lists:keyfind(line, 1, Loc),
{line,24} = lists:keyfind(line, 1, Loc),

ok.

Expand Down
8 changes: 4 additions & 4 deletions lib/dialyzer/test/small_SUITE_data/results/logical_processors
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

logical_processors.erl:11:1: Function t1/0 has no local return
logical_processors.erl:12:7: The pattern 'ok' can never match the type 'unknown' | non_neg_integer()
logical_processors.erl:14:1: Function t2/0 has no local return
logical_processors.erl:15:7: The pattern 'ok' can never match the type 'unknown' | non_neg_integer()
logical_processors.erl:31:1: Function t1/0 has no local return
logical_processors.erl:32:7: The pattern 'ok' can never match the type 'unknown' | non_neg_integer()
logical_processors.erl:34:1: Function t2/0 has no local return
logical_processors.erl:35:7: The pattern 'ok' can never match the type 'unknown' | non_neg_integer()
20 changes: 20 additions & 0 deletions lib/dialyzer/test/small_SUITE_data/src/logical_processors.erl
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
%%
%% %CopyrightBegin%
%%
%% Copyright 2024 Ildar Khizbulin <[email protected]>
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%
%% %CopyrightEnd%
%%

-module(logical_processors).

-export([t0/0,t1/0,t2/0]).
Expand Down
20 changes: 20 additions & 0 deletions lib/kernel/test/os_SUITE_data/sys_shell.c
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
/*
* %CopyrightBegin%
*
* Copyright 2024 Yaroslav Maslennikov <[email protected]>
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
* %CopyrightEnd%
*/

#include <stdio.h>
int main(void)
{
Expand Down
20 changes: 20 additions & 0 deletions lib/mnesia/test/mnesia_external_backend_test.erl
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 1996-2024. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%
%% %CopyrightEnd%
%%

-module(mnesia_external_backend_test).

-export([init_per_testcase/2, end_per_testcase/2,
Expand Down
13 changes: 12 additions & 1 deletion lib/public_key/test/public_key_SUITE.erl
Original file line number Diff line number Diff line change
Expand Up @@ -1876,7 +1876,18 @@ check_encapsulated_header([]) ->

strip_superfluous_newlines(Bin) ->
Str = string:strip(binary_to_list(Bin), right, 10),
re:replace(Str,"\n\n","\n", [{return,list}, global]).
Str1 = remove_license_header(Str),
re:replace(Str1,"\n\n","\n", [{return,list}, global]).

remove_license_header("%%" ++ _=String) ->
case string:split(String, "\n") of
[_, Tail] ->
remove_license_header(Tail);
[Other] ->
Other
end;
remove_license_header(Code) ->
Code.

do_gen_ec_param(File) ->
{ok, KeyPem} = file:read_file(File),
Expand Down
19 changes: 19 additions & 0 deletions lib/public_key/test/public_key_SUITE_data/pss_default.pem
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 1996-2024. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%
%% %CopyrightEnd%
%%
-----BEGIN PRIVATE KEY-----
MIIEuwIBADALBgkqhkiG9w0BAQoEggSnMIIEowIBAAKCAQEAjPwd860nEH6sgfYE
RXoAjMY3Rdl3ynuJd5/ZWqTBNGn/Wet8idPQix9nwUvZ6Nw7uGX00HeBITZeIZMo
Expand Down
19 changes: 19 additions & 0 deletions lib/public_key/test/public_key_SUITE_data/public_eddsa.pem
Original file line number Diff line number Diff line change
@@ -1,3 +1,22 @@
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 1996-2024. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%
%% %CopyrightEnd%
%%
-----BEGIN PUBLIC KEY-----
MCowBQYDK2VwAyEAzVMFUvlbihtNisegppBVAct8qRH2Ql3KZ57JAxt8Gms=
-----END PUBLIC KEY-----
20 changes: 20 additions & 0 deletions lib/ssh/test/ssh_dbg_SUITE_data/ssh_host_rsa_key
Original file line number Diff line number Diff line change
@@ -1,3 +1,23 @@
%%
%% %CopyrightBegin%
%%
%% Copyright Ericsson AB 1996-2024. All Rights Reserved.
%%
%% Licensed under the Apache License, Version 2.0 (the "License");
%% you may not use this file except in compliance with the License.
%% You may obtain a copy of the License at
%%
%% http://www.apache.org/licenses/LICENSE-2.0
%%
%% Unless required by applicable law or agreed to in writing, software
%% distributed under the License is distributed on an "AS IS" BASIS,
%% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
%% See the License for the specific language governing permissions and
%% limitations under the License.
%%
%% %CopyrightEnd%
%%

-----BEGIN RSA PRIVATE KEY-----
MIICXQIBAAKBgQDCZX+4FBDwZIh9y/Uxee1VJnEXlowpz2yDKwj8semM4q843337
zbNfxHmladB1lpz2NqyxI175xMIJuDxogyZdsOxGnFAzAnthR4dqL/RWRWzjaxSB
Expand Down
21 changes: 21 additions & 0 deletions make/ex_doc_wrapper.in
Original file line number Diff line number Diff line change
@@ -1,5 +1,26 @@
#!/bin/bash

##
## %CopyrightBegin%
##
## Copyright Ericsson AB 1996-2024. All Rights Reserved.
##
## Licensed under the Apache License, Version 2.0 (the "License");
## you may not use this file except in compliance with the License.
## You may obtain a copy of the License at
##
## http://www.apache.org/licenses/LICENSE-2.0
##
## Unless required by applicable law or agreed to in writing, software
## distributed under the License is distributed on an "AS IS" BASIS,
## WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
## See the License for the specific language governing permissions and
## limitations under the License.
##
## %CopyrightEnd%
##


ARGS=("$@")

set -eo pipefail {0}
Expand Down

0 comments on commit 9474e5f

Please sign in to comment.