언어 설정

Menu
Sites
Language
create bookmark with long string ( 10MB) causing WebProcess crashed

During a test, the following code caused WebProcess crashed when the folder name string size is 10MB. 

var folder = new tizen.BookmarkFolder(folder_param);

If I make the string size smaller, e.g. 1MB, the code ran correctly.

Which gerrit project under this page https://tz.otcshare.org/gerrit/#/admin/projects/ has the source code for Tizen Bookmark API so I can download it and look at the code?

My test was done on Josephone mobile device and the image file is  josephine tizen-2.1-mobile_20130826.1.

Any tip will be greatly appreciated.

 

Thanks,

Chi

 

 

Edited by: Brock Boland on 17 3월, 2014 Reason: Paragraph tags added automatically from tizen_format_fix module.

Responses

5 댓글
Eugene B
Hello, which SDK version you have used for the testing? I just now have successfully created the bookmark folder with folder name string = 100KB. I have used a SDK 2.2
chi ding
Sorry that I made a typo in my original post. I meant to say folder name string of size 10MB. My original post has been fixed now.
chi ding
The SDK I'm using is 2.2.0 FYI.
Eugene B
Can you share your sample project? By the way I can't imagine in which case you will really need to create folder with 100MB folder name.
chi ding
Here is the link of the widget file https://skydrive.live.com/redir?resid=80E43988863471F6!616&authkey=!AIhebz2DRHEjYpU There is a bug in the JavaScript code in the widget file : when creating the folder name iterating through an array, the code goes beyond the array boundary by accessing buffer[l] where l is the length of the buffer. After I fixed the bug, then reran the test with 1MB buffer size, the code ran succesfully. However with 10MB buffer size/folder name string, the code was able to concatenate/create a string of 10MB size but failed to create the folder at the line of code var folder = new tizen.BookmarkFolder(folder_param); So there seems to be two questions to answer : 1) how is the Tizen engine supposed to behave/handle accessing out-of-boundary array element? 2) Seemly buffer over flow issue in the Tizen Bookmark API. My test was done on josephine tizen-2.1-mobile_20130826.1 image Thanks!