summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
2965341)
[Issue#] N/A
[Feature/Bug] N/A
[Problem] The string buffer may not have a null terminator
[Cause] Coverity warnings
[Solution] Strings possible length decremented
Change-Id: I90bfeec77c4731ac06dd279ef2da1e486d1e41f2
if (!configInfo.tizenAppId.IsNull()) {
strncpy(pkg_detail_info->pkg_name,
DPL::ToUTF8String(*configInfo.tizenAppId).c_str(),
if (!configInfo.tizenAppId.IsNull()) {
strncpy(pkg_detail_info->pkg_name,
DPL::ToUTF8String(*configInfo.tizenAppId).c_str(),
- PKG_NAME_STRING_LEN_MAX);
+ PKG_NAME_STRING_LEN_MAX - 1);
}
if (!configInfo.version.IsNull()) {
strncpy(pkg_detail_info->version,
}
if (!configInfo.version.IsNull()) {
strncpy(pkg_detail_info->version,
if (!configInfo.tizenMinVersionRequired.IsNull()) {
strncpy(pkg_detail_info->min_platform_version,
DPL::ToUTF8String(*configInfo.tizenMinVersionRequired).c_str(),
if (!configInfo.tizenMinVersionRequired.IsNull()) {
strncpy(pkg_detail_info->min_platform_version,
DPL::ToUTF8String(*configInfo.tizenMinVersionRequired).c_str(),
- PKG_VERSION_STRING_LEN_MAX);
+ PKG_VERSION_STRING_LEN_MAX - 1);
}
if (!configInfo.authorName.IsNull()) {
}
if (!configInfo.authorName.IsNull()) {