diff options
author | Saulo Moraes <s.moraes@samsung.com> | 2018-02-14 14:56:55 -0200 |
---|---|---|
committer | Kyoungyong Lee <k.y.lee@samsung.com> | 2018-02-20 04:31:14 +0000 |
commit | 397500c8e1e4c602d4a8a57b1a276a82c712838e (patch) | |
tree | a3ab6ed783823d7d4b0a0fe3ab2d7226a7a0dddb | |
parent | 776870738d13bb6ae0296310a9ee9c82fef3c040 (diff) | |
download | privacy-setting-397500c8e1e4c602d4a8a57b1a276a82c712838e.tar.gz privacy-setting-397500c8e1e4c602d4a8a57b1a276a82c712838e.tar.bz2 privacy-setting-397500c8e1e4c602d4a8a57b1a276a82c712838e.zip |
Fix buffer_overflow issue detected by svace 2.5 (WGID: 308944)submit/tizen/20180220.082110accepted/tizen/unified/20180221.061134
Change-Id: I53ceb0a9d3de059b43c38d6bf7e0afd2db413d83
-rw-r--r-- | ui/src/privacy_dlp_reports_data_stat_view.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/ui/src/privacy_dlp_reports_data_stat_view.c b/ui/src/privacy_dlp_reports_data_stat_view.c index 2e5a456..9430b14 100644 --- a/ui/src/privacy_dlp_reports_data_stat_view.c +++ b/ui/src/privacy_dlp_reports_data_stat_view.c @@ -46,6 +46,7 @@ static bool _pg_dlp_leak_logs_cb(const char *category, time_t first_time_stamp, if (data != NULL) { strncpy(data->category.text, category, LEN_CATEGORY); + data->category.text[LEN_CATEGORY - 1] = '\0'; data->first_time_stamp = first_time_stamp; data->last_time_stamp = last_time_stamp; data->leak_count = leak_count; |