Merge "lib: qmi: Add check to avoid out of bound memory access"