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
|
@ -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…
Reference in New Issue