Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Dev #12

Merged
merged 39 commits into from
@SoftwareMaven

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 McLaug... and others added some commits
Kelly McLaughlin 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.
a9f4cbc
@sverker sverker Fix use of type BeamInstr in hipe_debug.c 5fe2a6b
@sverker sverker 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.
261a3e9
@vinoski vinoski 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.
b02f03c
@sverker sverker Fix bug in test case code_SUITE:false_dependency
Causing out-of-memory on halfword emulator.
2907429
@msantos msantos Unsigned integer may overflow in error message 3257bb0
@msantos msantos 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
b9e8506
@sirihansen sirihansen 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.
098aa2a
@msantos msantos erl_interface: fix compile error daad8e6
@sirihansen sirihansen Add terminate_child(Sup, Pid) for simple_one_for_one 1a83415
Niclas Eklund Adds NIFs for cryptographically strong random number generation.
Also adds documentation and unit tests.

Thanks to Geoff Cant.
f505644
Niclas Eklund Fixed SSH appup, copyright headers SSH vsn and SSH release note. c31065c
Niclas Eklund 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.
afe36b5
Erlang/OTP 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.
459bde5
Niclas Eklund Merge branch 'maint-r14' into dev f228601
@RaimoNiskanen RaimoNiskanen Cleanup timeout handling, fix bug for remaining time =:= 0 291644e
@RaimoNiskanen RaimoNiskanen Check return values from UDP send functions fded007
@RaimoNiskanen RaimoNiskanen Add DNS proxy and first test case for late answer 096eccb
@RaimoNiskanen RaimoNiskanen Do not UDP send when there is 0 ms left to wait for reply cdd22aa
@IngelaAndin IngelaAndin Fixed blunder in year tag c0f07b6
@IngelaAndin IngelaAndin Merge branch 'ia/year-fix' into dev
* ia/year-fix:
  Fixed blunder in year tag
ef407fa
@tuncer tuncer driver_entry: Remove gratuitous paren and fix typo 4380605
@kostis kostis Cleanup and cosmetic changes bfc2254
@kostis kostis Driver names should be strings, not atoms 0f03b1e
@proxyles proxyles add prim_file.beam e56d1c1
@sverker sverker 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
574de87
@sverker sverker 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
3174522
@sverker sverker 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
3573870
@proxyles proxyles 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
269f663
@sirihansen sirihansen 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
fbe3499
@RaimoNiskanen RaimoNiskanen 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
aacbae9
@proxyles proxyles 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
ad782e7
@tuncer tuncer Ignore lib/common_test/doc/src/ct_slave.xml 44465b1
@proxyles proxyles 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
3e81544
@pekadan pekadan 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
9051df4
@proxyles proxyles 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
c45fbd9
@proxyles proxyles Merge branch 'ms/erl_interface-compile-error' into dev
* ms/erl_interface-compile-error:
  erl_interface: fix compile error

OTP-9252
c302809
@proxyles proxyles 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
0e752dd
@proxyles
Owner

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

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

OTP-9254
8d74122
@erlang erlang merged commit 8d74122 into erlang:dev
@pekadan pekadan referenced this pull request from a commit in pekadan/otp
@pekadan pekadan Implementation #12 ... 8d49662
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Sep 6, 2010
  1. @bjorng

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

    Kelly McLaughlin authored bjorng committed
    …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.
Commits on Mar 16, 2011
  1. @sverker
  2. @sverker

    erts_printf %be to print integers of size Eterm

    sverker authored
    Existing %bp to print pointer size integers does not work in halfword
    emulator to print Eterm size integers.
Commits on Mar 24, 2011
  1. @vinoski @sverker

    add support for checking if an ERL_NIF_TERM is an exception

    vinoski authored sverker committed
    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.
Commits on Apr 6, 2011
  1. @sverker

    Fix bug in test case code_SUITE:false_dependency

    sverker authored
    Causing out-of-memory on halfword emulator.
Commits on Apr 7, 2011
  1. @msantos @proxyles

    Unsigned integer may overflow in error message

    msantos authored proxyles committed
  2. @msantos @proxyles

    file: fix hang reading compressed files

    msantos authored proxyles committed
    The gzio driver goes into an infinite loop when reading past the end of
    a compressed file.
    
    Reported-By: Alex Morarash
Commits on Apr 12, 2011
  1. @sirihansen

    Allow supervisor:terminate_child(SupRef,Pid) for simple_one_for_one

    sirihansen authored
    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.
Commits on Apr 13, 2011
  1. @msantos @proxyles

    erl_interface: fix compile error

    msantos authored proxyles committed
  2. @sirihansen
Commits on Apr 15, 2011
  1. Adds NIFs for cryptographically strong random number generation.

    Niclas Eklund authored
    Also adds documentation and unit tests.
    
    Thanks to Geoff Cant.
Commits on Apr 18, 2011
Commits on Apr 19, 2011
  1. Renamed the function strong_rand_uniform to strong_rand_mpint.

    Niclas Eklund authored
    Added some checks in crypto.erl and crypto.c.
    Changed ssh_bits to use strong_rand_mpint.
Commits on Apr 20, 2011
  1. Merge branch 'nick/ssh_crypto/strengthened_random/OTP-9225' into main…

    Erlang/OTP authored
    …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.
  2. Merge branch 'maint-r14' into dev

    Niclas Eklund authored
Commits on Apr 21, 2011
  1. @RaimoNiskanen
  2. @RaimoNiskanen
  3. @RaimoNiskanen
  4. @RaimoNiskanen
  5. @IngelaAndin

    Fixed blunder in year tag

    IngelaAndin authored
  6. @IngelaAndin

    Merge branch 'ia/year-fix' into dev

    IngelaAndin authored
    * ia/year-fix:
      Fixed blunder in year tag
Commits on Apr 26, 2011
  1. @tuncer
Commits on Apr 27, 2011
  1. @kostis @proxyles

    Cleanup and cosmetic changes

    kostis authored proxyles committed
  2. @kostis @proxyles

    Driver names should be strings, not atoms

    kostis authored proxyles committed
  3. @proxyles

    add prim_file.beam

    proxyles authored
  4. @sverker

    Merge branch 'sverker/erts_printf-halfword' into dev

    sverker authored
    * 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
  5. @sverker

    Merge branch 'sverker/enif_is_exception/OTP-9150' into dev

    sverker authored
    * sverker/enif_is_exception/OTP-9150:
      add support for checking if an ERL_NIF_TERM is an exception
  6. @sverker

    Merge branch 'sverker/code_SUITE-false_dependency-bug' into dev

    sverker authored
    * sverker/code_SUITE-false_dependency-bug:
      Fix bug in test case code_SUITE:false_dependency
Commits on Apr 28, 2011
  1. @proxyles

    Merge branch 'km/pool_connect-to-running-nodes' into dev

    proxyles authored
    * km/pool_connect-to-running-nodes:
      Change pool module to attempt to attach to nodes that are already running
    
    OTP-9244
  2. @sirihansen

    Merge branch 'siri/stdlib/supervisor-terminate_child-simple_one_for_o…

    sirihansen authored
    …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
  3. @RaimoNiskanen

    Merge branch 'raimo/inet_res-crash-rest-time-0/OTP-9221' into dev

    RaimoNiskanen authored
    * 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
  4. @proxyles

    Merge branch 'ms/file-fix-hang-reading-compressed-files' into dev

    proxyles authored
    * ms/file-fix-hang-reading-compressed-files:
      file: fix hang reading compressed files
    
    OTP-9245
  5. @tuncer @proxyles

    Ignore lib/common_test/doc/src/ct_slave.xml

    tuncer authored proxyles committed
  6. @proxyles

    Merge branch 'ta/common_test-ignore-ct_slave-xml' into dev

    proxyles authored
    * ta/common_test-ignore-ct_slave-xml:
      Ignore lib/common_test/doc/src/ct_slave.xml
  7. @pekadan

    Merge branch 'peppe/common_test/r14b03_tickets' into dev

    pekadan authored
    * 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
Commits on Apr 29, 2011
  1. @proxyles

    Merge branch 'ms/unsigned-integer-overflow-in-error' into dev

    proxyles authored
    * ms/unsigned-integer-overflow-in-error:
      Unsigned integer may overflow in error message
    
    OTP-9251
  2. @proxyles

    Merge branch 'ms/erl_interface-compile-error' into dev

    proxyles authored
    * ms/erl_interface-compile-error:
      erl_interface: fix compile error
    
    OTP-9252
  3. @proxyles

    Merge branch 'ks/prim_file-fixes' into dev

    proxyles authored
    * ks/prim_file-fixes:
      add prim_file.beam
      Driver names should be strings, not atoms
      Cleanup and cosmetic changes
    
    OTP-9253
Commits on May 2, 2011
  1. @proxyles

    Merge branch 'ta/driver_entry-typo' into dev

    proxyles authored
    * ta/driver_entry-typo:
      driver_entry: Remove gratuitous paren and fix typo
    
    OTP-9254
Something went wrong with that request. Please try again.