Fix SATIZENVUL-1267(No space for null byte) 04/190304/1
authorDongsun Lee <ds73.lee@samsung.com>
Mon, 1 Oct 2018 02:01:58 +0000 (11:01 +0900)
committerDongsun Lee <ds73.lee@samsung.com>
Mon, 1 Oct 2018 02:01:58 +0000 (11:01 +0900)
Change-Id: If1e8752fbf0cd1b4d3621c8212eda142dd613e0f
Signed-off-by: Dongsun Lee <ds73.lee@samsung.com>
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,