commit | 0f00a4346308146de2ba0f22d30dda498c515041 | [log] [tgz] |
---|---|---|
author | Amit Pundir <amit.pundir@linaro.org> | Sat Apr 25 17:03:39 2020 +0000 |
committer | Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> | Sat Apr 25 17:03:39 2020 +0000 |
tree | 6a2cf5620248cda8e552b0799c518ab471774219 | |
parent | cc1e1104837f504685bfeb1c88fcd5e3777ffb52 [diff] | |
parent | 521fe5a2c77ad04ab77f8f52e5fb2ee6e3573a58 [diff] |
qcom: pd-mapper: Null terminate firmware_value string am: 4f619fba65 am: c314573a54 am: 521fe5a2c7 Change-Id: I4349a5da6bb85e80500602d3bcc3fa96bd411308
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;