change functions to constructing queries from snprintf to sqlite3_snprintf 36/72936/8 submit/tizen/20160615.004118
authorJunghyun Yeon <jungh.yeon@samsung.com>
Fri, 3 Jun 2016 07:02:52 +0000 (16:02 +0900)
committerJunghyun Yeon <jungh.yeon@samsung.com>
Tue, 14 Jun 2016 00:26:08 +0000 (17:26 -0700)
commit5078b712aa430fd7d5d8b358747f5894f31ecbd3
tree9b1541e721b54606cf35efaaef7c7caf57d5d642
parent56c695e528deb3287587d08ee0adb9197c05a824
change functions to constructing queries from snprintf to sqlite3_snprintf

- constructing queries using snprintf
has weakness for sql injection so change it into sqlite_snprintf
- sqlite3_snprintf will prevent storing null string as "(null)"
or ''
- add "NOT NULL" constraint which column store true/false value

Change-Id: I07e4aa85628692fb464797e8453cd635de132283
Signed-off-by: Junghyun Yeon <jungh.yeon@samsung.com>
parser/pkgmgr_parser.h
parser/pkgmgr_parser_db.c
parser/pkgmgr_parser_db.h