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:
Rob Clark 2017-04-04 08:53:57 -04:00
parent 8046a944d0
commit 7c69ea553b
1 changed files with 1 additions and 1 deletions

View File

@ -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;