[agent/DB] Prevent sql injection by using `sqlite3_bind_text`
authorYongjoo Ahn <yongjoo1.ahn@samsung.com>
Wed, 22 Mar 2023 08:14:04 +0000 (17:14 +0900)
committerjaeyun-jung <39614140+jaeyun-jung@users.noreply.github.com>
Tue, 28 Mar 2023 09:35:54 +0000 (18:35 +0900)
commit435ff4a974b2399b15cc4ca32d2c38590841454b
tree43dcbb6d30c62aa969aeb0371891b3c1f12ef938
parent2b1df86097d7f94496e7990f68f3495a2b55a4a0
[agent/DB] Prevent sql injection by using `sqlite3_bind_text`

- Use `sqlite3_bind_text` instead of formatted string to prevent sql
  injection attack.

Signed-off-by: Yongjoo Ahn <yongjoo1.ahn@samsung.com>
daemon/service-db.cc