From 4dcb8aa364c4ab291fbb45becb5187f654363d01 Mon Sep 17 00:00:00 2001 From: Seungbae Shin Date: Tue, 21 Jun 2016 19:51:55 +0900 Subject: [PATCH] Fix SVACE defect [Version] Release 0.1.19 [Profile] Common [ssue Type] SVACE Change-Id: I6230e311bb09af43f70e1db86b6a0b93b289ef8e --- packaging/capi-media-wav-player.spec | 2 +- test/wav_player_test.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/packaging/capi-media-wav-player.spec b/packaging/capi-media-wav-player.spec index fb7ad7a..5588d45 100755 --- a/packaging/capi-media-wav-player.spec +++ b/packaging/capi-media-wav-player.spec @@ -1,6 +1,6 @@ Name: capi-media-wav-player Summary: A wav player library in Tizen C API -Version: 0.1.18 +Version: 0.1.19 Release: 0 Group: Multimedia/API License: Apache-2.0 diff --git a/test/wav_player_test.c b/test/wav_player_test.c index c18747d..0a98d86 100644 --- a/test/wav_player_test.c +++ b/test/wav_player_test.c @@ -100,7 +100,8 @@ int main(int argc, char**argv) switch (opt) { case 'f': - strcpy(file_path, optarg); + strncpy(file_path, optarg, FILE_PATH_MAX - 1); + file_path[FILE_PATH_MAX - 1] = '\0'; break; case 'i': iterate = atoi(optarg); -- 2.7.4