#-*- Autoconf -*-
# Process this file with autoconf to produce a configure script.
-AC_INIT([sunpinyin],[0.0.1423], [mail@yongsun.me])
+AC_INIT([sunpinyin],[0.0.1518], [mail@yongsun.me])
AC_PREREQ([2.59])
AC_CONFIG_SRCDIR([configure.ac])
AC_CONFIG_MACRO_DIR([m4])
+* Wed Dec 18 2013 Li Zhang <li2012.zhang@samsung.com> REBASE@5785a74
+- Use sqlite3_mprintf() fuction instead of sprintf
+
+* Tue Dec 17 2013 Li Zhang <li2012.zhang@samsung.com> REBASE@0f2a1fb
+- Set maxlength of preedit string to 62
+- Fix out of bounds error
+- Remove vulnerable codes related to system() function
+- Fill in license field in spec file
+
* Thu Jan 31 2013 Li Zhang <li2012.zhang@samsung.com> accepted/tizen_2.0/20130123.093018@a110cbf
- Always show candidate
- [N_SE-12903][N_SE-12802]flush to commit the first candidate.
Name: ise-engine-sunpinyin
Summary: Chinese Pinyin ISE
-Version: 0.0.1423
-Release: 2
+Version: 0.0.1518
+Release: 1
Group: TO_BE/FILLED_IN
License: LGPL-2.1+ and CDDL-1.0
Source0: %{name}-%{version}.tar.gz
{
assert(m_db != NULL);
char *zErr = NULL;
- char sql[256] = "DELETE FROM dict WHERE id=";
-
if (wid > INI_USRDEF_WID) {
- sprintf(sql, "%s%d;", sql, (wid - INI_USRDEF_WID));
+ char *sql = sqlite3_mprintf("DELETE FROM dict WHERE id=%d;", (wid - INI_USRDEF_WID));
sqlite3_exec(m_db, sql, NULL, NULL, &zErr);
-
+ sqlite3_free(sql);
m_dict.erase(m_dict.find(wid - INI_USRDEF_WID));
}
}