[Bug libbacktrace/81983] libbacktrace calls bsearch with NULL base

2019-02-12 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81983 Tom de Vries changed: What|Removed |Added Status|NEW |RESOLVED Resolution|---

[Bug libbacktrace/81983] libbacktrace calls bsearch with NULL base

2019-02-12 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81983 --- Comment #7 from Tom de Vries --- Author: vries Date: Tue Feb 12 14:00:59 2019 New Revision: 268796 URL: https://gcc.gnu.org/viewcvs?rev=268796&root=gcc&view=rev Log: [libbacktrace] Handle bsearch with NULL base in dwarf_lookup_pc The call t

[Bug libbacktrace/81983] libbacktrace calls bsearch with NULL base

2019-02-12 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81983 Tom de Vries changed: What|Removed |Added Keywords||patch Status|WAITING

[Bug libbacktrace/81983] libbacktrace calls bsearch with NULL base

2019-02-11 Thread ian at airs dot com
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81983 --- Comment #5 from Ian Lance Taylor --- I would be inclined to just skip the bsearch when the count is zero.

[Bug libbacktrace/81983] libbacktrace calls bsearch with NULL base

2019-02-11 Thread vries at gcc dot gnu.org
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=81983 --- Comment #4 from Tom de Vries --- Ian, how do you want this fixed? We could add a safe_bsearch: ... diff --git a/libbacktrace/internal.h b/libbacktrace/internal.h index 065b9535e8b..7d9aa5e88c5 100644 --- a/libbacktrace/internal.h +++ b/libba