Searched hist:f714ca80b8e3dc4e953b8728fc7b9457094b2a12 (Results 1 – 1 of 1) sorted by relevance
| /rk3399_ARM-atf/plat/st/common/ |
| H A D | stm32mp_dt.c | f714ca80b8e3dc4e953b8728fc7b9457094b2a12 Wed Mar 10 13:07:34 UTC 2021 Yann Gautier <yann.gautier@foss.st.com> 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
|