summaryrefslogtreecommitdiffstats
path: root/dynamic-layers/ivi
diff options
context:
space:
mode:
authorKhem Raj <khem.raj@oss.qualcomm.com>2026-09-26 22:11:37 -0700
committerKhem Raj <khem.raj@oss.qualcomm.com>2026-09-26 22:13:08 -0700
commitba2685633efcbf4b6c2373436754f6354b0d116d (patch)
tree95e66e9f2b857c27c9174eeb15a912cdaae61227 /dynamic-layers/ivi
parent1429eb4afa0e103abd961ac023a23104ce644edc (diff)
downloadmeta-freescale-ba2685633efcbf4b6c2373436754f6354b0d116d.tar.gz
imx-dpu-g2d: Fix strtol() overflow check in getSystemEnvInt()
getSystemEnvInt() stores the strtol() result in an int and then compares it against LONG_MAX/LONG_MIN. On LP64 the value is truncated first, so the ERANGE check can never trigger, and clang fails the build: os/linux/g2d_utils.c:33:31: error: result of comparison of constant 9223372036854775807 with expression of type 'int' is always false [-Werror,-Wtautological-constant-out-of-range-compare] Add a patch that keeps the value in a long, rejects values outside the int range and narrows explicitly on return. Tested with bitbake imx-dpu-g2d on imx8qm-var-som using clang. Signed-off-by: Khem Raj <khem.raj@oss.qualcomm.com>
Diffstat (limited to 'dynamic-layers/ivi')
0 files changed, 0 insertions, 0 deletions