mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-06 08:36:15 +00:00
Kernel: Turn a VLA into a statically-sized array in dump_backtrace()
This commit is contained in:
@@ -127,7 +127,7 @@ NEVER_INLINE static void dump_backtrace_impl(FlatPtr base_pointer, bool use_ksym
|
||||
FlatPtr address;
|
||||
const KernelSymbol* symbol { nullptr };
|
||||
};
|
||||
size_t max_recognized_symbol_count = 256;
|
||||
constexpr size_t max_recognized_symbol_count = 256;
|
||||
RecognizedSymbol recognized_symbols[max_recognized_symbol_count];
|
||||
size_t recognized_symbol_count = 0;
|
||||
if (use_ksyms) {
|
||||
|
||||
Reference in New Issue
Block a user