зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1787584 - Revert RecvSetCursor to use the correct size comparison.
This just converts the comparison to what we had before. aHeight * aStride must be exactly equal to Size(). Differential Revision: https://phabricator.services.mozilla.com/D155775
This commit is contained in:
Родитель
6e7e506577
Коммит
e3145175c3
|
@ -2334,7 +2334,7 @@ mozilla::ipc::IPCResult BrowserParent::RecvSetCursor(
|
|||
|
||||
nsCOMPtr<imgIContainer> cursorImage;
|
||||
if (aHasCustomCursor) {
|
||||
if (!aCursorData || aHeight * aStride >= aCursorData->Size() ||
|
||||
if (!aCursorData || aHeight * aStride != aCursorData->Size() ||
|
||||
aStride < aWidth * gfx::BytesPerPixel(aFormat)) {
|
||||
return IPC_FAIL(this, "Invalid custom cursor data");
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче