commit | 79537614259ddaea7066dcfd4d2a9ec3aeb879ec | [log] [tgz] |
---|---|---|
author | Amit Pundir <amit.pundir@linaro.org> | Sat Apr 25 17:14:08 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sat Apr 25 17:14:08 2020 +0000 |
tree | 6a2cf5620248cda8e552b0799c518ab471774219 | |
parent | a6ef4d11d039ced9bd6869473d985296edf04924 [diff] | |
parent | 0f00a4346308146de2ba0f22d30dda498c515041 [diff] |
qcom: pd-mapper: Null terminate firmware_value string am: 4f619fba65 am: c314573a54 am: 521fe5a2c7 am: 0f00a43463 Change-Id: I70e674eb35d32a6de1d5362f764dbc1fa606dcba
diff --git a/qcom/pd-mapper/pd-mapper.c b/qcom/pd-mapper/pd-mapper.c index f26710d..c7db57f 100644 --- a/qcom/pd-mapper/pd-mapper.c +++ b/qcom/pd-mapper/pd-mapper.c
@@ -241,6 +241,8 @@ continue; } + firmware_value[n] = '\0'; + if (strlen(FIRMWARE_BASE) + strlen(firmware_value) + 1 > sizeof(path)) continue;