1
0
mirror of https://github.com/wolfpld/tracy synced 2025-04-29 12:23:53 +00:00

There are situations in which inSym can be nullptr.

Don't know exactly how to reproduce this. Nevertheless, the capture was
produced in an usual way. This may be dependant on the exact client
configuration.
This commit is contained in:
Bartosz Taudul 2022-04-28 23:04:55 +02:00
parent fc37f3c04c
commit 4c0dd704d8
No known key found for this signature in database
GPG Key ID: B7FE2008B7575DF3

View File

@ -13764,7 +13764,8 @@ void View::DrawSamplesStatistics(Vector<SymList>& data, int64_t timeRange, Accum
if( !m_statSeparateInlines && hasNoSamples && v.symAddr != 0 && v.count > 0 )
{
auto inSym = m_worker.GetInlineSymbolList( v.symAddr, symlen );
assert( inSym != nullptr );
if( inSym )
{
const auto symEnd = v.symAddr + symlen;
while( *inSym < symEnd )
{
@ -13780,6 +13781,7 @@ void View::DrawSamplesStatistics(Vector<SymList>& data, int64_t timeRange, Accum
inSym++;
}
}
}
if( hasNoSamples )
{
if( isKernel )