mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
Kernel: Turn a VLA into a statically-sized array in dump_backtrace()
This commit is contained in:
parent
ced8dfa037
commit
3dbb9c8448
Notes:
sideshowbarker
2024-07-18 21:33:07 +09:00
Author: https://github.com/awesomekling
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