diff options
| author | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-09-26 22:11:37 -0700 |
|---|---|---|
| committer | Khem Raj <khem.raj@oss.qualcomm.com> | 2026-09-26 22:13:08 -0700 |
| commit | ba2685633efcbf4b6c2373436754f6354b0d116d (patch) | |
| tree | 95e66e9f2b857c27c9174eeb15a912cdaae61227 /dynamic-layers/ivi/recipes-graphics/wayland | |
| parent | 1429eb4afa0e103abd961ac023a23104ce644edc (diff) | |
| download | meta-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/recipes-graphics/wayland')
0 files changed, 0 insertions, 0 deletions
