commit | 1c959330990d7d6be070ca28df9e7daa6bf3f4df | [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 | c4eb63097debcf8442298c638ed63bada530135b [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