mirror of
https://github.com/openbsd/xenocara.git
synced 2025-12-17 22:59:30 +00:00
randr: avoid integer truncation in length check of ProcRRChange*Property
CVE-2023-6478
This commit is contained in:
@@ -530,7 +530,7 @@ ProcRRChangeOutputProperty(ClientPtr client)
|
|||||||
char format, mode;
|
char format, mode;
|
||||||
unsigned long len;
|
unsigned long len;
|
||||||
int sizeInBytes;
|
int sizeInBytes;
|
||||||
int totalSize;
|
uint64_t totalSize;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
REQUEST_AT_LEAST_SIZE(xRRChangeOutputPropertyReq);
|
REQUEST_AT_LEAST_SIZE(xRRChangeOutputPropertyReq);
|
||||||
|
|||||||
@@ -498,7 +498,7 @@ ProcRRChangeProviderProperty(ClientPtr client)
|
|||||||
char format, mode;
|
char format, mode;
|
||||||
unsigned long len;
|
unsigned long len;
|
||||||
int sizeInBytes;
|
int sizeInBytes;
|
||||||
int totalSize;
|
uint64_t totalSize;
|
||||||
int err;
|
int err;
|
||||||
|
|
||||||
REQUEST_AT_LEAST_SIZE(xRRChangeProviderPropertyReq);
|
REQUEST_AT_LEAST_SIZE(xRRChangeProviderPropertyReq);
|
||||||
|
|||||||
Reference in New Issue
Block a user