Fix wrong bundle_foreach implementation 72/284572/1
authorChanggyu Choi <changyu.choi@samsung.com>
Mon, 21 Nov 2022 01:14:40 +0000 (10:14 +0900)
committerChanggyu Choi <changyu.choi@samsung.com>
Mon, 21 Nov 2022 01:14:40 +0000 (10:14 +0900)
commit31d85a4f267263044c57ee29db04d511ccee2df1
tree980cb4f9c80e9890c5cc9e231a682e3007b6199f
parent13059a9596e53573b598d01d209ee7d32ff9fd61
Fix wrong bundle_foreach implementation

if data is removed through bundle_foreach(),
A crash may occur.
This patch resolves this by passing the iterator to the next before calling the callback using the iterator.

Change-Id: I3f04418f47bc17247e857362b462e616c2136fa0
Signed-off-by: Changgyu Choi <changyu.choi@samsung.com>
src/stub.cc