Merge pull request #817 from M4T1A5/fix/worker_add_source_loc

Fix worker AddSourceLocationPayload source file string length calculation
This commit is contained in:
Bartosz Taudul 2024-06-19 19:02:43 +02:00 committed by GitHub
commit d4a4b62396
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

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++;