Fix SATIZENVUL-1267(No space for null byte)
[platform/core/security/drm-service-core-tizen.git] / tappsd / inc / DTapps2Rights.h
index 55db0ea..e3e312e 100644 (file)
@@ -48,15 +48,15 @@ typedef enum
 
 typedef struct {
        int r_id;
-       char name[512];
-       char cid[1024];
+       char name[512 + 1];
+       char cid[1024 + 1];
        char time[64];// enough size
 #ifdef DTAPPS_STORE_CEK_IN_DB
-       char cek[128];
-       char cek_hash[64];
+       char cek[128 + 1];
+       char cek_hash[64 + 1];
 #endif
-       char constraint_buffer[512];
-       char constraint_hash[64];
+       char constraint_buffer[512 + 1];
+       char constraint_hash[64 + 1];
 } DTAPPS_RIGHTS_ROW;
 
 int DTappsValidateConstraints(DTAPPS_CONSTRAINTS *st_const,