mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-04-21 14:10:37 +02:00
gallium/util: fix missing limit check in libunwind backtrace
Fixes: 70c272004f ("gallium/util: libunwind support")
Signed-off-by: Rob Clark <robdclark@gmail.com>
This commit is contained in:
parent
8046a944d0
commit
7c69ea553b
1 changed files with 1 additions and 1 deletions
|
|
@ -62,7 +62,7 @@ debug_backtrace_capture(struct debug_stack_frame *backtrace,
|
|||
while ((start_frame > 0) && (unw_step(&cursor) > 0))
|
||||
start_frame--;
|
||||
|
||||
while (unw_step(&cursor) > 0) {
|
||||
while ((i < nr_frames) && (unw_step(&cursor) > 0)) {
|
||||
char procname[256];
|
||||
const char *filename;
|
||||
unw_word_t off;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue