1
0
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:
Paul Pluzhnikov
2015-08-15 11:42:43 -07:00
parent 3cda1b6d56
commit d5dff793af
11 changed files with 57 additions and 16 deletions

View File

@ -108,7 +108,7 @@ __backtrace (void **array, int size)
bool use_unwinder;
int count;
if (!size)
if (size <= 0)
return 0;
use_unwinder = true;