Commit a931a6d
zip: Don't truncate return value of zip_fread() with user sizes
The return type has been zip_int64_t since 2009, so we shouldn't
truncate to an int because the user may have requested a size that won't
fit in an int.
Closes phpGH-20509.1 parent 6e774b1 commit a931a6d
2 files changed
+5
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
57 | 57 | | |
58 | 58 | | |
59 | 59 | | |
| 60 | + | |
60 | 61 | | |
61 | 62 | | |
62 | 63 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1303 | 1303 | | |
1304 | 1304 | | |
1305 | 1305 | | |
1306 | | - | |
1307 | 1306 | | |
1308 | 1307 | | |
1309 | 1308 | | |
| |||
1318 | 1317 | | |
1319 | 1318 | | |
1320 | 1319 | | |
1321 | | - | |
1322 | | - | |
| 1320 | + | |
| 1321 | + | |
1323 | 1322 | | |
1324 | 1323 | | |
1325 | 1324 | | |
| |||
2781 | 2780 | | |
2782 | 2781 | | |
2783 | 2782 | | |
2784 | | - | |
2785 | | - | |
2786 | 2783 | | |
2787 | 2784 | | |
2788 | 2785 | | |
| |||
2818 | 2815 | | |
2819 | 2816 | | |
2820 | 2817 | | |
2821 | | - | |
2822 | | - | |
| 2818 | + | |
| 2819 | + | |
2823 | 2820 | | |
2824 | 2821 | | |
2825 | 2822 | | |
| |||
0 commit comments