mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-07 11:39:44 +03:00
Kernel: Zero-initialize LocalSocket::m_address
It was possible to read uninitialized kernel memory via getsockname(). Of course, kmalloc() is a good boy and scrubs new allocations with 0xBB so all you got was a bunch of 0xBB.
This commit is contained in:
parent
da296f5865
commit
67950c80c8
Notes:
sideshowbarker
2024-07-19 09:49:04 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/67950c80c88
@ -91,7 +91,7 @@ private:
|
||||
|
||||
bool m_bound { false };
|
||||
bool m_accept_side_fd_open { false };
|
||||
sockaddr_un m_address;
|
||||
sockaddr_un m_address { 0, { 0 } };
|
||||
|
||||
DoubleBuffer m_for_client;
|
||||
DoubleBuffer m_for_server;
|
||||
|
Loading…
Reference in New Issue
Block a user