mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 14:28:12 +00:00
Kernel: Prevent kprintf() from asserting in Console::the() (#718)
This triggered a stack overflow because ubsan can call kprintf() at any time, even before Console is initialized.
This commit is contained in:
parent
8216019b2e
commit
81c4dcadf1
3 changed files with 14 additions and 1 deletions
|
@ -14,6 +14,7 @@ class Console final : public CharacterDevice {
|
|||
AK_MAKE_ETERNAL
|
||||
public:
|
||||
static Console& the();
|
||||
static bool is_initialized();
|
||||
|
||||
Console();
|
||||
virtual ~Console() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue