Buffer 'VideoCodecTypeString' can overflow when index>28 09/239209/2 accepted/tizen/unified/20200724.124243 submit/tizen/20200722.015458
authorchengyj1985 <yujie.cheng@samsung.com>
Wed, 22 Jul 2020 11:40:51 +0000 (19:40 +0800)
committerchengyj1985 <yujie.cheng@samsung.com>
Thu, 23 Jul 2020 02:01:16 +0000 (10:01 +0800)
Change-Id: Ifb8f0f6f468e3d66cb49391a9e883812c385a4e3

packaging/libmm-fileinfo.spec
tests/mm_file_test.c

index 2c98c1e25b96bd6fb91f016144f06ebaff6fca0d..c4a5a7c51d2da1b01bf9afbaca3f8bcd01152f05 100644 (file)
@@ -47,6 +47,9 @@ Multimedia Framework FileInfo Library (development files)
 cp %{SOURCE1001} .
 
 %build
+%if "%{tizen_profile_name}" == "tv"
+export CFLAGS+=" -DUSE_CODEC_VPX"
+%endif
 export CFLAGS+=" -Wextra -Wno-array-bounds"
 export CFLAGS+=" -Wno-ignored-qualifiers -Wno-unused-parameter -Wshadow"
 export CFLAGS+=" -Wwrite-strings -Wswitch-default -Werror"
index 0ce5490241bc41a8c56f151dfeeecec62f51bd15..94fdfd8ea08f2f96c7bc0a7e214abbdafca3fc2b 100755 (executable)
@@ -169,6 +169,9 @@ const char *VideoCodecTypeString[] = {
        "MPEG4 part-2 Advanced Simple profile", "MPEG4 part-2 Main profile", "MPEG4 part-2 Core profile", "MPEG4 part-2 Adv Coding Eff profile", "MPEG4 part-2 Adv RealTime Simple profile",    /* 16~20 */
        "MPEG4 part-10 (h.264)", "Real", "VC-1", "AVS", "Cinepak",      /* 21~25 */
        "Indeo", "Theora", "Flv"        /* 26~28 */
+#ifdef USE_CODEC_VPX
+       ,"VP8", "VP9"   /*29~30*/
+#endif
 };