Fix asan defect 57/79557/1 accepted/tizen/common/20160712.150638 accepted/tizen/ivi/20160712.043431 accepted/tizen/mobile/20160712.043300 accepted/tizen/tv/20160712.043325 accepted/tizen/wearable/20160712.043357 submit/tizen/20160712.015213
authorMinje Ahn <minje.ahn@samsung.com>
Mon, 11 Jul 2016 23:05:28 +0000 (08:05 +0900)
committerMinje Ahn <minje.ahn@samsung.com>
Mon, 11 Jul 2016 23:05:28 +0000 (08:05 +0900)
Change-Id: If0e37c822d8ed4812524fdda1c3e064201d13a60
Signed-off-by: Minje Ahn <minje.ahn@samsung.com>
packaging/capi-content-media-content.spec
src/media_playlist.c

index b86139bd54b3970b7cc410546caae3f83314c768..a072a6d48ce4a0cd945aecda4d6e63c839d15c6f 100755 (executable)
@@ -1,6 +1,6 @@
 Name:       capi-content-media-content
 Summary:    A Media content library in Tizen Native API
-Version:    0.2.80
+Version:    0.2.81
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index df6147a049b66b364579451a5a2dc51dd43b83f2..3eecc3b720e56c507e2c22a7e1aec73ef26cdbc7 100755 (executable)
@@ -282,7 +282,7 @@ static int __media_playlist_import_item_from_file(const char* playlist_path, cha
        }
 
        char format[25];
-       snprintf(format, 25, "%%%d[^\n]", MAX_TMP_STR);
+       snprintf(format, 25, "%%%d[^\n]", MAX_TMP_STR - 1);
 
        while ((sscanf(tmp_buf, format, tmp_str) == 1) || (*tmp_buf == '\n')) {
                if (*tmp_buf == '\n') {