Fix out-of-bounds access issue in prevent 17/34317/1
authorJae-Yong Lee <jaeyong911.lee@samsung.com>
Fri, 23 Jan 2015 08:22:45 +0000 (17:22 +0900)
committerJae-Yong Lee <jaeyong911.lee@samsung.com>
Fri, 23 Jan 2015 08:22:45 +0000 (17:22 +0900)
Change-Id: I7e6e6e02ec4d6d09753e78f00e9d10060784d320

src/isf_default_imengine.cpp

index 2a67a5c..866b4e3 100644 (file)
@@ -187,7 +187,7 @@ DefaultInstance::DefaultInstance(DefaultFactory * factory,
 
        for (int i = 1; i < 10; ++i) {
                label[0] = '0' + i;
-               labels.push_back(utf8_mbstowcs(label));
+               labels.push_back(utf8_mbstowcs(String(label)));
        }
 
        m_lookup_table.set_candidate_labels(labels);