fuse icon indicating copy to clipboard operation
fuse copied to clipboard

fuseutil : HandleRead panics when the resp data is not big enough to hold the file

Open sarathsp06 opened this issue 7 years ago • 1 comments

The HandleRead panics if the resp.Data is nil or not big enough to hold data

sarathsp06 avatar Oct 21 '18 06:10 sarathsp06

resp.Data cannot be nil:

		s := &fuse.ReadResponse{Data: make([]byte, 0, r.Size)}

Where do you see a panic in HandleRead? It's routinely called with data larger than resp.Data.

tv42 avatar Apr 15 '20 05:04 tv42

Not enough information given to help you -> closing this issue.

Also, the kernel decides how much data it wants, you can't return more then ReadRequest.Size bytes.

tv42 avatar Dec 09 '22 18:12 tv42