Skip to content

Commit c33ae4d

Browse files
Improve guard check
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
1 parent 8d73b86 commit c33ae4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

remote_config/src/desktop/remote_config_response.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ void RemoteConfigResponse::MarkCompleted() {
9595
return;
9696
}
9797
const flatbuffers::FlatBufferBuilder& builder = parser_->builder_;
98-
if (builder.GetSize() == 0 || builder.GetBufferPointer() == nullptr) {
98+
if (builder.GetSize() < sizeof(flatbuffers::uoffset_t) || builder.GetBufferPointer() == nullptr) {
9999
return;
100100
}
101101
const fbs::Response* body_fbs =

0 commit comments

Comments
 (0)