FASTSHIFT opened a new pull request, #4005:
URL: https://github.com/apache/nuttx-apps/pull/4005
## Summary
In `fb_init_mem2()`, `vinfo.yres * pinfo.stride` is computed in `int`
(both are 16-bit) and may overflow before being assigned to the `size_t`
`framesize`. Cast `yres` to `size_t` so the multiplication is done in
`size_t`. Reported by Coverity (sign extension).
## Impact
- Only `examples/fb`; one line changed.
- No behavior change for normal resolutions.
- No Kconfig, API, or documentation changes.
## Testing
Build-only; not run on a target.
- Host: Ubuntu 22.04 x86_64, gcc 13.1.0
- Base: apache/nuttx-apps `ee3d67104`
- `gcc -fsyntax-only -Wall -Wshadow -Wundef` on `examples/fb/fb_main.c`
against nuttx `066314c6373` headers: no warnings.
- `checkpatch.sh -c -u -m -g` on the commit, and `-f` on `fb_main.c`: pass.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]