Skip to content

Commit

Permalink
Check SpanOrSize data before using it.
Browse files Browse the repository at this point in the history
  • Loading branch information
goodov committed Oct 9, 2024
1 parent b049a7a commit b8dfff2
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -652,7 +652,9 @@ void PageGraph::DidReceiveData(uint64_t identifier,
if (TrackedRequestRecord* request_record =
request_tracker_.GetTrackingRecord(identifier)) {
if (TrackedRequest* request = request_record->request.get()) {
request->UpdateResponseBodyHash(*data.span());
if (auto data_span = data.span(); data_span) {
request->UpdateResponseBodyHash(*data_span);
}
}
return;
}
Expand Down

0 comments on commit b8dfff2

Please sign in to comment.