From: Kunhoon Baik Date: Mon, 3 Jul 2017 23:33:26 +0000 (+0900) Subject: Fix a bug of buffer-size using when checking tizen-id validation X-Git-Tag: submit/tizen/20170705.023006~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=64a4ef3872ead357e886db789b6e7d147be95700;p=platform%2Fcore%2Fapi%2Fsystem-info.git Fix a bug of buffer-size using when checking tizen-id validation It should be ID_LEN(28)+4 because 32 byte is maximum. Change-Id: I0a877b9b01c7fa1184308598f0ce21c03f1707d9 --- diff --git a/src/tizenid/tizenid.c b/src/tizenid/tizenid.c index f0a07a0..3902415 100755 --- a/src/tizenid/tizenid.c +++ b/src/tizenid/tizenid.c @@ -121,7 +121,7 @@ static int check_tizen_id_content(void) { FILE *fp; int ret; - char id[ID_LEN + 1] = {0, }; + char id[ID_LEN + 4 + 1] = {0, }; int len; fp = fopen(TIZEN_ID_PATH, "r");