commit | f714ca80b8e3dc4e953b8728fc7b9457094b2a12 | [log] [tgz] |
---|---|---|
author | Yann Gautier <yann.gautier@foss.st.com> | Wed Mar 10 14:07:34 2021 +0100 |
committer | Yann Gautier <yann.gautier@foss.st.com> | Thu Apr 29 17:57:47 2021 +0200 |
tree | 2606da2d96777854931f3390e6d66961483eceb2 | |
parent | 6794378d2e955d2bf378ff2aa726a29d5884dc1f [diff] |
plat/st: do not rely on tainted value for dt property length To compare the "okay" string of a property, strncmp is used but with the length given by fdt_getprop. This len value is reported as tainted by Coverity [1]. We just can use strlen("okay") which is a known value to compare the 2 strings. [1] https://scan4.coverity.com/reports.htm#v51972/p11439/fileInstanceId=96515154&defectInstanceId=14219121&mergedDefectId=342997 Signed-off-by: Yann Gautier <yann.gautier@foss.st.com> Change-Id: Ic8fb6ccf3126a37df615e433eb028861812015da