Commit ee39352d authored by Han-Wen Nienhuys's avatar Han-Wen Nienhuys

fuse: zero out the whole output buffer

parent 488fec85
...@@ -178,7 +178,8 @@ func (r *request) parse() { ...@@ -178,7 +178,8 @@ func (r *request) parse() {
} }
} }
copy(r.outBuf[:r.handler.OutputSize], zeroOutBuf[:r.handler.OutputSize]) copy(r.outBuf[:r.handler.OutputSize+sizeOfOutHeader],
zeroOutBuf[:r.handler.OutputSize+sizeOfOutHeader])
r.outData = unsafe.Pointer(&r.outBuf[sizeOfOutHeader]) r.outData = unsafe.Pointer(&r.outBuf[sizeOfOutHeader])
} }
......
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