mirror of
https://github.com/rhboot/gnu-efi
synced 2026-08-26 00:26:04 -04:00
Coverity added a new kind of check, and it noticed some minor errors with some types in two of the apps here, both of the same form: 1. gnu-efi-3.0.6/apps/lfbgrid.c:91: overflow_before_widen: Potentially overflowing expression "info->VerticalResolution * info->PixelsPerScanLine" with type "unsigned int" (32 bits, unsigned) is evaluated using 32-bit arithmetic, and then used in a context that expects an expression of type "UINTN" (64 bits, unsigned). 1. gnu-efi-3.0.6/apps/bltgrid.c:67: overflow_before_widen: Potentially overflowing expression "info->VerticalResolution * info->HorizontalResolution" with type "unsigned int" (32 bits, unsigned) is evaluated using 32-bit arithmetic, and then used in a context that expects an expression of type "UINTN" (64 bits, unsigned). This resolves both issues. Signed-off-by: Peter Jones <pjones@redhat.com> |
||
|---|---|---|
| .. | ||
| AllocPages.c | ||
| bltgrid.c | ||
| debughook.c | ||
| drv0.c | ||
| drv0.h | ||
| drv0_use.c | ||
| exit.c | ||
| FreePages.c | ||
| lfbgrid.c | ||
| Makefile | ||
| modelist.c | ||
| printenv.c | ||
| route80h.c | ||
| setdbg.c | ||
| setjmp.c | ||
| t.c | ||
| t2.c | ||
| t3.c | ||
| t4.c | ||
| t5.c | ||
| t6.c | ||
| t7.c | ||
| t8.c | ||
| tcc.c | ||
| tpause.c | ||
| trivial.S | ||
| unsetdbg.c | ||