eet, emile: safety++ 02/253002/3 accepted/tizen/unified/20210208.061652 submit/tizen/20210204.012753
authorShinwoo Kim <cinoo.kim@samsung.com>
Thu, 4 Feb 2021 01:11:16 +0000 (10:11 +0900)
committerShinwoo Kim <cinoo.kim@samsung.com>
Thu, 4 Feb 2021 01:18:46 +0000 (01:18 +0000)
commit57f173c47464af682f03357527a9cb515c715725
treed3ba57c7809b40553f8b596a84961a2f226750d6
parentb866e32248bc9d9ecb49e183758fb0e4713b53bc
eet, emile: safety++

Summary:
(1) EVP_MD_CTX_new could return NULL
(2) EVP_DigestUpdate returns 0 for failure.
  https://www.openssl.org/docs/man1.0.2/man3/EVP_DigestUpdate.html

Reviewers: raster, Hermet, cedric, devilhorns

Reviewed By: devilhorns

Subscribers: SPAM-roll99, devilhorns, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D12237

Change-Id: If86106c318e91754010eca27bfd5ee898c49f0d1
src/lib/eet/eet_cipher.c
src/lib/emile/emile_cipher_openssl.c