[openssl/openssl] a8df56: Update IPAddressOrRange_cmp function to handle swi...

Vikas Verma noreply at github.com
Tue Dec 19 17:28:25 UTC 2023


  Branch: refs/heads/master
  Home:   https://github.com/openssl/openssl
  Commit: a8df5651153e8e81fbaa8408dd1137232168997d
      https://github.com/openssl/openssl/commit/a8df5651153e8e81fbaa8408dd1137232168997d
  Author: Vikas Verma <131862931+vikasverma4795 at users.noreply.github.com>
  Date:   2023-12-19 (Tue, 19 Dec 2023)

  Changed paths:
    M crypto/x509/v3_addr.c

  Log Message:
  -----------
  Update IPAddressOrRange_cmp function to handle switch case

As there is no default case for a->type or b->type in the switch()
statements, if the type does not fall into any defined cases
then memcmp() will be done on garbage data.

Adding default cases in both switches.

CLA: trivial

Reviewed-by: Tom Cosgrove <tom.cosgrove at arm.com>
Reviewed-by: Tomas Mraz <tomas at openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23082)




More information about the openssl-commits mailing list