commit | a2e97405d0ddf4f1fac20b9c5635d923a12317d6 | [log] [tgz] |
---|---|---|
author | TaiJu Wu <tjwu1217@gmail.com> | Sun Jun 02 18:17:54 2024 +0800 |
committer | Alberto Escolar <alberto.escolar.piedras@nordicsemi.no> | Fri Jun 14 19:18:28 2024 +0200 |
tree | 2e45ecf217299202c87ca00e0cc573c85f986d43 | |
parent | bfba19dc41dd69a62d9a59e76dbda2888f392519 [diff] |
lib: check null pointer before taking lock for bitarray In some function in bitarray.c, we should check the pointer of bitarry before taking bitarray lock. In this patch, we move the null-check assert before the use of the struct to provide better validation than a crash. Signed-off-by: TaiJu Wu <tjwu1217@gmail.com>