Skip to content
Open
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
2 changes: 1 addition & 1 deletion Fleece/API_Impl/FLSlice.cc
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ namespace fleece {
uint8_t _buf[4];

static inline void* operator new(size_t basicSize, size_t bufferSize) noexcept {
return malloc(basicSize - sizeof(sharedBuffer::_buf) + bufferSize);
return malloc(basicSize - sizeof(sharedBuffer::_buf) + std::max(bufferSize, sizeof(sharedBuffer::_buf)));
}

static inline void operator delete(void *self) {
Expand Down
Loading