[1.2.6] Fix svace issue (SEC_DO_NOT_USE_POINTER_WITH_INT_IN_UNION) 14/320614/1 accepted/tizen_9.0_unified tizen_9.0 accepted/tizen/9.0/unified/20241121.045822
authorGilbok Lee <gilbok.lee@samsung.com>
Tue, 19 Nov 2024 09:02:36 +0000 (18:02 +0900)
committerGilbok Lee <gilbok.lee@samsung.com>
Tue, 19 Nov 2024 09:11:45 +0000 (09:11 +0000)
Change-Id: I5bfaab0081052ba5a3aad3112d1a6a0c650f66db

include/mtpr.h
packaging/capi-media-transporter.spec
test/mtpr_test.c

index fd21698509a83a62725c311549d317165796a592..6184dfdd7535415a22f3489addd967fa4f1fa239 100644 (file)
@@ -190,8 +190,8 @@ typedef struct {
        /** The property value as per the data type above */
        union {
                bool v_bool;                /**< For boolean */
-               int v_int;                  /**< For signed integer */
-               unsigned int v_uint;        /**< For unsigned integer */
+               intptr_t v_int;             /**< For signed integer */
+               uintptr_t v_uint;           /**< For unsigned integer */
                int64_t v_int64;            /**< For 64-bit signed integer */
                uint64_t v_uint64;          /**< For 64-bit unsigned integer */
                float v_float;              /**< For float */
index 0e82f4647a1d5602364a71671db6dbd4a4b128ca..c46054a7a2e792f3c7f3b357bbb3c6a211b975f2 100644 (file)
@@ -1,6 +1,6 @@
 Name:       capi-media-transporter
 Summary:    A Media Transporter library in Tizen Native API
-Version:    1.2.5
+Version:    1.2.6
 Release:    0
 Group:      Multimedia/API
 License:    Apache-2.0
index 1df681c9dc91514ce6d39a6791320380ed2491b7..208796044b9ba35229cf8c0d6911a00ee84bc4f4 100644 (file)
@@ -292,11 +292,11 @@ bool __connection_stats_cb(mtpr_h mtpr, const mtpr_connection_stats_prop_info_s
                        mtpr, prop_info->prop, prop_info->type, prop_info->name, prop_info->v_bool);
                break;
        case MTPR_CONNECTION_STATS_PROP_TYPE_INT:
-               g_print("                         => [STATS_CB] mtpr[%p], prop[%d], type[%d], %s:%d\n",
+               g_print("                         => [STATS_CB] mtpr[%p], prop[%d], type[%d], %s: %" PRIdPTR  "\n",
                        mtpr, prop_info->prop, prop_info->type, prop_info->name, prop_info->v_int);
                break;
        case MTPR_CONNECTION_STATS_PROP_TYPE_UINT:
-               g_print("                         => [STATS_CB] mtpr[%p], prop[%d], type[%d], %s:%u\n",
+               g_print("                         => [STATS_CB] mtpr[%p], prop[%d], type[%d], %s:%" PRIuPTR "\n",
                        mtpr, prop_info->prop, prop_info->type, prop_info->name, prop_info->v_uint);
                break;
        case MTPR_CONNECTION_STATS_PROP_TYPE_INT64: