Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

BUG:当最后一次读取分片的时候r.buffer的长度不足以填满buf时会报错 #9

Open
fareera opened this issue Aug 3, 2023 · 0 comments

Comments

@fareera
Copy link

fareera commented Aug 3, 2023

src/code/oss/oss.go 147行
copy(buf, r.buffer[0:len(buf)])
报错信息:panic: runtime error: slice bounds out of range [:524288] with capacity 190185
需要修改为 copy(buf, r.buffer[0:sz])
sz为实际从oss中读取的长度

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant