[openssl/openssl] d60b37: Fix BIO_get_new_index() to return an error when it...

Shane noreply at github.com
Mon Mar 11 11:41:08 UTC 2024


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: d60b37506da65f3aebc5043984b3ec78fd53f75f
      https://github.com/openssl/openssl/commit/d60b37506da65f3aebc5043984b3ec78fd53f75f
  Author: slontis <shane.lontis at oracle.com>
  Date:   2024-03-11 (Mon, 11 Mar 2024)

  Changed paths:
    M CHANGES.md
    M crypto/bio/bio_lib.c
    M crypto/bio/bio_meth.c
    M doc/man3/BIO_find_type.pod
    M doc/man3/BIO_meth_new.pod
    M include/openssl/bio.h.in
    A test/bio_meth_test.c
    M test/build.info
    A test/recipes/61-test_bio_meth.t

  Log Message:
  -----------
  Fix BIO_get_new_index() to return an error when it is exhausted.

Fixes #23655

BIO_get_new_index() returns a range of 129..255.

It is set to BIO_TYPE_START (128) initially and is incremented on each
call.
>= 256 is reserved for the class type flags (BIO_TYPE_DESCRIPTOR) so it
should error if it reaches the upper bound.

Reviewed-by: Hugo Landau <hlandau at openssl.org>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23732)



To unsubscribe from these emails, change your notification settings at https://github.com/openssl/openssl/settings/notifications


More information about the openssl-commits mailing list