Fix out-of-bounds access issue in prevent 23/34123/1
authorJihoon Kim <jihoon48.kim@samsung.com>
Mon, 15 Dec 2014 06:15:14 +0000 (15:15 +0900)
committerLi Zhang <li2012.zhang@samsung.com>
Wed, 21 Jan 2015 10:08:36 +0000 (18:08 +0800)
Change-Id: I4a0ed4b6186618ec4f10536ebc48d28ac117a00d

ism/src/scim_lookup_table.cpp

index 6a7f2e4a1ea6a0b3a8f9f552045d8a41498397ad..a8555d6e555e6367de32c4e27c1c028cb4cf9c2c 100644 (file)
@@ -305,7 +305,7 @@ CommonLookupTable::CommonLookupTable (int page_size)
     char buf [2] = { 0, 0 };
     for (int i = 0; i < 9; ++i) {
         buf [0] = '1' + i;
-        labels.push_back (utf8_mbstowcs (buf));
+        labels.push_back (utf8_mbstowcs (String (buf)));
     }
 
     labels.push_back (utf8_mbstowcs ("0"));