[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[openssl-gost] [gost-engine/engine] a57bcd: gost_ec_keyx: Fix CID 253282 Dereference null retu...



  Branch: refs/heads/master
  Home:   https://github.com/gost-engine/engine
  Commit: a57bcd50c280fd2c48fd28de93dd94023ebdc980
      https://github.com/gost-engine/engine/commit/a57bcd50c280fd2c48fd28de93dd94023ebdc980
  Author: Vitaly Chikunov <vt@altlinux.org>
  Date:   2019-10-15 (Tue, 15 Oct 2019)

  Changed paths:
    M gost_ec_keyx.c

  Log Message:
  -----------
  gost_ec_keyx: Fix CID 253282 Dereference null return value

`param' is used unconditionally in pkey_GOST_ECcp_encrypt() so we can
unconditionally check (vs in any particular `if' branch) for it's being
non-NULL. This is similar to how pkey_GOST_ECcp_decrypt() works with
`param'.

Closes #174.


  Commit: b2088dd3c7c7a7d8f88ea624fd931b1808a7cfc3
      https://github.com/gost-engine/engine/commit/b2088dd3c7c7a7d8f88ea624fd931b1808a7cfc3
  Author: Vitaly Chikunov <vt@altlinux.org>
  Date:   2019-10-15 (Tue, 15 Oct 2019)

  Changed paths:
    M gost_ec_keyx.c

  Log Message:
  -----------
  gost_ec_keyx: Remove redundant code

This `if' statement is redundant since ce40d60 ("Bugfix.")

get_gost_engine_param() have no side effects and `param' is set to
`gost_cipher_list' only if already equal to `gost_cipher_list'.


  Commit: 7d8d59165b1f001d833182e5309c6711bdf269af
      https://github.com/gost-engine/engine/commit/7d8d59165b1f001d833182e5309c6711bdf269af
  Author: Dmitry Belyavskiy <beldmit@users.noreply.github.com>
  Date:   2019-10-16 (Wed, 16 Oct 2019)

  Changed paths:
    M gost_ec_keyx.c

  Log Message:
  -----------
  Merge pull request #181 from vt-alt/issues/174

Issues/174


Compare: https://github.com/gost-engine/engine/compare/7f55249334f0...7d8d59165b1f