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

由于文件size定义为int,32位程序处理大文件可能溢出 #997

Closed
3 tasks done
WntFlm opened this issue Apr 25, 2022 · 1 comment
Closed
3 tasks done
Labels
bug Something isn't working

Comments

@WntFlm
Copy link
Contributor

WntFlm commented Apr 25, 2022

Please make sure of the following things

  • I have read the documentation.
  • I'm sure there are no duplicate issues or discussions.
  • I'm sure it's due to alist and not something else(such as Dependencies or Operational).

Alist Version / Alist 版本

2.4.3

Describe the bug / 问题描述

使用 alist-windows-4.0-386.exe 下载大文件 (~>5GB)时,size 溢出,下载失败,返回{"code":500,"message":"json: cannot unmarshal number 5175268215 into Go struct field .data.size of type int","data":null}

或许可以把 size 定义成 int64

Reproduction / 复现链接

暂无

Logs / 日志

INFO[2022-04-26 06:27:50] start server @ 0.0.0.0:5244
2022/04/26 06:27:52.287954 ERROR RESTY json: cannot unmarshal number 5175268215 into Go struct field .data.size of type int, Attempt 1
ERRO[2022-04-26 06:27:52] json: cannot unmarshal number 5175268215 into Go struct field .data.size of type int
[GIN] 2022/04/26 - 06:27:52 | 200 |    135.3284ms |             ::1 | GET      "/d/quark/1909df0f2b7bfe9f6bb002389d092c9e9c400667150ca0a505e443e355dc51d5"
@welcome
Copy link

welcome bot commented Apr 25, 2022

Thanks for opening your first issue here! Be sure to follow the issue template!

@xhofe xhofe added the bug Something isn't working label Apr 26, 2022
@xhofe xhofe closed this as completed in 4901e90 May 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants