Dev #12

Merged
merged 39 commits into from May 3, 2011

Conversation

Projects
None yet
Contributor

SoftwareMaven commented Apr 28, 2011

Implement aes_ctr_encrypt_with_state, aes_ctr_decrypt_with_state, and aes_ctr_state_init to allow true streaming encryption using CTR mode

Kelly McLaughlin and others added some commits Sep 2, 2010

Change pool module to attempt to attach to nodes that are already run…
…ning

The pool module prints out an error message and takes no
further action for nodes that are already running. This
patch changes that behavior so that if the return from
slave:start/3 is {already_running, Node} then an attempt
to attach to the node is still made. This makes sense
because the node has been specified by the user in the
.hosts.erlang file indicating a wish for the node to
be part of the pool and a manual attach can be
successfully made after the pool is started.
erts_printf %be to print integers of size Eterm
Existing %bp to print pointer size integers does not work in halfword
emulator to print Eterm size integers.
add support for checking if an ERL_NIF_TERM is an exception
Add the enif_is_exception function to allow callers to determine
whether an ERL_NIF_TERM represents an exception. (Currently the only
supported exception is badarg since only enif_make_badarg exists, but
this will likely be expanded in future releases.) This allows NIF code
to call other NIF functions that return ERL_NIF_TERM and properly
check to see if the returned terms are exceptions. Without the
enif_is_exception function, developers have to create their own means
of checking whether a function creates an exception, such as returning
boolean success/failure indicators or some other special value
indicating that an exception is in effect.

The declaration of enif_is_exception in erl_nif_api_funcs.h respects
the order of declarations required to keep compatibility on Windows.

Add a new test to verify the operation of enif_is_exception.

Modify the erl_nif man page to add a description of enif_is_exception
and also to clarify the requirements of calling the enif_make_badarg
function. If code calls enif_make_badarg, the env passed in gets set
with exception information and so the return value of the calling
function MUST be the badarg term returned from enif_make_badarg. Also
clarify that the result of enif_make_badarg may be passed only to
enif_is_exception and not to any other NIF API functions.
Fix bug in test case code_SUITE:false_dependency
Causing out-of-memory on halfword emulator.
file: fix hang reading compressed files
The gzio driver goes into an infinite loop when reading past the end of
a compressed file.

Reported-By: Alex Morarash
Allow supervisor:terminate_child(SupRef,Pid) for simple_one_for_one
supervisor:terminate_child/2 was not allowed if the supervisor used
restart strategy simple_one_for_one. This is now changed so that
children of this type of supervisors can be terminated by specifying
the child's Pid.
Adds NIFs for cryptographically strong random number generation.
Also adds documentation and unit tests.

Thanks to Geoff Cant.
Renamed the function strong_rand_uniform to strong_rand_mpint.
Added some checks in crypto.erl and crypto.c.
Changed ssh_bits to use strong_rand_mpint.
Merge branch 'nick/ssh_crypto/strengthened_random/OTP-9225' into main…
…t-r14

* nick/ssh_crypto/strengthened_random/OTP-9225:
  Renamed the function strong_rand_uniform to strong_rand_mpint. Added some checks in crypto.erl and crypto.c. Changed ssh_bits to use strong_rand_mpint.
  Fixed SSH appup, copyright headers SSH vsn and SSH release note.
  Adds NIFs for cryptographically strong random number generation. Also adds documentation and unit tests.
Merge branch 'ia/year-fix' into dev
* ia/year-fix:
  Fixed blunder in year tag
Merge branch 'sverker/erts_printf-halfword' into dev
* sverker/erts_printf-halfword:
  erts_printf %be to print integers of size Eterm
  Fix use of type BeamInstr in hipe_debug.c

Conflicts:
	erts/emulator/hipe/hipe_debug.c
Merge branch 'sverker/enif_is_exception/OTP-9150' into dev
* sverker/enif_is_exception/OTP-9150:
  add support for checking if an ERL_NIF_TERM is an exception
Merge branch 'sverker/code_SUITE-false_dependency-bug' into dev
* sverker/code_SUITE-false_dependency-bug:
  Fix bug in test case code_SUITE:false_dependency
Merge branch 'km/pool_connect-to-running-nodes' into dev
* km/pool_connect-to-running-nodes:
  Change pool module to attempt to attach to nodes that are already running

OTP-9244
Merge branch 'siri/stdlib/supervisor-terminate_child-simple_one_for_o…
…ne/OTP-9201' into dev

* siri/stdlib/supervisor-terminate_child-simple_one_for_one/OTP-9201:
  Add terminate_child(Sup, Pid) for simple_one_for_one
  Allow supervisor:terminate_child(SupRef,Pid) for simple_one_for_one
Merge branch 'raimo/inet_res-crash-rest-time-0/OTP-9221' into dev
* raimo/inet_res-crash-rest-time-0/OTP-9221:
  Do not UDP send when there is 0 ms left to wait for reply
  Check return values from UDP send functions
  Cleanup timeout handling, fix bug for remaining time =:= 0
  Add DNS proxy and first test case for late answer
Merge branch 'ms/file-fix-hang-reading-compressed-files' into dev
* ms/file-fix-hang-reading-compressed-files:
  file: fix hang reading compressed files

OTP-9245
Merge branch 'ta/common_test-ignore-ct_slave-xml' into dev
* ta/common_test-ignore-ct_slave-xml:
  Ignore lib/common_test/doc/src/ct_slave.xml
Merge branch 'peppe/common_test/r14b03_tickets' into dev
* peppe/common_test/r14b03_tickets:
  Have test_server locate the source code file for a test suite module if it's not in the same directory as the beam file.
  Fix error in vts mode, making it impossible to execute suites with test case groups.
  Fix problem with merging ticket branch.
  Fix problems with timetrap handling in common_test: 1. ct:timetrap(infinity) not supported. 2. Previous set timetrap for a test case is not cancelled by new one.
  Document the new init_per_testcase return value.
  Make it possible to fail test case by returning {fail,Reason} from init_per_testcase.
  Fix problem with merging a ticket branch.
  Fix issues related to test case groups: 1. Allow empty group to be specified without generating an error. 2. Sort out potential problem with unnecessary call to delete_subs/2.
  Add test case for suite with empty group.
  Improve validation of test events.
  Fix failing tests on Windows.
  Make it possible to refresh the top level index page at the start of a test run.
  Fix problem with CT hook start error causing IO to be sent to wrong group leader process.
  Do minor updates of the ts test framework.
  Correct failing test cases.

OTP-9233
OTP-9210
OTP-9195
OTP-9161
OTP-9160
OTP-9159
OTP-9138
Merge branch 'ms/unsigned-integer-overflow-in-error' into dev
* ms/unsigned-integer-overflow-in-error:
  Unsigned integer may overflow in error message

OTP-9251
Merge branch 'ms/erl_interface-compile-error' into dev
* ms/erl_interface-compile-error:
  erl_interface: fix compile error

OTP-9252
Merge branch 'ks/prim_file-fixes' into dev
* ks/prim_file-fixes:
  add prim_file.beam
  Driver names should be strings, not atoms
  Cleanup and cosmetic changes

OTP-9253
Contributor

proxyles commented May 2, 2011

Hi

This is not the correct channel to get your patch into Eralng/otp
Please send an email to the erlang-patches mailinglist instead. It's nice to have all patches in one place, and we do not check the pull-request.

Here the instructions on how to submit patches: https://github.com/erlang/otp/wiki/Submitting-patches

Regards,
Henrik Nord, Erlang/OTP

Merge branch 'ta/driver_entry-typo' into dev
* ta/driver_entry-typo:
  driver_entry: Remove gratuitous paren and fix typo

OTP-9254

@ghost ghost merged commit 8d74122 into erlang:dev May 3, 2011

pekadan added a commit to pekadan/otp that referenced this pull request Mar 28, 2013

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment