These operations are done in 32-bit arithmetics before being casted to 64-bit, thus can overflow before the cast. Casting early fixes the issue. Found through static analysis |
||
|---|---|---|
| .. | ||
| atomic.c | ||
| backend.c | ||
| drm.c | ||
| legacy.c | ||
| properties.c | ||
| renderer.c | ||
| util.c | ||
These operations are done in 32-bit arithmetics before being casted to 64-bit, thus can overflow before the cast. Casting early fixes the issue. Found through static analysis |
||
|---|---|---|
| .. | ||
| atomic.c | ||
| backend.c | ||
| drm.c | ||
| legacy.c | ||
| properties.c | ||
| renderer.c | ||
| util.c | ||