Skip to content

Commit 72ec7f6

Browse files
jckingcopybara-github
authored andcommitted
Fix bug in cel::common_internal::ByteString::TryFlat
PiperOrigin-RevId: 995373516
1 parent 56b53af commit 72ec7f6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎common/internal/byte_string.cc‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -253,7 +253,7 @@ absl::optional<absl::string_view> ByteString::TryFlat() const {
253253
return GetMedium();
254254
case ByteStringKind::kLarge: {
255255
if (auto flat = rep_.large.data->TryFlat(); flat.has_value()) {
256-
return flat->substr(rep_.large.offset, rep_.large.offset);
256+
return flat->substr(rep_.large.offset, rep_.large.size);
257257
}
258258
return absl::nullopt;
259259
}

0 commit comments

Comments
 (0)