Commit c4d56a93 authored by Dong Anyuan's avatar Dong Anyuan

Fix Coverity Scan CID 60471 (Function memory_read does not terminate string...

Fix Coverity Scan CID 60471 (Function memory_read does not terminate string *user->nas_user_nvdata.)
parent 88042616
......@@ -161,6 +161,8 @@ void nas_user_initialize(nas_user_t *user, emm_indication_callback_t emm_cb,
user->nas_user_nvdata = calloc_or_fail(sizeof(user_nvdata_t));
memset(user->nas_user_nvdata, 0, sizeof(user_nvdata_t));
/* Get UE data stored in the non-volatile memory device */
int rc = memory_read(user->user_nvdata_store, user->nas_user_nvdata, sizeof(user_nvdata_t));
if (rc != RETURNok) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment