mobile/gsm322: fix use-after-free of cs->si reported by ASan
commit60ce34575542b5a73d967991ba66a792e5fdc0f2
authorVadim Yanitskiy <axilirator@gmail.com>
Sat, 29 Feb 2020 17:39:05 +0000 (1 00:39 +0700)
committerVadim Yanitskiy <axilirator@gmail.com>
Sat, 29 Feb 2020 19:22:13 +0000 (1 02:22 +0700)
treeecd756a5b0be9facd7129e02476fbc88c454b044
parentc083e2ce90e0075db7f1ca8498e6223e5d3ed43f
mobile/gsm322: fix use-after-free of cs->si reported by ASan

This pointer cs->si stores an address to the System Information of
a currently selected cell. When we release System Information,
ensure that it does not point to free()d memory.

Change-Id: Ife2ddf7274a48447a9ded9035f9dd01befaf2e6c
src/host/layer23/src/mobile/gsm322.c