mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
Fix BZ #18084 -- backtrace (..., 0) dumps core on x86.
Other architectures also had bugs, or did unnecessary work.
This commit is contained in:
@ -108,7 +108,7 @@ __backtrace (void **array, int size)
|
||||
bool use_unwinder;
|
||||
int count;
|
||||
|
||||
if (!size)
|
||||
if (size <= 0)
|
||||
return 0;
|
||||
|
||||
use_unwinder = true;
|
||||
|
Reference in New Issue
Block a user