modules: eina: chained_pool: check for NULL before passing it to deref submit/tizen/20200616.213914
authorStefan Schmidt <s.schmidt@samsung.com>
Tue, 16 Jun 2020 09:03:26 +0000 (11:03 +0200)
committerJongmin Lee <jm105.lee@samsung.com>
Tue, 16 Jun 2020 21:26:29 +0000 (06:26 +0900)
commit8a905d0321a05f00e676bb0325dbcd4c66dab571
tree18fc2cb453bd2f47b9e75a34be0d2e1e67e8944d
parent7f74c9d6f0ed8793a8f244888f5e48c23a4ff541
modules: eina: chained_pool: check for NULL before passing it to deref

Make sure we check if pool->first_fill is NULL before passing it onwards
where it gets dereferenced. In case this happens return NULL instead of
garbage.

CID: 1293520

Reviewed-by: Christopher Michael <devilhorns@comcast.net>
Differential Revision: https://phab.enlightenment.org/D11980
src/modules/eina/mp/chained_pool/eina_chained_mempool.c