uint16 should be plenty for width and height, so width*height will not overflow an int32. Might fix a codeQL warning.
parent
a62f4b2e77
commit
24313b1a59
|
@ -39,9 +39,9 @@ protected:
|
|||
|
||||
const Monitor *monitor;
|
||||
SourceType type;
|
||||
unsigned int width;
|
||||
uint16_t width;
|
||||
uint16_t height;
|
||||
unsigned int linesize;
|
||||
unsigned int height;
|
||||
unsigned int colours;
|
||||
unsigned int subpixelorder;
|
||||
unsigned int pixels;
|
||||
|
|
Loading…
Reference in New Issue