Fix source location payload source file string length calculation

This commit is contained in:
Matias Kangasjärvelä 2024-06-19 19:47:56 +03:00
parent be40c1e38e
commit 4bbe973e3a

View File

@ -3643,7 +3643,8 @@ void Worker::AddSourceLocationPayload( const char* data, size_t sz )
const auto func = StoreString( data, end - data );
end++;
data = end + strlen( data );
data = end;
end = data + strlen( data );
const auto source = StoreString( data, end - data );
end++;