Commit 757296c
authored
Fix size overflow in AbstractDiskHttpData (#15463)
Motivation:
The local variable `written` is int in
`AbstractDiskHttpData#setContent(InputStream)`, if the inputstream size
is larger than max value of int, it will overflow, as a result the
`size` will be wrong
Modification:
make `written` long
Result:
`size` does not overflow
Signed-off-by: 秦利斌 <[email protected]>1 parent ab3aa88 commit 757296c
1 file changed
Lines changed: 1 addition & 1 deletion
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
228 | 228 | | |
229 | 229 | | |
230 | 230 | | |
231 | | - | |
| 231 | + | |
232 | 232 | | |
233 | 233 | | |
234 | 234 | | |
| |||
0 commit comments