This patch fixes dereferencing of nullptr in case when GetType() returns that.
Details
Details
- Reviewers
clayborg jingham granata.enrico - Commits
- rG6e46512ec3a7: Don't print a type of variable in Address::Dump if it's unknown (i.e. nullptr)
rLLDB235982: Don't print a type of variable in Address::Dump if it's unknown (i.e. nullptr)
rL235982: Don't print a type of variable in Address::Dump if it's unknown (i.e. nullptr)
Diff Detail
Diff Detail
Event Timeline
| source/Core/Address.cpp | ||
|---|---|---|
| 753 | Just a minor idea for an improvement here if (type) s->Printf (", type = \"%s\"", type->GetName().GetCString());else s->Printf (", type = <unknown>");Looks to me like printing some marker when we can't figure out the type is better than just leaving it out entirely | |
| source/Core/Address.cpp | ||
|---|---|---|
| 753 | thx for the suggestion. I'll do that. | |
Just a minor idea for an improvement here
if (type)
s->Printf (", type = \"%s\"", type->GetName().GetCString());else
s->Printf (", type = <unknown>");Looks to me like printing some marker when we can't figure out the type is better than just leaving it out entirely