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