Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Fleece/Core/Value.cc
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,9 @@ namespace fleece { namespace impl {
// This means the actual length follows as a varint:
uint32_t length;
size_t lengthBytes = GetUVarInt32(s, &length);
if (_usuallyFalse(lengthBytes == 0))
// Invalid data, but I'm not allowed to throw an exception.
return nullslice;
return slice(&s[lengthBytes], length);
}
return s;
Expand Down