Fix the issue for [ASAN][BUG] stack-use-after-scope in crash-manager on TM1 57/241957/2 accepted/tizen_6.0_base_tool accepted/tizen/6.0/base/20230713.143043 accepted/tizen/6.0/base/tool/20201125.224919 accepted/tizen/base/tool/20201125.225050 submit/tizen_6.0_base/20201123.091612 submit/tizen_base/20200825.071216 submit/tizen_base/20201123.090647
authorjiankang.fan <jiankang.fan@samsung.com>
Fri, 21 Aug 2020 05:52:50 +0000 (14:52 +0900)
committerjiankang.fan <jiankang.fan@samsung.com>
Fri, 21 Aug 2020 06:01:27 +0000 (15:01 +0900)
commite4e49b101522f46f0c2b8acd55554866f1bd37bc
tree4a43b456a26399e9dcf233e37350e127729eb9ea
parentfc3c4a93a6e665927ec495cc52130fbb87e35c7c
Fix the issue for [ASAN][BUG] stack-use-after-scope in crash-manager on TM1

https://code.sec.samsung.net/jira/browse/TSIX-3628

The external pointer(keyp) refers to a local variable(mi_offset),
but beyond the scope of the local variable, the pointer is still referenced.

Change-Id: I2a9ee984e3e290a8f41c7d3cf4444786e087c41b
Signed-off-by: jiankang.fan <jiankang.fan@samsung.com>
lib/rpmdb.c