FUSEX: check if there is still an allocated buffer before trying to match it - fixes EOS-3152

parent 51638df2
......@@ -950,6 +950,9 @@ public:
bool matches(off_t off, uint32_t size,
off_t& match_offset, uint32_t& match_size)
if (!mBuffer)
return false;
if ((off >= roffset) &&
(off < ((off_t)(roffset + mBuffer->size())))) {
match_offset = off;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment