Skip to content

Commit 8d73b86

Browse files
committed
Guard remote config response parsing from empty FlatBuffer
Fixes #1433.
1 parent 292c799 commit 8d73b86

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

remote_config/src/desktop/remote_config_response.cc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,9 @@ void RemoteConfigResponse::MarkCompleted() {
9595
return;
9696
}
9797
const flatbuffers::FlatBufferBuilder& builder = parser_->builder_;
98+
if (builder.GetSize() == 0 || builder.GetBufferPointer() == nullptr) {
99+
return;
100+
}
98101
const fbs::Response* body_fbs =
99102
flatbuffers::GetRoot<fbs::Response>(builder.GetBufferPointer());
100103

0 commit comments

Comments
 (0)