mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-11 18:50:50 +00:00
Kernel: Fix integer overflow in framebuffer resolution handling
This made it possible to map the E1000 MMIO range into userspace and mess with the registers. Thanks to @grigoritchy for finding this! Fixes #2015.
This commit is contained in:
parent
18cfb9218a
commit
385dacce05
Notes:
sideshowbarker
2024-07-19 07:12:06 +09:00
Author: https://github.com/awesomekling
Commit: 385dacce05
5 changed files with 23 additions and 23 deletions
|
@ -40,7 +40,7 @@ MBVGADevice& MBVGADevice::the()
|
|||
return *s_the;
|
||||
}
|
||||
|
||||
MBVGADevice::MBVGADevice(PhysicalAddress addr, int pitch, int width, int height)
|
||||
MBVGADevice::MBVGADevice(PhysicalAddress addr, size_t pitch, size_t width, size_t height)
|
||||
: BlockDevice(29, 0)
|
||||
, m_framebuffer_address(addr)
|
||||
, m_framebuffer_pitch(pitch)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue