Change-Id: I479294aeda58771c9646c03a3d216c621b58af11
Name: libmm-fileinfo
Summary: Media Fileinfo
-Version: 0.6.63
+Version: 0.6.64
Release: 0
Group: System/Libraries
License: Apache-2.0
goto fail;
}
- memcpy(pHandle->fileName, filename, fileNameLen);
+ SAFE_STRLCPY(pHandle->fileName, filename, fileNameLen + 1);
err = Func->mmfile_open(pHandle, filename, flags);
if (err < 0) {
if (*pFile == '\0') {
file_handle:
- strncpy(handle_str, "file", strlen("file"));
+ SAFE_STRLCPY(handle_str, "file", sizeof(handle_str));
} else {
*pHandleName = '\0';
}
return MMFILE_UTIL_FAIL;
}
- strncpy(init_view_ret, value_start, value_length_max);
- init_view_ret[value_length] = '\0';
+ memset(init_view_ret, 0x00, sizeof(init_view_ret));
+ SAFE_STRLCPY(init_view_ret, value_start, sizeof(init_view_ret));
*value = strtol(init_view_ret, &endptr, 10);
if (endptr == init_view_ret) {