mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 17:57:35 +00:00
Kernel: Turn a VLA into a statically-sized array in dump_backtrace()
This commit is contained in:
parent
ced8dfa037
commit
3dbb9c8448
1 changed files with 1 additions and 1 deletions
|
@ -127,7 +127,7 @@ NEVER_INLINE static void dump_backtrace_impl(FlatPtr base_pointer, bool use_ksym
|
||||||
FlatPtr address;
|
FlatPtr address;
|
||||||
const KernelSymbol* symbol { nullptr };
|
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];
|
RecognizedSymbol recognized_symbols[max_recognized_symbol_count];
|
||||||
size_t recognized_symbol_count = 0;
|
size_t recognized_symbol_count = 0;
|
||||||
if (use_ksyms) {
|
if (use_ksyms) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue